Skip to main content
GET
/
api
/
v1
/
jobs
/
{job_id}
/
failed-files
curl --request GET \
  --url "${UNSTRUCTURED_API_URL}/api/v1/jobs/b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e/failed-files" \
  --header "unstructured-api-key: ${UNSTRUCTURED_API_KEY}"
{
  "failed_files": [
    {
      "document": "s3://my-bucket/input/corrupted-file.pdf",
      "error": "Failed to parse document: unexpected end of file"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.unstructured.io/llms.txt

Use this file to discover all available pages before exploring further.

Path parameters

job_id
string
required
The unique identifier of the job.

Response

failed_files
array
required
List of failed files. Each object includes document (the file path or identifier) and error (the failure reason).
curl --request GET \
  --url "${UNSTRUCTURED_API_URL}/api/v1/jobs/b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e/failed-files" \
  --header "unstructured-api-key: ${UNSTRUCTURED_API_KEY}"
{
  "failed_files": [
    {
      "document": "s3://my-bucket/input/corrupted-file.pdf",
      "error": "Failed to parse document: unexpected end of file"
    }
  ]
}