Skip to main content

Create Schema

Create a new extraction schema with named fields and types. Fields are automatically resolved against the Field Registry for canonical naming.

POST/v1/schemas

Request body

FieldTypeRequiredDescription
namestringYesHuman-readable schema name
fieldsobjectYesMap of field names to types (string, number, date, boolean, array)
descriptionstringNoSchema description for documentation

Example

curl -X POST https://api.talonic.com/v1/schemas \
  -H "Authorization: Bearer tlnc_sk_live_7f3a...x9k2" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Invoice Schema",
    "fields": {
      "vendor_name": "string",
      "invoice_number": "string",
      "total_amount": "number",
      "due_date": "date"
    }
  }'