POST /v1/job/check
Attributes
Attributes are case-sensitive and should be inside JSON for POST request. for example:
{ "url": "https://example.com/file1.pdf" }| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
jobId | string | Yes | - | ID of background that was started asynchronously. To start a new async background job, you should set async to true for API methods. |
force | boolean | No | false | Set to true to forcibly check the status of the background job. Intended to be used with really long and heavy background jobs only. |
Available Status Values
working- background job is currently in work or does not exist.success- background job was successfully finished.failed- background job failed for some reason (seemessagefor more details).aborted- background job was aborted.unknown- unknown background job id. Available only when force is set totruefor input request.
Query parameters
No query parameters accepted.Responses
| Parameter | Type | Description |
|---|---|---|
status | string | Status code of the request (200, 404, 500, etc.). For more information, see Response Codes. |
message | string | Message of the request |
pageCount | integer | Number of pages in the PDF document. |
url | string | Direct URL to the final PDF file stored in S3. |
outputLinkValidTill | string | Timestamp indicating when the output link will expire |
jobId | string | Identifier for the job request |
credits | integer | Number of credits consumed by the request |
remainingCredits | integer | Number of credits remaining in the account |
jobDuration | integer | Time taken to execute the job in milliseconds |
duration | integer | Time taken for the operation in milliseconds |
Example Payload
To see the request size limits, please refer to the Request Size Limits.
Example Response
To see the main response codes, please refer to the Response Codes page.
Example Response
To see the main response codes, please refer to the Response Codes page.
Inconsistent URL Encoding in cURL Output: When using cURL to make API requests, the output JSON may show URL characters encoded as Unicode escape sequences. For example, the ampersand character (
&) may appear as \u0026 in the cURL output. This is normal JSON encoding behavior and does not affect the validity of the URL. The URL will function correctly when used, as JSON parsers automatically decode these escape sequences. If you’re parsing the response programmatically, your JSON parser will handle this conversion automatically.Code Samples
- CURL
- JavaScript/Node.js
- Python
- Java
- PHP