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/schemasRequest body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Human-readable schema name |
| fields | object | Yes | Map of field names to types (string, number, date, boolean, array) |
| description | string | No | Schema 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"
}
}'