---
title: "Register File"
method: POST
path: "/document/extraction/register_file"
---

# Register File

`POST /document/extraction/register_file`

Endpoint to register a file for extraction. Returns a presigned URL to upload the file to S3.

## Request body

- RegisterFileRequest
  - `job_id` string, required
  - `file_name` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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