Skip to main content
POST
Create Schema

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request model for creating a new extraction schema.

The schema_definition must be a valid JSON Schema that defines the structure of data to extract from documents. The system supports a subset of JSON Schema 2020-12 features optimized for document extraction.

name
string
required

Name of the schema

schema_definition
Schema Definition · object
required

JSON Schema definition. Must be a valid JSON Schema that defines the structure of data to extract from documents. See the comprehensive schema guide in the API documentation for detailed examples and supported features.

Example:
description
string | null

Description of the schema

metadata
Metadata · object | null

Additional metadata for the schema

Response

Successful Response

Response model for schema information.

schema_id
string
required

Unique ID of the schema

name
string
required

Name of the schema

schema_definition
Schema Definition · object
required

JSON schema definition

metadata
Metadata · object
required

Schema metadata

created_at
string
required

Timestamp when the schema was created

updated_at
string
required

Timestamp when the schema was last updated

description
string | null

Description of the schema