Loading
Loading
Upload a PDF file to the APIFreaks PDF workspace via URL or multipart form. Returns a resource ID for use in merge, split, and other operations.
Upload one or more PDF files to the APIFreaks processing workspace. Files are retained on our server for up to 30 days based on your plan.
Authorize every request with your API key, passed either as a header or as a query parameter:
X-apiKeyapiKeyThis is version v1.0 of the API.
The PDF Resource Upload API accepts a file upload as multipart/form-data
File uploads must use multipart/form-data format. One or more PDF files can be uploaded in a single request using the file field.
{
"file": [
"/path/to/document1.pdf",
"/path/to/document2.pdf"
]
}fileoptionalmultipart/form-dataThe PDF file to process.
Optional query parameter to control the response format.
formatoptionalStringdefault: jsonResponse format: 'json' (default) or 'xml'.
A successful request returns a 200 OK response with the uploaded file metadata.
Array of uploaded PDF files with their metadata.
Besides the response body, every response carries custom headers you can use to track credit usage, and concurrency usage on endpoints that enforce a concurrency limit. See the Custom Response Headers documentation and the endpoints with concurrency limits for more details.
X-Concurrent-Threadsheaderconcurrency-limited endpointsSpecifies the maximum number of concurrent requests allowed.
X-Concurrent-Threads-Activeheaderconcurrency-limited endpointsIndicates the number of active concurrent requests being processed.
X-AF-Credits-Costheaderall responsesSpecifies the number of credits consumed by the current request.
See the HTTP Status Codes documentation for a complete reference of common API errors and HTTP status codes.
Please provide a valid PDF file. Other file types are not supported.