Upload files is a REST API tool that supports flexible options for uploading one or more files from local storage or from public URL prior to processing.
Start right from your browser - upload files, choose parameters, generate code, and send API Calls directly from API Lab!to receive your free API Key.
curl -X POST "https://api.pdfrest.com/upload" \ -H "Accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
The response for your API Call will display here.
Easily upload many files with one API Call. There is no limit to the number of files you may upload at once. Choose between uploading files from local storage or files from public URLs. Receive a response with convenient reference IDs associated with each file to use for subsequent processing steps. Note that a file size limit applies to the total of all files included in the call - see your plan details on the Pricing page for more information about upload file size limits.
If your files are hosted somewhere accessible by public URL, you can easily pass those URLs into the Upload Files API Tool without the need to download them to your own local storage first. pdfRest will directly download files from specified URLs to the processing server, saving you time and avoiding unnecessary storage requirements. You can even pass multiple URLs with the same call to upload many files from URL at once!
Streamline your workflow by pre-uploading files before processing. The Upload Files API Tool makes it easy to upload files in advance and store information about each uploaded file. This tool returns a JSON response intuitively arranged to help you associate your uploaded file names with their generated resource IDs. These resource IDs can be used to initiate subsequent processing steps for uploaded files.
Api-Keyfield with your unique API Key
filewith the local path to your input
curl -X POST "https://api.pdfrest.com/upload" \ -H "Accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \ -F "file=@../Sample_Input/ducky.pdf" \ -F "file=@../Sample_Input/merge1.pdf" \ -F "file=@../Sample_Input/strawberries.jpg" \
fileto be uploaded.