Create Source
Create a new document source with a schema binding and extraction settings. Documents uploaded to this source are auto-extracted using the bound schema.
POST
/v1/sourcesRequest body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Source name |
| schema_id | string | No | Schema to apply to all ingested documents |
| auto_extract | boolean | No | Auto-extract on upload (default: true) |
| webhook_url | string | No | Webhook URL for extraction events |
Example
curl -X POST https://api.talonic.com/v1/sources \
-H "Authorization: Bearer tlnc_sk_live_7f3a...x9k2" \
-H "Content-Type: application/json" \
-d '{"name":"Invoice Pipeline","schema_id":"sch_abc123","auto_extract":true}'