Extractions — AI field-extraction jobs over documents.
Every path is on https://app.concord.app.
- POST
/api/v1/extractionsStart an extraction job - POST
/api/v1/extractions/batchStart a batch extraction - GET
/api/v1/extractions/batch/{id}Retrieve a batch extraction job - GET
/api/v1/extractions/{id}Retrieve an extraction job
POST/api/v1/extractions
Start an extraction job
Asynchronous: returns 202 with a job in pending status. Poll GET /api/v1/extractions/{id} for completion, or subscribe to the extraction.completed webhook event.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries. |
Request body
| Name | Type | Description |
|---|---|---|
agreement_idrequired | string | Public ID (agr_…) or UUID of the agreement to extract from. |
type | one of "standard", "fast" | Extraction tier: "standard" (all fields) or "fast" (reduced field set). |
Responses
| Status | Description |
|---|---|
202 | Extraction job accepted |
400 | Invalid request — see error.code for the specific failure mode |
401 | Missing or invalid Bearer token |
403 | Authenticated but not permitted to perform this action |
404 | Resource not found |
429 | Rate limit exceeded — see Retry-After and RateLimit-* headers |
POST/api/v1/extractions/batch
Start a batch extraction
Start extraction jobs for up to 100 agreements. Honors the per-organization pending-job limit (50) — 429 when exceeded.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries. |
Request body
| Name | Type | Description |
|---|---|---|
agreement_idsrequired | array of string | Public IDs (agr_…) or UUIDs of the agreements to extract from (max 100). |
type | one of "standard", "fast" | Extraction tier: "standard" (all fields) or "fast" (reduced field set). |
Responses
| Status | Description |
|---|---|
202 | Batch accepted — one job per agreement |
400 | Invalid request — see error.code for the specific failure mode |
401 | Missing or invalid Bearer token |
403 | Authenticated but not permitted to perform this action |
404 | Resource not found |
429 | Rate limit exceeded — see Retry-After and RateLimit-* headers |
GET/api/v1/extractions/batch/{id}
Retrieve a batch extraction job
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string |
Responses
| Status | Description |
|---|---|
200 | The requested extraction job |
400 | Invalid request — see error.code for the specific failure mode |
401 | Missing or invalid Bearer token |
403 | Authenticated but not permitted to perform this action |
404 | Resource not found |
429 | Rate limit exceeded — see Retry-After and RateLimit-* headers |
GET/api/v1/extractions/{id}
Retrieve an extraction job
Job status; results is attached once the job is completed.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string |
Responses
| Status | Description |
|---|---|
200 | The requested extraction job (with results when completed) |
400 | Invalid request — see error.code for the specific failure mode |
401 | Missing or invalid Bearer token |
403 | Authenticated but not permitted to perform this action |
404 | Resource not found |
429 | Rate limit exceeded — see Retry-After and RateLimit-* headers |