---
title: "Create Extraction Api"
method: POST
path: "/api/create-extraction-api"
---

# Create Extraction Api

`POST /api/create-extraction-api`

Create a dynamic API endpoint based on extracted fields

## Request body

- CreateAPIRequest
  - `fields` FieldDefinition[], required
    - `name` string, required
    - `type` 'string' | 'number' | 'boolean' | 'array' | 'object' | 'date', required
    - `description` string, nullable
    - `required` boolean
    - `constraints` FieldConstraints
      - `minLength` integer, nullable
      - `maxLength` integer, nullable
      - `pattern` string, nullable
      - `enum` string[], nullable
      - `min` number, nullable
      - `max` number, nullable
  - `api_name` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/qomplement/apis/fastapi.md) · [All operations](https://skmtc.net/qomplement/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qomplement/fastapi/revisions/718de1c0d866/schema)
