---
title: "Create extraction requests"
method: POST
path: "/extraction"
tags: ["Field Extraction"]
---

# Create extraction requests

`POST /extraction`

## Request

- Base URL: `https://us.app.zuva.ai/api/v2`
- URL: `https://us.app.zuva.ai/api/v2/extraction`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/zuva/apis/zuva-docai/docs/extraction/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new request for extraction of the specified fields from each of the specified files, returning
one request for each file.

A maximum of 100 field IDs and 100 file IDs can be included in each request.

## Request body

- CreateExtractionRequestsBody
  - `field_ids` string[], required
  - `file_ids` string[], required

## Response `202`

See response body for status of each request.

- ExtractionRequestsAccepted
  - `file_ids` ExtractionCreatedResponse[], required
    - `file_id` string, required
    - `field_ids` string[], required
    - `request_id` string, required
    - `status` 'queued' | 'processing' | 'complete' | 'failed', required

## Other responses

- `400`: Malformed request, missing/invalid `file_ids` or `field_ids` attribute.
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

## Changes

- **2023-12-13** `51f2a4c5de2e`: 1 warning, 1 info
  - removed the optional property `file_ids/items/error` from the response with the `202` status
  - the response property `file_ids/items/field_ids` became required for the status `202`

[Operation history](https://skmtc.dev/zuva/apis/zuva-docai/changes/extraction/post.md)

---

[API](https://skmtc.dev/zuva/apis/zuva-docai.md) - [All operations](https://skmtc.dev/zuva/apis/zuva-docai/llms.txt) - [OpenAPI document](https://skmtc.dev/zuva/apis/zuva-docai/revisions/7397ad071d55?raw)
