- : /v1/ade/parse
- ADE Parse Jobs: /v1/ade/parse/jobs
- Get Async Job Status: /v1/ade/parse/jobs/
- List Async 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 and ADE Parse Jobs
This section covers errors for both ADE Parse and ADE Parse Jobs.Status Codes
| Status Code | Name | Description | What to Do |
|---|---|---|---|
| 200 | Success | ADE Parse: Document parsed successfully and returned immediately. | Continue with normal operations. |
| 202 | Accepted | ADE Parse Jobs: Job created successfully and queued for processing. | Use the returned job_id to check job status. See Get Async Job Status. |
| 206 | Partial Content | ADE Parse: 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, unsupported model version, or Zero Data Retention constraints. | 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 | ADE Parse: All pages failed to process. ADE Parse Jobs: Server error during job creation or enqueuing. | Retry. If the issue persists, contact support@landing.ai. See Status 500. |
| 504 | Gateway Timeout | ADE Parse: 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 only This response occurs when the document was parsed successfully but some pages failed during processing. The API returns a 206 status code with the parsed content for successful pages and afailed_pages array in the metadata that lists which pages failed. Because the API returns at least partial results, the API call consumes credits.
What to do:
- Review the
failed_pagesfield in the metadata to identify which pages failed. - Check if the failed pages are corrupted or have unusual formatting.
- If the issue persists with specific pages, contact support@landing.ai.
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.
Error: output_save_url must be present if zeroDataRetention is enabled
Applies to: ADE Parse Jobs only 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
Applies to: ADE Parse Jobs only 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 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 a server-side failure. ADE Parse: 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 support@landing.ai.
- Retry the request.
- If the error persists, contact support@landing.ai.
Status 504: Gateway Timeout
Applies to: ADE Parse only 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 support@landing.ai.
Get Async Job Status
Use this section to troubleshoot issues encountered when calling the Get Async Job Status 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). |
| 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. |
| 500 | Internal Server Error | Server error during job status retrieval. | Retry. If the issue persists, contact support@landing.ai. |
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.
List Async Jobs
Use this section to troubleshoot issues encountered when calling the List Async 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 support@landing.ai. |
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.

