About this endpoint
What it does
Uploads one or more PDF files and starts a deskew operation for each file, returning a batch identifier and per-file job metadata for tracking the work.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| files | String Array | Yes | PDF files to deskew. |
Response
Returns a JSON object with a batch_id string field and a jobs array field. Each item in jobs is an object containing job_id (string), filename (string), status (string), batch_id (string), and progress (integer).
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| batch_id | String | Yes | Parent id for this submit; also returned as X-Apy-Job-Id. |
| jobs | Object Array | Yes | Array of per-file job objects. |
| jobs[].job_id | String | Yes | Job identifier for the individual file. |
| jobs[].filename | String | Yes | Name of the PDF file. |
| jobs[].status | String | Yes | Current status of the individual job. |
| jobs[].batch_id | String | No | Parent batch id this child belongs to. |
| jobs[].progress | Integer | Yes | Progress value for the individual job. |
Notes
This endpoint kicks off an async job and returns immediately with a batch 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. Extract the job identifier from batch_id in the response, which is also returned as X-Apy-Job-Id.