- : /v1/ade/parse
- ADE Parse Jobs: /v1/ade/parse/jobs
- ADE Get Parse Jobs: /v1/ade/parse/jobs/
- ADE List Parse Jobs: /v1/ade/parse/jobs
Common Status Codes
These status codes apply to all parse endpoints.| Status Code | Name | Description | What to Do |
|---|---|---|---|
| 401 | Unauthorized | Missing or invalid API key. | Check that your apikey header is present and contains a valid API key. |
| 402 | Payment Required | Your account does not have enough credits to complete processing. | If you have multiple accounts, make sure you’re using the correct API key. Add more credits to your account. |
| 429 | Too Many Requests | Rate limit exceeded. | Wait before retrying. Reduce request frequency and implement exponential backoff. |
ADE Parse
This section covers errors for the ADE Parse API.Status Codes
| Status Code | Name | Description | What to Do |
|---|---|---|---|
| 200 | Success | Document parsed successfully and returned immediately. | Continue with normal operations. |
| 206 | Partial Content | Document parsed but some pages failed during processing. | Review the failed_pages field in the metadata. See Status 206. |
| 400 | Bad Request | Invalid request due to document download failure or unsupported model version. | Review error message for specific issue. See Status 400. |
| 422 | Unprocessable Entity | Input validation failed. | Review your request parameters. See Status 422. |
| 500 | Internal Server Error | All pages failed to process. | Retry. If the issue persists, contact [email protected]. See Status 500. |
| 504 | Gateway Timeout | Request processing exceeded the timeout limit (475 seconds). | Reduce document size or number of pages. See Status 504. |
Status 206: Partial Content
Applies to: ADE Parse and ADE Get Parse Jobs This response occurs when the document was parsed successfully but some pages failed during processing. The response includes:- A 206 status code
- Parsed content for successful pages
- A
failed_pagesarray in the metadata listing which pages failed (zero-indexed) - For ADE Get Parse Jobs only: A
failure_reasonfield with details about the failures
- Review the
failed_pagesfield in the metadata to identify which pages failed. - For ADE Get Parse Jobs, also review the
failure_reasonfield for details about the failures. - Check if the failed pages are corrupted or have unusual formatting.
- If the issue persists with specific pages, contact [email protected].
Status 400: Bad Request
This status code indicates invalid request parameters or client-side errors. Review the specific error message to identify the issue.Error: Failed to download document from URL
This error occurs when the API cannot download the document from the provideddocument_url.
Error message:
- Verify the URL is accessible and returns valid content.
- Check network connectivity and URL permissions.
- Ensure the URL points to a supported document type.
Error: Unsupported model
This error occurs when an invalid or unsupported model version is specified. Error message:- Check the API documentation for supported model versions.
- If you don’t specify a version, the API uses the latest version by default.
- Verify the model version string is formatted correctly.
Status 422: Unprocessable Entity
This status code indicates input validation failures. Review the error message and adjust your request parameters.Error: Cannot provide both ‘document’ and ‘document_url’
This error occurs when both a document file and a URL to a document are provided in the same request. Error message:- Provide a document file using the
documentparameter, OR - Provide a URL to a document using the
document_urlparameter.
Error: Must provide either ‘document’ or ‘document_url’
This error occurs when your request does not include either thedocument or document_url parameter.
Error message:
- Use the
documentparameter to upload a document file, OR - Use the
document_urlparameter to provide a URL to a document.
Error: Invalid URL format
This error occurs when thedocument_url parameter contains an invalid URL.
Error message:
- Verify the URL is properly formatted with a valid protocol (http:// or https://).
- Check for typos or missing characters in the URL.
- Ensure the URL is properly encoded if it contains special characters.
Error: PDF must not exceed X pages
This error occurs when the PDF page count exceeds your account’s page limit. Error message:- Reduce the PDF page count. To see the maximum number of pages allowed, go to Rate Limits.
- Consider using the ADE Parse Jobs API, which allows you to process longer documents.
Error: PDF contains zero pages
This error occurs when the PDF file has no pages. Error message:Error: Failed to open or read PDF
This error occurs when the PDF file is corrupted or cannot be opened. Error message:- Use a valid, non-corrupted PDF file.
- If the PDF is password-protected, remove the password before uploading.
- Try opening the PDF in a PDF reader to verify it’s not corrupted.
- If the issue persists, try re-saving or re-exporting the PDF.
Error: Multiple document files detected
This error occurs when multiple document files are included in the request. Error message:Error: File is empty
This error occurs when the uploaded file contains no data. Error message:Error: Unsupported format
This error occurs when the uploaded file format is not supported. Error message:- Check the list of supported file types.
- Convert your document to a supported format before uploading.
- Verify the file extension matches the actual file content.
Status 500: Internal Server Error
This error indicates all pages in the document failed to process. Error message:- Retry the request.
- Check if the document has unusual formatting or corrupted content.
- Try processing individual pages if the document is very large.
- If the error persists, contact [email protected].
Status 504: Gateway Timeout
This error occurs when the parsing process exceeds the timeout limit (475 seconds). Error message:- Reduce the document size or number of pages.
- Split large documents into smaller files.
- If the error persists, contact [email protected].
ADE Parse Jobs
This section covers errors for the ADE Parse Jobs API, which creates asynchronous parse jobs.Status Codes
| Status Code | Name | Description | What to Do |
|---|---|---|---|
| 202 | Accepted | Job created successfully and queued for processing. | Use the returned job_id to check job status with the ADE Get Parse Jobs API. |
| 422 | Unprocessable Entity | Input validation failed. | Review your request parameters. Common errors include missing required fields, ZDR configuration issues, or invalid input. See errors below. |
| 429 | Too Many Requests | Rate limit exceeded. | Wait before retrying. Reduce request frequency and implement exponential backoff. |
Status 400: Bad Request
Error: output_save_url must be present if zeroDataRetention is enabled
This error occurs when Zero Data Retention (ZDR) is enabled but no output save URL is provided. Error message:output_save_url where the parsed results will be saved. The results will not be returned in the API response when ZDR is enabled.
Error: Only document_url is accepted if zeroDataRetention is enabled
This error occurs when Zero Data Retention (ZDR) is enabled but a document file is uploaded instead of providing a URL. Error message:document_url parameter to provide a URL to your document. Direct file uploads via the document parameter are not supported with ZDR.
Status 500: Internal Server Error
This error indicates a server-side failure during job creation or enqueuing. Error message:- Retry the request.
- If the error persists, contact [email protected].
ADE Get Parse Jobs
Use this section to troubleshoot issues encountered when calling the ADE Get Parse Jobs API.Status Codes
| Status Code | Name | Description | What to Do |
|---|---|---|---|
| 200 | Success | Job status retrieved successfully. | Check the status field. If completed, results are in the data field (for small results) or output_url field (for large results or ZDR). |
| 206 | Partial Content | Job completed but some pages failed during processing. | Review the failed_pages field in the metadata and the failure_reason field. See Status 206. |
| 404 | Not Found | Job with the specified ID not found. | Verify the job ID is correct. The job may belong to a different API key. |
| 422 | Unprocessable Entity | Input validation failed. | Verify the job ID format is correct. |
| 500 | Internal Server Error | Server error during job status retrieval. | Retry. If the issue persists, contact [email protected]. |
Job Status Values
Thestatus field in the response indicates the current state of the job:
| Status | Description |
|---|---|
pending | Job is queued and waiting to be processed. |
processing | Job is currently being processed. |
completed | Job completed successfully. Results are available in the response. |
failed | Job failed during processing. Check the failure_reason field for details. |
cancelled | Job was cancelled. |
Understanding the Response
For completed jobs:- If results are less than 1MB, they appear in the
datafield as aParseResponseobject. - If results are 1MB or larger, the
output_urlfield contains a presigned S3 URL (expires after 1 hour). - If Zero Data Retention is enabled, results are always saved to your
output_save_urland not included in the response.
- Check the
failure_reasonfield for error details. - Common failure reasons include document processing errors or timeout.
- The
progressfield shows completion as a decimal from 0 to 1 (e.g., 0.5 = 50% complete). - Progress is based on the number of pages processed.
Partial Content in Completed Jobs
A job can have statuscompleted even if some pages failed to process. When this occurs, the API returns a 206 status code. For details on handling partial content, see Status 206: Partial Content.
ADE List Parse Jobs
Use this section to troubleshoot issues encountered when calling the ADE List Parse Jobs API.Status Codes
| Status Code | Name | Description | What to Do |
|---|---|---|---|
| 200 | Success | Job list retrieved successfully. | Review the list of jobs and their statuses. |
| 500 | Internal Server Error | Server error during job listing. | Retry. If the issue persists, contact [email protected]. |
Query Parameters
You can filter and paginate the job list using these parameters:page: Page number for pagination (default: 1)page_size: Number of jobs per page (default: 10)status: Filter by job status (pending,processing,completed,failed,cancelled)
Understanding the Response
The response contains:jobs: Array of job summaries withjob_id,status,received_attimestamp, andprogress.has_more: Boolean indicating if more pages are available.- For failed jobs, the
failure_reasonfield provides error details.

