---
title: "Get File Status"
method: POST
path: "/document/extraction/file_status"
tags: ["Extraction"]
---

# Get File Status

`POST /document/extraction/file_status`

## Endpoint to Get the Status of a File from an Extraction Job
This endpoint returns the status of a file from an extraction job.

***

## Request Body

| Field               | Type   | Description                      |
|---------------------|--------|----------------------------------|
| extraction_job_id   | str    | The ID of the extraction job.    |
| file_name           | str    | The name of the file.            |

***

## Response Body

| Field               | Type   | Description                      |
|---------------------|--------|----------------------------------|
| extraction_job_id   | str    | The ID of the extraction job.    |
| status              | str    | The status of the file. Can be COMPLETED or QUEUED. |
| result_url          | str    | The presigned URL for the extracted text file. |

***

#### Errors

- **404**: If the file is not found.
- **500**: If any other error occurs during the retrieval of the file status.

## Request body

- ExtractionJobFileRequest
  - `extraction_job_id` string, required
  - `file_name` string, required

## Response `200`

Successful Response

- ExtractionJobFileResponse
  - `status` string, required
  - `result_url` string
  - `extraction_job_id` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/aws-samples/apis/generative-ai-foundational-platform-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/generative-ai-foundational-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/generative-ai-foundational-platform-api/revisions/8831d08902e9/schema)
