About this endpoint
What it does
Uploads one or more PDF files and starts an OCR-based auto-rotation process to correct page orientation. The response returns a job list with status and progress for each submitted file.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| files | String Array | Yes | PDF files to auto-rotate. Max File Upload limit - 5 |
Response
Returns a JSON object with a jobs object field containing an array of job objects. Each job object includes job_id and filename as strings, status as a string, and progress as an integer.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| jobs | Object Array | Yes | Array of job objects. |
| jobs[].job_id | String | Yes | Job identifier. |
| jobs[].filename | String | Yes | Name of the submitted file. |
| jobs[].status | String | Yes | Job status. |
| jobs[].progress | Integer | Yes | Job progress. |
Notes
This endpoint kicks off an async job and returns immediately with a job identifier; the actual work runs in the background. Pair this call with the corresponding job_check endpoint — poll that until the status reaches a terminal state to retrieve the result. Use the jobs[].job_id value from the response for polling.