@talonic/docs 0.21.43 → 0.21.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/seo.js +378 -15
- package/openapi.json +378 -15
- package/package.json +1 -1
- package/dist/tailwind-preset.d.cts +0 -45
- package/dist/tailwind-preset.d.ts +0 -45
package/dist/seo.js
CHANGED
|
@@ -4,7 +4,7 @@ var openapi_default = {
|
|
|
4
4
|
info: {
|
|
5
5
|
title: "Talonic API",
|
|
6
6
|
version: "1.1.0",
|
|
7
|
-
description: 'Structure any document into schema-validated data.\n\nThe Talonic API lets you extract structured data from documents (PDFs, images,\nDOCX, CSV, plain text), manage reusable extraction schemas, track async jobs,\nand organise documents through sources.\n\n## Quick Start\n\n**1. Get your API key**\n\nSign up at [app.talonic.com](https://app.talonic.com) \u2192 Settings \u2192 API Keys \u2192 Create key.\nKeys start with `tlnc_`. All examples below use `tlnc_live_abc123` as a placeholder.\n\n**2. Extract your first document**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H "Authorization: Bearer tlnc_live_abc123" \\\n -F "file=@invoice.pdf" \\\n -F \'schema={"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\'\n```\n\n**Python:**\n```python\nimport requests\nresp = requests.post("https://api.talonic.com/v1/extract",\n headers={"Authorization": "Bearer tlnc_live_abc123"},\n files={"file": open("invoice.pdf", "rb")},\n data={"schema": \'{"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\'})\nprint(resp.json()["data"])\n```\n\n**TypeScript:**\n```typescript\nconst form = new FormData();\nform.append("file", fs.createReadStream("invoice.pdf"));\nform.append("schema", \'{"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\');\nconst res = await fetch("https://api.talonic.com/v1/extract", {\n method: "POST",\n headers: { Authorization: "Bearer tlnc_live_abc123" },\n body: form,\n}).then(r => r.json());\nconsole.log(res.data);\n```\n\n**3. What you get back**\n\n```json\n{\n "extraction_id": "d1a2b3c4-5678-9abc-def0-1234567890ab",\n "request_id": "req_x7y8z9a0b1c2d3e4",\n "status": "complete",\n "document": {\n "id": "f0e1d2c3-b4a5-9687-8765-432109876543",\n "filename": "invoice.pdf",\n "pages": 2,\n "size_bytes": 184320,\n "type_detected": "Invoice",\n "language_detected": "en"\n },\n "data": {\n "vendor_name": "Acme GmbH",\n "total_amount": 14250.00,\n "invoice_date": "2025-03-15"\n },\n "confidence": {\n "overall": 0.96,\n "fields": {\n "vendor_name": 0.97,\n "total_amount": 0.94,\n "invoice_date": 0.99\n }\n },\n "processing": {\n "duration_ms": 1840,\n "pages_processed": 2,\n "region": "eu-west"\n },\n "links": {\n "self": "/v1/extractions/d1a2b3c4-5678-9abc-def0-1234567890ab",\n "document": "/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543"\n }\n}\n```\n\n- **`data`** \u2014 extracted fields as key-value pairs matching your schema.\n- **`confidence.fields`** \u2014 per-field score from 0 to 1. Above 0.9 is high confidence; below 0.7 flags for review.\n- **`extraction_id`** \u2014 use this to retrieve, correct, or deliver results later.\n- Full response schema: [ExtractSyncResponse](#/components/schemas/ExtractSyncResponse)\n\n**4. Next steps**\n\n- **50+ pages?** Use async mode \u2014 see [Async Extraction Flow](#section/Async-Extraction-Flow) below.\n- **Reusable schemas** \u2014 save field definitions with `POST /v1/schemas`, then pass `schema_id` on future extractions.\n- **Receive results via webhook** \u2014 configure a delivery destination and listen for `document.extracted` events. See the [Delivery](#tag/Delivery) tag.\n\n---\n\n## Authentication\n\nAll requests require a Bearer token in the `Authorization` header.\nAPI keys are prefixed with `tlnc_` and scoped per customer.\n\n```\nAuthorization: Bearer tlnc_live_abc123...\n```\n\n## Async Extraction Pattern\n\nSmall documents (\u22645 pages) are processed synchronously and return a `200`\nwith the extracted data immediately. Larger documents return a `202 Accepted`\nwith a `poll_url` \u2014 poll `GET /v1/documents/{id}` until `status` transitions\nto `completed`, then fetch results via `GET /v1/documents/{id}/extractions`.\n\nYou can force async processing by passing `options: {"async": true}` on\nany extraction request. Combine with webhooks for a fully event-driven flow:\nconfigure a webhook destination under Delivery and listen for the\n`extraction.complete` event.\n\n**Job status lifecycle:** `pending` \u2192 `processing` \u2192 `complete` | `failed`\n\n## Rate Limits\n\nThe **Free** tier is metered by a recurring **5,000-credit monthly grant**\n(no card required) that refreshes on the 1st of each month (UTC). Free\nrequests run until the monthly credit balance is spent, then return `402`\nuntil the next grant. A generous daily request ceiling is retained purely as\nabuse protection and does not bind a legitimate free user within the monthly\nenvelope. Inspect your balance and reset date via `GET /v1/account`.\n\nPaid tiers are metered per calendar day (UTC):\n\n| Tier | Extract | Platform | Ingest | Operations | Run | Ask |\n|------------|---------|----------|--------|------------|-----|-----|\n| Free | 1,000/day | 2,000/day | 1,000/day | 1,000/day | 1,000/day | 200/day |\n| Pro | 25,000/day | 50,000/day | 25,000/day | 25,000/day | 25,000/day | 5,000/day |\n| Enterprise | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited |\n\nFree workspaces additionally receive 5,000 credits/month; spend is governed\nby credits (402 on exhaustion), with daily ceilings acting as abuse protection.\n\nResponses with a finite limit include rate-limit headers:\n- `X-RateLimit-Limit` \u2014 daily cap for the namespace\n- `X-RateLimit-Remaining` \u2014 requests left today\n- `X-RateLimit-Reset` \u2014 ISO 8601 timestamp when the window resets (midnight UTC)\n\n## Pagination\n\nList endpoints use cursor-based pagination. Pass `limit` (1\u2013100, default 20),\n`cursor` (opaque token from `pagination.next_cursor`), and `order` (`asc` or `desc`, default `desc`).\n\n## Errors\n\nAll errors return a JSON body with `error` (machine-readable code) and `message`\n(human-readable explanation). Additional fields vary by error type.\n\n| Code | Error | Description |\n|------|--------------------|------------------------------------------|\n| 400 | validation_error | Request body is malformed or invalid |\n| 401 | unauthorized | Missing or invalid API key |\n| 403 | insufficient_scope | API key lacks the required scope |\n| 404 | not_found | Resource does not exist |\n| 409 | conflict | Resource state conflict |\n| 413 | payload_too_large | File exceeds 500 MB limit |\n| 422 | extraction_failed | Document could not be processed |\n| 429 | rate_limit_exceeded| Daily rate limit reached |\n| 500 | internal_error | Unexpected server error (retryable) |\n\nEvery error response follows this envelope:\n\n```json\n{\n "statusCode": 400,\n "code": "VALIDATION_ERROR",\n "error": "Bad Request",\n "message": "name is required.",\n "retryable": false,\n "timestamp": "2026-04-25T14:30:00.000Z",\n "path": "/v1/schemas"\n}\n```\n\nThe `code` field is one of: `VALIDATION_ERROR`, `AUTH_REQUIRED`, `TOKEN_EXPIRED`,\n`INSUFFICIENT_PERMISSIONS`, `RESOURCE_NOT_FOUND`, `QUOTA_EXCEEDED`,\n`INSUFFICIENT_CREDITS`, `LLM_RATE_LIMITED`, `LLM_TIMEOUT`, `LLM_UNAVAILABLE`,\n`OCR_FAILED`, `EXTRACTION_FAILED`, `EXTRACTION_TIMEOUT`, `FILE_TOO_LARGE`,\n`DUPLICATE_RESOURCE`, `DATASPACE_RUN_FAILED`, `INTERNAL_ERROR`.\n\n### Refusal reasons\n\nA refusal an integration must branch on also carries `reason`, a stable\ntoken beside `code`. Branch on `reason`, not on `code`, `error` or the\nmessage: `code` says only which HTTP family the refusal belongs to, `error`\nis the HTTP status name on some refusals and a body discriminant on others,\nand messages are prose. The key is present only on refusals; absent means\n"no stable reason, read `message`". Message prefixes (`insufficient_grant:\n\u2026`) are kept for older clients that parse them; where a message carries one it equals `reason`, but not every refusal has a prefix (the Apps-ladder refusals are plain sentences), so branch on `reason`.\n\n| `reason` | Status | What the caller does |\n|---|---|---|\n| `insufficient_grant` | 403 | The app holds no approved grant covering this resource, or the route is not reachable by an app service key at all. Not retryable \u2014 stop and ask the workspace owner to grant it. |\n| `install_pending_approval` | 403 | A newer version of the app awaits owner approval and the install is paused. Poll `GET /v1/apps/{id}/install/status`. |\n| `install_not_ready` | 403 / 409 | The install is not in force (403, no installed binding for this service key) or is parked on an unapproved version / has no bound OAuth client (409). Poll `GET /v1/apps/{id}/install/status`. |\n| `endpoint_not_confirmed` | 400 | The binding would give the install its first subscriptions, or `confirm_subscriptions_endpoint` does not equal the manifest\'s `subscriptions_endpoint`. An owner action \u2014 re-send with the confirmation. |\n| `slot_unbound` | 400 / 409 | A required requirement slot has no binding (400 at install/rebind, 409 when a run resolves an already-installed version). The owner binds the named aliases. |\n| `slot_unknown` | 400 | The request named an alias the manifest declares no slot for. Fix the manifest or the request. |\n| `hosted_manifest_read_only` | 409 | The app\'s manifest is fetched from the vendor\'s URL, so local edits are refused. Edit at the vendor host, then `POST /v1/apps/{id}/refresh`. |\n| `hosted_surface_fixed` | 422 | A hosted app\'s surface URL comes from its manifest and moves only when a new version is approved; drop `surface_url` from the patch. |\n| `manifest_fetch_failed` | 422 | The vendor\'s manifest URL could not be read. `details.violations` carries the fetch reason. Fix it at the vendor host and retry. |\n| `schema_validation_failed` | 422 | A manifest does not validate, on publish or on a hosted fetch. `details.violations` carries `{ pointer, keyword, message }` per failure. |\n| `refresh_failed` | 422 | A hosted refresh did not happen; the failure is recorded on the app and it stays live on its approved version. `details` carries `{ changed, error }`. Fix it at the vendor host. |\n| `insufficient_scope` | 403 | The key or token lacks a required scope. `required_scopes` names the ones that admit. Workspace keys and OAuth clients receive this; an app service key never does, because both scope paths hand an app principal to its grant checks instead. |\n| `unauthenticated` | 403 | The Apps surface saw no authenticated principal. |\n| `workspace_required` | 403 | The Apps surface needs a concrete workspace; a master-view key cannot call it. |\n| `insufficient_tier` | 403 | The caller\'s workspace role (or an OAuth token\'s role claim) ranks below the route\'s tier. `required` names the tier. |\n| `owner_required` | 403 | Grant and OAuth-client management needs a human workspace owner; no machine caller reaches it. |\n| `insufficient_app_grant` | 403 | The API key holds app grants, but none at the level this route needs. `required` names the tier. |\n| `decide_grant_required` | 403 | The decision-task protocol admits only a machine caller holding an explicit `decide` grant on the app. |\n\n## Async Extraction Flow\n\nDocuments \u22645 pages return results synchronously (`200`). Larger documents\n\u2014 or any request with `options: {"async": true}` \u2014 return `202 Accepted`.\n\n**1. Submit extraction:**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H "Authorization: Bearer tlnc_live_abc123" \\\n -F "file=@contract.pdf" \\\n -F \'options={"async": true}\'\n```\n\nResponse `202`:\n```json\n{\n "request_id": "req_x7y8z9a0",\n "status": "processing",\n "document": { "id": "f0e1d2c3-b4a5-9687-8765-432109876543" },\n "poll_url": "/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543"\n}\n```\n\n**2. Poll until complete:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543 \\\n -H "Authorization: Bearer tlnc_live_abc123"\n```\n\nWhile processing: `{ "status": "processing" }`\nWhen done: `{ "status": "completed" }`\n\n**3. Retrieve results:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543/extractions \\\n -H "Authorization: Bearer tlnc_live_abc123"\n```\n\n**Python \u2014 complete async flow with exponential backoff:**\n\n```python\nimport time\nimport requests\n\nAPI_KEY = "tlnc_live_..."\nBASE = "https://api.talonic.com/v1"\nHEADERS = {"Authorization": f"Bearer {API_KEY}"}\n\n# Step 1: Submit async extraction\nresp = requests.post(f"{BASE}/extract",\n headers=HEADERS,\n files={"file": open("contract.pdf", "rb")},\n data={"options": \'{"async": true}\'})\ndoc_id = resp.json()["document"]["id"]\n\n# Step 2: Poll with exponential backoff (2s \u2192 4s \u2192 8s \u2192 16s \u2192 30s cap)\ndelay = 2\nfor _ in range(20):\n time.sleep(delay)\n doc = requests.get(f"{BASE}/documents/{doc_id}", headers=HEADERS).json()\n if doc["status"] == "completed":\n break\n if doc["status"] == "error":\n raise Exception(f"Extraction failed: {doc.get(\'error\')}")\n delay = min(delay * 2, 30)\n\n# Step 3: Retrieve extracted data\nextractions = requests.get(\n f"{BASE}/documents/{doc_id}/extractions", headers=HEADERS).json()\ndata = extractions["data"][0]["data"]\nconfidence = extractions["data"][0]["confidence"]["overall"]\nprint(f"Extracted {len(data)} fields (confidence: {confidence})")\nprint(data)\n# \u2192 {"vendor_name": "Acme Corp", "total_amount": 1250.00, ...}\n```\n\n**TypeScript \u2014 same flow:**\n\n```typescript\nconst API_KEY = "tlnc_live_...";\nconst BASE = "https://api.talonic.com/v1";\nconst headers = { Authorization: `Bearer ${API_KEY}` };\n\n// Step 1: Submit async extraction\nconst form = new FormData();\nform.append("file", fs.createReadStream("contract.pdf"));\nform.append("options", \'{"async": true}\');\nconst { document } = await fetch(`${BASE}/extract`, {\n method: "POST", headers, body: form,\n}).then((r) => r.json());\n\n// Step 2: Poll with exponential backoff\nlet delay = 2000;\nlet doc: any;\nfor (let i = 0; i < 20; i++) {\n await new Promise((r) => setTimeout(r, delay));\n doc = await fetch(`${BASE}/documents/${document.id}`, { headers }).then((r) => r.json());\n if (doc.status === "completed") break;\n if (doc.status === "error") throw new Error(`Extraction failed: ${doc.error}`);\n delay = Math.min(delay * 2, 30_000);\n}\n\n// Step 3: Retrieve extracted data\nconst { data: extractions } = await fetch(\n `${BASE}/documents/${document.id}/extractions`, { headers }\n).then((r) => r.json());\nconsole.log(extractions[0].data);\n// \u2192 { vendor_name: "Acme Corp", total_amount: 1250.00, ... }\n```\n\nRecommended polling: 2s initial, exponential backoff (2\u21924\u21928\u219216\u219230s cap),\ntimeout after 5 minutes.\n\n**Alternative \u2014 Webhooks:** Configure a delivery destination and listen for\n`document.extracted` events. See the Delivery tag.\n\n**Job status state machine:**\n`pending` \u2192 `queued` \u2192 `processing` \u2192 `complete` | `failed`\n\n## Performance\n\n| Document size | Expected latency | Max timeout |\n|---------------|------------------|-------------|\n| 1\u20135 pages | Sync, <3s | 30s |\n| 6\u201350 pages | <30s average | 5 min |\n| 50+ pages | <5 min average | 30 min |\n\n**Uptime SLA:** 99.5% (Build), 99.9% (Scale), custom (Enterprise).\n\n**Max file size:** 500 MB. JSON request bodies (schemas, jobs): 1 MB.\n\n**Idempotency:** Pass `Idempotency-Key` header on POST requests. Keys are\nscoped to your organization (all keys in a workspace share one namespace).\nDuplicates return the cached response with `cached: true`.\n',
|
|
7
|
+
description: 'Structure any document into schema-validated data.\n\nThe Talonic API lets you extract structured data from documents (PDFs, images,\nDOCX, CSV, plain text), manage reusable extraction schemas, track async jobs,\nand organise documents through sources.\n\n## Quick Start\n\n**1. Get your API key**\n\nSign up at [app.talonic.com](https://app.talonic.com) \u2192 Settings \u2192 API Keys \u2192 Create key.\nKeys start with `tlnc_`. All examples below use `tlnc_live_abc123` as a placeholder.\n\n**2. Extract your first document**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H "Authorization: Bearer tlnc_live_abc123" \\\n -F "file=@invoice.pdf" \\\n -F \'schema={"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\'\n```\n\n**Python:**\n```python\nimport requests\nresp = requests.post("https://api.talonic.com/v1/extract",\n headers={"Authorization": "Bearer tlnc_live_abc123"},\n files={"file": open("invoice.pdf", "rb")},\n data={"schema": \'{"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\'})\nprint(resp.json()["data"])\n```\n\n**TypeScript:**\n```typescript\nconst form = new FormData();\nform.append("file", fs.createReadStream("invoice.pdf"));\nform.append("schema", \'{"properties":{"vendor_name":{"type":"string"},"total_amount":{"type":"number"},"invoice_date":{"type":"string"}}}\');\nconst res = await fetch("https://api.talonic.com/v1/extract", {\n method: "POST",\n headers: { Authorization: "Bearer tlnc_live_abc123" },\n body: form,\n}).then(r => r.json());\nconsole.log(res.data);\n```\n\n**3. What you get back**\n\n```json\n{\n "extraction_id": "d1a2b3c4-5678-9abc-def0-1234567890ab",\n "request_id": "req_x7y8z9a0b1c2d3e4",\n "status": "complete",\n "document": {\n "id": "f0e1d2c3-b4a5-9687-8765-432109876543",\n "filename": "invoice.pdf",\n "pages": 2,\n "size_bytes": 184320,\n "type_detected": "Invoice",\n "language_detected": "en"\n },\n "data": {\n "vendor_name": "Acme GmbH",\n "total_amount": 14250.00,\n "invoice_date": "2025-03-15"\n },\n "confidence": {\n "overall": 0.96,\n "fields": {\n "vendor_name": 0.97,\n "total_amount": 0.94,\n "invoice_date": 0.99\n }\n },\n "processing": {\n "duration_ms": 1840,\n "pages_processed": 2,\n "region": "eu-west"\n },\n "links": {\n "self": "/v1/extractions/d1a2b3c4-5678-9abc-def0-1234567890ab",\n "document": "/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543"\n }\n}\n```\n\n- **`data`** \u2014 extracted fields as key-value pairs matching your schema.\n- **`confidence.fields`** \u2014 per-field score from 0 to 1. Above 0.9 is high confidence; below 0.7 flags for review.\n- **`extraction_id`** \u2014 use this to retrieve, correct, or deliver results later.\n- Full response schema: [ExtractSyncResponse](#/components/schemas/ExtractSyncResponse)\n\n**4. Next steps**\n\n- **50+ pages?** Use async mode \u2014 see [Async Extraction Flow](#section/Async-Extraction-Flow) below.\n- **Reusable schemas** \u2014 save field definitions with `POST /v1/schemas`, then pass `schema_id` on future extractions.\n- **Receive results via webhook** \u2014 configure a delivery destination and listen for `document.extracted` events. See the [Delivery](#tag/Delivery) tag.\n\n---\n\n## Authentication\n\nAll requests require a Bearer token in the `Authorization` header.\nAPI keys are prefixed with `tlnc_` and scoped per customer.\n\n```\nAuthorization: Bearer tlnc_live_abc123...\n```\n\n## Async Extraction Pattern\n\nSmall documents (\u22645 pages) are processed synchronously and return a `200`\nwith the extracted data immediately. Larger documents return a `202 Accepted`\nwith a `poll_url` \u2014 poll `GET /v1/documents/{id}` until `status` transitions\nto `completed`, then fetch results via `GET /v1/documents/{id}/extractions`.\n\nYou can force async processing by passing `options: {"async": true}` on\nany extraction request. Combine with webhooks for a fully event-driven flow:\nconfigure a webhook destination under Delivery and listen for the\n`extraction.complete` event.\n\n**Job status lifecycle:** `pending` \u2192 `processing` \u2192 `complete` | `failed`\n\n## Rate Limits\n\nThe **Free** tier is metered by a recurring **5,000-credit monthly grant**\n(no card required) that refreshes on the 1st of each month (UTC). Free\nrequests run until the monthly credit balance is spent, then return `402`\nuntil the next grant. A generous daily request ceiling is retained purely as\nabuse protection and does not bind a legitimate free user within the monthly\nenvelope. Inspect your balance and reset date via `GET /v1/account`.\n\nPaid tiers are metered per calendar day (UTC):\n\n| Tier | Extract | Platform | Ingest | Operations | Run | Ask |\n|------------|---------|----------|--------|------------|-----|-----|\n| Free | 1,000/day | 2,000/day | 1,000/day | 1,000/day | 1,000/day | 200/day |\n| Pro | 25,000/day | 50,000/day | 25,000/day | 25,000/day | 25,000/day | 5,000/day |\n| Enterprise | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited |\n\nFree workspaces additionally receive 5,000 credits/month; spend is governed\nby credits (402 on exhaustion), with daily ceilings acting as abuse protection.\n\nResponses with a finite limit include rate-limit headers:\n- `X-RateLimit-Limit` \u2014 daily cap for the namespace\n- `X-RateLimit-Remaining` \u2014 requests left today\n- `X-RateLimit-Reset` \u2014 ISO 8601 timestamp when the window resets (midnight UTC)\n\n## Pagination\n\nList endpoints use cursor-based pagination. Pass `limit` (1\u2013100, default 20),\n`cursor` (opaque token from `pagination.next_cursor`), and `order` (`asc` or `desc`, default `desc`).\n\n## Errors\n\nAll errors return a JSON body with `error` (machine-readable code) and `message`\n(human-readable explanation). Additional fields vary by error type.\n\n| Code | Error | Description |\n|------|--------------------|------------------------------------------|\n| 400 | validation_error | Request body is malformed or invalid |\n| 401 | unauthorized | Missing or invalid API key |\n| 403 | insufficient_scope | API key lacks the required scope |\n| 404 | not_found | Resource does not exist |\n| 409 | conflict | Resource state conflict |\n| 413 | payload_too_large | File exceeds 500 MB limit |\n| 422 | extraction_failed | Document could not be processed |\n| 429 | rate_limit_exceeded| Daily rate limit reached |\n| 500 | internal_error | Unexpected server error (retryable) |\n\nEvery error response follows this envelope:\n\n```json\n{\n "statusCode": 400,\n "code": "VALIDATION_ERROR",\n "error": "Bad Request",\n "message": "name is required.",\n "retryable": false,\n "timestamp": "2026-04-25T14:30:00.000Z",\n "path": "/v1/schemas"\n}\n```\n\nThe `code` field is one of: `VALIDATION_ERROR`, `AUTH_REQUIRED`, `TOKEN_EXPIRED`,\n`INSUFFICIENT_PERMISSIONS`, `RESOURCE_NOT_FOUND`, `QUOTA_EXCEEDED`,\n`INSUFFICIENT_CREDITS`, `LLM_RATE_LIMITED`, `LLM_TIMEOUT`, `LLM_UNAVAILABLE`,\n`OCR_FAILED`, `EXTRACTION_FAILED`, `EXTRACTION_TIMEOUT`, `FILE_TOO_LARGE`,\n`DUPLICATE_RESOURCE`, `DATASPACE_RUN_FAILED`, `INTERNAL_ERROR`.\n\n### Refusal reasons\n\nA refusal an integration must branch on also carries `reason`, a stable\ntoken beside `code`. Branch on `reason`, not on `code`, `error` or the\nmessage: `code` says only which HTTP family the refusal belongs to, `error`\nis the HTTP status name on some refusals and a body discriminant on others,\nand messages are prose. The key is present only on refusals; absent means\n"no stable reason, read `message`". Message prefixes (`insufficient_grant:\n\u2026`) are kept for older clients that parse them; where a message carries one it equals `reason`, but not every refusal has a prefix (the Apps-ladder refusals are plain sentences), so branch on `reason`.\n\n| `reason` | Status | What the caller does |\n|---|---|---|\n| `insufficient_grant` | 403 | The app holds no approved grant covering this resource, or the route is not reachable by an app service key at all. Not retryable \u2014 stop and ask the workspace owner to grant it. |\n| `install_pending_approval` | 403 | A newer version of the app awaits owner approval and the install is paused. Poll `GET /v1/apps/{id}/install/status`. |\n| `install_not_ready` | 403 / 409 | The install is not in force (403, no installed binding for this service key) or is parked on an unapproved version / has no bound OAuth client (409). Poll `GET /v1/apps/{id}/install/status`. |\n| `endpoint_not_confirmed` | 400 | The binding would give the install its first subscriptions, or `confirm_subscriptions_endpoint` does not equal the manifest\'s `subscriptions_endpoint`. An owner action \u2014 re-send with the confirmation. |\n| `slot_unbound` | 400 / 409 | A required requirement slot has no binding (400 at install/rebind, 409 when a run resolves an already-installed version). The owner binds the named aliases. |\n| `slot_unknown` | 400 | The request named an alias the manifest declares no slot for. Fix the manifest or the request. |\n| `hosted_manifest_read_only` | 409 | The app\'s manifest is fetched from the vendor\'s URL, so local edits are refused. Edit at the vendor host, then `POST /v1/apps/{id}/refresh`. |\n| `hosted_surface_fixed` | 422 | A hosted app\'s surface URL comes from its manifest and moves only when a new version is approved; drop `surface_url` from the patch. |\n| `manifest_fetch_failed` | 422 | The vendor\'s manifest URL could not be read. `details.violations` carries the fetch reason. Fix it at the vendor host and retry. |\n| `schema_validation_failed` | 422 | A manifest does not validate, on publish or on a hosted fetch. `details.violations` carries `{ pointer, keyword, message }` per failure. |\n| `refresh_failed` | 422 | A hosted refresh did not happen; the failure is recorded on the app and it stays live on its approved version. `details` carries `{ changed, error }`. Fix it at the vendor host. |\n| `insufficient_scope` | 403 | The key or token lacks a required scope. `required_scopes` names the ones that admit. Workspace keys and OAuth clients receive this; an app service key never does, because both scope paths hand an app principal to its grant checks instead. |\n| `unauthenticated` | 403 | The Apps surface saw no authenticated principal. |\n| `workspace_required` | 403 | The Apps surface needs a concrete workspace; a master-view key cannot call it. |\n| `insufficient_tier` | 403 | The caller\'s workspace role (or an OAuth token\'s role claim) ranks below the route\'s tier. `required` names the tier. |\n| `owner_required` | 403 | Grant and OAuth-client management needs a human workspace owner; no machine caller reaches it. |\n| `insufficient_app_grant` | 403 | The API key holds app grants, but none at the level this route needs. `required` names the tier. |\n| `decide_grant_required` | 403 | The decision-task protocol admits only a machine caller holding an explicit `decide` grant on the app. |\n\n## Async Extraction Flow\n\nDocuments \u22645 pages return results synchronously (`200`). Larger documents\n\u2014 or any request with `options: {"async": true}` \u2014 return `202 Accepted`.\n\n**1. Submit extraction:**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H "Authorization: Bearer tlnc_live_abc123" \\\n -F "file=@contract.pdf" \\\n -F \'options={"async": true}\'\n```\n\nResponse `202`:\n```json\n{\n "request_id": "req_x7y8z9a0",\n "status": "processing",\n "document": { "id": "f0e1d2c3-b4a5-9687-8765-432109876543" },\n "poll_url": "/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543"\n}\n```\n\n**2. Poll until complete:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543 \\\n -H "Authorization: Bearer tlnc_live_abc123"\n```\n\nWhile processing: `{ "status": "processing" }`\nWhen done: `{ "status": "completed" }`\n\n**3. Retrieve results:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543/extractions \\\n -H "Authorization: Bearer tlnc_live_abc123"\n```\n\n**Python \u2014 complete async flow with exponential backoff:**\n\n```python\nimport time\nimport requests\n\nAPI_KEY = "tlnc_live_..."\nBASE = "https://api.talonic.com/v1"\nHEADERS = {"Authorization": f"Bearer {API_KEY}"}\n\n# Step 1: Submit async extraction\nresp = requests.post(f"{BASE}/extract",\n headers=HEADERS,\n files={"file": open("contract.pdf", "rb")},\n data={"options": \'{"async": true}\'})\ndoc_id = resp.json()["document"]["id"]\n\n# Step 2: Poll with exponential backoff (2s \u2192 4s \u2192 8s \u2192 16s \u2192 30s cap)\ndelay = 2\nfor _ in range(20):\n time.sleep(delay)\n doc = requests.get(f"{BASE}/documents/{doc_id}", headers=HEADERS).json()\n if doc["status"] == "completed":\n break\n if doc["status"] == "error":\n raise Exception(f"Extraction failed: {doc.get(\'error\')}")\n delay = min(delay * 2, 30)\n\n# Step 3: Retrieve extracted data\nextractions = requests.get(\n f"{BASE}/documents/{doc_id}/extractions", headers=HEADERS).json()\ndata = extractions["data"][0]["data"]\nconfidence = extractions["data"][0]["confidence"]["overall"]\nprint(f"Extracted {len(data)} fields (confidence: {confidence})")\nprint(data)\n# \u2192 {"vendor_name": "Acme Corp", "total_amount": 1250.00, ...}\n```\n\n**TypeScript \u2014 same flow:**\n\n```typescript\nconst API_KEY = "tlnc_live_...";\nconst BASE = "https://api.talonic.com/v1";\nconst headers = { Authorization: `Bearer ${API_KEY}` };\n\n// Step 1: Submit async extraction\nconst form = new FormData();\nform.append("file", fs.createReadStream("contract.pdf"));\nform.append("options", \'{"async": true}\');\nconst { document } = await fetch(`${BASE}/extract`, {\n method: "POST", headers, body: form,\n}).then((r) => r.json());\n\n// Step 2: Poll with exponential backoff\nlet delay = 2000;\nlet doc: any;\nfor (let i = 0; i < 20; i++) {\n await new Promise((r) => setTimeout(r, delay));\n doc = await fetch(`${BASE}/documents/${document.id}`, { headers }).then((r) => r.json());\n if (doc.status === "completed") break;\n if (doc.status === "error") throw new Error(`Extraction failed: ${doc.error}`);\n delay = Math.min(delay * 2, 30_000);\n}\n\n// Step 3: Retrieve extracted data\nconst { data: extractions } = await fetch(\n `${BASE}/documents/${document.id}/extractions`, { headers }\n).then((r) => r.json());\nconsole.log(extractions[0].data);\n// \u2192 { vendor_name: "Acme Corp", total_amount: 1250.00, ... }\n```\n\nRecommended polling: 2s initial, exponential backoff (2\u21924\u21928\u219216\u219230s cap),\ntimeout after 5 minutes.\n\n**Alternative \u2014 Webhooks:** Configure a delivery destination and listen for\n`document.extracted` events. See the Delivery tag.\n\n**Job status state machine:**\n`pending` \u2192 `queued` \u2192 `processing` \u2192 `complete` | `failed`\n\n## Performance\n\n| Document size | Expected latency | Max timeout |\n|---------------|------------------|-------------|\n| 1\u20135 pages | Sync, <3s | 30s |\n| 6\u201350 pages | <30s average | 5 min |\n| 50+ pages | <5 min average | 30 min |\n\n**Uptime SLA:** 99.5% (Build), 99.9% (Scale), custom (Enterprise).\n\n**Max file size:** 500 MB. JSON request bodies (schemas, jobs): 1 MB.\n\n**Idempotency:** Pass `Idempotency-Key` header on POST requests. Keys are\nscoped to your organization (all keys in a workspace share one namespace)\nand at most 64 characters (a longer key is refused with 400\n`invalid_idempotency_key` before any work). Duplicates return the cached\nresponse with `cached: true`.\n',
|
|
8
8
|
contact: {
|
|
9
9
|
name: "Talonic Support",
|
|
10
10
|
email: "support@talonic.ai",
|
|
@@ -4555,7 +4555,8 @@ var openapi_default = {
|
|
|
4555
4555
|
enum: [
|
|
4556
4556
|
"in_flight",
|
|
4557
4557
|
"succeeded",
|
|
4558
|
-
"failed"
|
|
4558
|
+
"failed",
|
|
4559
|
+
"superseded"
|
|
4559
4560
|
]
|
|
4560
4561
|
}
|
|
4561
4562
|
},
|
|
@@ -4643,7 +4644,8 @@ var openapi_default = {
|
|
|
4643
4644
|
enum: [
|
|
4644
4645
|
"in_flight",
|
|
4645
4646
|
"succeeded",
|
|
4646
|
-
"failed"
|
|
4647
|
+
"failed",
|
|
4648
|
+
"superseded"
|
|
4647
4649
|
]
|
|
4648
4650
|
}
|
|
4649
4651
|
}
|
|
@@ -21156,7 +21158,7 @@ var openapi_default = {
|
|
|
21156
21158
|
}
|
|
21157
21159
|
},
|
|
21158
21160
|
"409": {
|
|
21159
|
-
description: "A governance hold blocks delivery for the run's documents.",
|
|
21161
|
+
description: "A governance hold blocks delivery for the run's documents (`RUN_RULE_HOLD`), or the dispatch is a `skipped` row written by the submitting request's delivery controls (`DISPATCH_SKIPPED_BY_REQUEST`) \u2014 trigger the node manually instead.",
|
|
21160
21162
|
content: {
|
|
21161
21163
|
"application/json": {
|
|
21162
21164
|
schema: {
|
|
@@ -21249,6 +21251,16 @@ var openapi_default = {
|
|
|
21249
21251
|
],
|
|
21250
21252
|
default: "ingest",
|
|
21251
21253
|
description: "How far the platform processes the run's documents beyond the Spec pipeline. `ingest` (default): after OCR, Stage-2 field capture runs asynchronously so the corpus becomes queryable by the agent surfaces (POST /v1/ask) and the pipeline's Transfer phase \u2014 the pipeline still starts the moment OCR markdown is ready, capture never delays it. `extract`: markdown-only; the documents are not askable.\n"
|
|
21254
|
+
},
|
|
21255
|
+
dispatch: {
|
|
21256
|
+
type: "boolean",
|
|
21257
|
+
default: true,
|
|
21258
|
+
description: '`false` = none of the Spec\'s Dispatch nodes fires for this request\'s payloads (multipart carries it as the string "true"/"false"). The shorthand for `bindings` with every node set to null. A skipped node is recorded as a `skipped` dispatch on the pipeline (GET /v1/pipelines/{id}/dispatches) and cannot be re-dispatched; a manual trigger of the node still works. Legacy `document.structured` / `run.completed` deliveries are not affected. Named `dispatch`, not `deliver`: the Spec already has a `deliver` (Data Product) stage.\n'
|
|
21259
|
+
},
|
|
21260
|
+
bindings: {
|
|
21261
|
+
type: "string",
|
|
21262
|
+
maxLength: 8192,
|
|
21263
|
+
description: "Optional JSON string of `{ [dispatchNodeId]: destinationId | null }`. Per Dispatch node of the Spec's published version: deliver this request's payloads to that destination instead of each binding's own (every binding of the node is re-pointed as a unit, keeping its field map, serializer and retry policy), or `null` to skip that node. Keys are the node ids shown in the Spec editor and in `dispatch.*` binding filters (stable per Spec version; a node re-added after deletion mints a new id). A key is accepted when the node is on the Spec's published version OR on the newest pipeline's frozen rail: the early trigger modes read the published version, `on_run_completed` reads the rail frozen when the pipeline was created (an append request reuses it), and a node on only one side is accepted with a `warnings[]` entry. 400 `invalid_delivery_controls` when a key names no Dispatch node, a value is not an active destination of this workspace, a value's connector cannot carry one of the node's bindings, or `dispatch=false` is combined with a non-null value. A node with no active binding is accepted with a `warnings[]` entry. Controls attach to a document's FIRST request on a pipeline (a re-submitted document keeps its original request's controls for later re-emissions). Under `append`, a pipeline-level payload (assembly / data product) ships the non-skipping requests' records and applies an override only when every contributing request names the same destination.\n"
|
|
21252
21264
|
}
|
|
21253
21265
|
}
|
|
21254
21266
|
}
|
|
@@ -21342,6 +21354,30 @@ var openapi_default = {
|
|
|
21342
21354
|
deduplicated: false
|
|
21343
21355
|
}
|
|
21344
21356
|
}
|
|
21357
|
+
},
|
|
21358
|
+
warnings: {
|
|
21359
|
+
type: "array",
|
|
21360
|
+
description: "Present only when the accepted request carries a non-fatal note: `no_binding_for_node` (a `bindings` override names a Dispatch node that has no active binding, so nothing will be delivered for it); `node_not_in_live_pipeline` (the node is on the published version but not on the newest pipeline's frozen rail \u2014 if this request appends onto that pipeline, its on_run_completed trigger cannot see the node; the early trigger modes can); `node_not_on_published_version` (the node exists only on that pipeline's frozen rail \u2014 it governs on_run_completed there and nothing else).\n",
|
|
21361
|
+
items: {
|
|
21362
|
+
type: "object",
|
|
21363
|
+
required: [
|
|
21364
|
+
"code",
|
|
21365
|
+
"message"
|
|
21366
|
+
],
|
|
21367
|
+
properties: {
|
|
21368
|
+
code: {
|
|
21369
|
+
type: "string",
|
|
21370
|
+
enum: [
|
|
21371
|
+
"no_binding_for_node",
|
|
21372
|
+
"node_not_in_live_pipeline",
|
|
21373
|
+
"node_not_on_published_version"
|
|
21374
|
+
]
|
|
21375
|
+
},
|
|
21376
|
+
message: {
|
|
21377
|
+
type: "string"
|
|
21378
|
+
}
|
|
21379
|
+
}
|
|
21380
|
+
}
|
|
21345
21381
|
}
|
|
21346
21382
|
}
|
|
21347
21383
|
}
|
|
@@ -21349,7 +21385,7 @@ var openapi_default = {
|
|
|
21349
21385
|
}
|
|
21350
21386
|
},
|
|
21351
21387
|
"400": {
|
|
21352
|
-
description: "Missing spec_id, no input provided (both files and file_urls empty),
|
|
21388
|
+
description: "Missing spec_id, no input provided (both files and file_urls empty), metadata is not a valid flat JSON object (`invalid_metadata`), or `dispatch` / `bindings` are malformed or name an unknown Dispatch node, an inactive or foreign destination, or a destination the node's bindings cannot deliver to (`invalid_delivery_controls`)."
|
|
21353
21389
|
},
|
|
21354
21390
|
"402": {
|
|
21355
21391
|
description: "Insufficient credits for an ingest leg."
|
|
@@ -21446,6 +21482,26 @@ var openapi_default = {
|
|
|
21446
21482
|
nullable: true,
|
|
21447
21483
|
description: "The caller grouping key supplied on POST /v1/run, echoed back here."
|
|
21448
21484
|
},
|
|
21485
|
+
dispatch: {
|
|
21486
|
+
type: "boolean",
|
|
21487
|
+
enum: [
|
|
21488
|
+
false
|
|
21489
|
+
],
|
|
21490
|
+
description: "Present only when the request sent `dispatch=false`."
|
|
21491
|
+
},
|
|
21492
|
+
bindings: {
|
|
21493
|
+
type: "object",
|
|
21494
|
+
additionalProperties: {
|
|
21495
|
+
type: "string",
|
|
21496
|
+
format: "uuid",
|
|
21497
|
+
nullable: true
|
|
21498
|
+
},
|
|
21499
|
+
description: "The per-node overrides supplied on POST /v1/run (`null` = that node skipped), echoed back here; present only when sent."
|
|
21500
|
+
},
|
|
21501
|
+
dispatch_skipped: {
|
|
21502
|
+
type: "boolean",
|
|
21503
|
+
description: "Present only when the request carried delivery controls: true when they suppress at least one Dispatch node (`dispatch=false` or any null `bindings` value). Derived from the stored controls; what actually happened per node is on GET /v1/pipelines/{id}/dispatches (status `skipped`).\n"
|
|
21504
|
+
},
|
|
21449
21505
|
created_at: {
|
|
21450
21506
|
type: "string",
|
|
21451
21507
|
format: "date-time"
|
|
@@ -27308,6 +27364,168 @@ var openapi_default = {
|
|
|
27308
27364
|
}
|
|
27309
27365
|
}
|
|
27310
27366
|
},
|
|
27367
|
+
"/v1/apps/{id}/subjects": {
|
|
27368
|
+
get: {
|
|
27369
|
+
operationId: "listAppStandingSubjects",
|
|
27370
|
+
summary: "Standing decision per record group (highest revision across sealed runs)",
|
|
27371
|
+
description: "One row per subject key: the highest-`decision_revision` verdict among SEALED, non-dry runs \u2014 the decision a dedupe-by-max-revision receiver converges on. Each row names the deciding run, its App version and that version's content hash; the `versions` map carries a semantic fingerprint per rule so clients can render historical outcomes only under semantically identical current rules. Cursor-paginated by subject key.",
|
|
27372
|
+
tags: [
|
|
27373
|
+
"Apps"
|
|
27374
|
+
],
|
|
27375
|
+
parameters: [
|
|
27376
|
+
{
|
|
27377
|
+
name: "id",
|
|
27378
|
+
in: "path",
|
|
27379
|
+
required: true,
|
|
27380
|
+
schema: {
|
|
27381
|
+
type: "string",
|
|
27382
|
+
format: "uuid"
|
|
27383
|
+
}
|
|
27384
|
+
},
|
|
27385
|
+
{
|
|
27386
|
+
name: "limit",
|
|
27387
|
+
in: "query",
|
|
27388
|
+
schema: {
|
|
27389
|
+
type: "integer",
|
|
27390
|
+
minimum: 1,
|
|
27391
|
+
maximum: 500,
|
|
27392
|
+
default: 100
|
|
27393
|
+
}
|
|
27394
|
+
},
|
|
27395
|
+
{
|
|
27396
|
+
name: "cursor",
|
|
27397
|
+
in: "query",
|
|
27398
|
+
schema: {
|
|
27399
|
+
type: "string"
|
|
27400
|
+
},
|
|
27401
|
+
description: "Opaque cursor: the last subject_key of the previous page."
|
|
27402
|
+
},
|
|
27403
|
+
{
|
|
27404
|
+
name: "include",
|
|
27405
|
+
in: "query",
|
|
27406
|
+
schema: {
|
|
27407
|
+
type: "string",
|
|
27408
|
+
enum: [
|
|
27409
|
+
"summary"
|
|
27410
|
+
]
|
|
27411
|
+
},
|
|
27412
|
+
description: "'summary' omits rule_outcomes and document_outcomes from each row."
|
|
27413
|
+
}
|
|
27414
|
+
],
|
|
27415
|
+
responses: {
|
|
27416
|
+
"200": {
|
|
27417
|
+
description: "Standing decisions page.",
|
|
27418
|
+
content: {
|
|
27419
|
+
"application/json": {
|
|
27420
|
+
schema: {
|
|
27421
|
+
type: "object",
|
|
27422
|
+
properties: {
|
|
27423
|
+
subjects: {
|
|
27424
|
+
type: "array",
|
|
27425
|
+
items: {
|
|
27426
|
+
type: "object",
|
|
27427
|
+
properties: {
|
|
27428
|
+
subject_key: {
|
|
27429
|
+
type: "string"
|
|
27430
|
+
},
|
|
27431
|
+
rolled_outcome: {
|
|
27432
|
+
type: "string",
|
|
27433
|
+
enum: [
|
|
27434
|
+
"passed",
|
|
27435
|
+
"failed",
|
|
27436
|
+
"indeterminate",
|
|
27437
|
+
"not_applicable"
|
|
27438
|
+
]
|
|
27439
|
+
},
|
|
27440
|
+
auto: {
|
|
27441
|
+
type: "boolean"
|
|
27442
|
+
},
|
|
27443
|
+
substantive_passes: {
|
|
27444
|
+
type: "integer"
|
|
27445
|
+
},
|
|
27446
|
+
rule_outcomes: {
|
|
27447
|
+
type: "object",
|
|
27448
|
+
nullable: true
|
|
27449
|
+
},
|
|
27450
|
+
document_outcomes: {
|
|
27451
|
+
type: "array",
|
|
27452
|
+
nullable: true,
|
|
27453
|
+
items: {
|
|
27454
|
+
type: "object"
|
|
27455
|
+
}
|
|
27456
|
+
},
|
|
27457
|
+
decision_state: {
|
|
27458
|
+
type: "string",
|
|
27459
|
+
enum: [
|
|
27460
|
+
"eligible",
|
|
27461
|
+
"ineligible",
|
|
27462
|
+
"unclear"
|
|
27463
|
+
]
|
|
27464
|
+
},
|
|
27465
|
+
decision_revision: {
|
|
27466
|
+
type: "integer",
|
|
27467
|
+
nullable: true
|
|
27468
|
+
},
|
|
27469
|
+
run_id: {
|
|
27470
|
+
type: "string",
|
|
27471
|
+
format: "uuid"
|
|
27472
|
+
},
|
|
27473
|
+
decided_at: {
|
|
27474
|
+
type: "string",
|
|
27475
|
+
format: "date-time"
|
|
27476
|
+
},
|
|
27477
|
+
app_version: {
|
|
27478
|
+
type: "integer"
|
|
27479
|
+
},
|
|
27480
|
+
app_version_hash: {
|
|
27481
|
+
type: "string",
|
|
27482
|
+
nullable: true
|
|
27483
|
+
}
|
|
27484
|
+
}
|
|
27485
|
+
}
|
|
27486
|
+
},
|
|
27487
|
+
next: {
|
|
27488
|
+
type: "string",
|
|
27489
|
+
nullable: true
|
|
27490
|
+
},
|
|
27491
|
+
active_version: {
|
|
27492
|
+
type: "integer",
|
|
27493
|
+
nullable: true
|
|
27494
|
+
},
|
|
27495
|
+
versions: {
|
|
27496
|
+
type: "object",
|
|
27497
|
+
additionalProperties: {
|
|
27498
|
+
type: "object",
|
|
27499
|
+
properties: {
|
|
27500
|
+
content_hash: {
|
|
27501
|
+
type: "string"
|
|
27502
|
+
},
|
|
27503
|
+
fingerprints: {
|
|
27504
|
+
type: "object",
|
|
27505
|
+
additionalProperties: {
|
|
27506
|
+
type: "string"
|
|
27507
|
+
}
|
|
27508
|
+
}
|
|
27509
|
+
}
|
|
27510
|
+
}
|
|
27511
|
+
}
|
|
27512
|
+
}
|
|
27513
|
+
}
|
|
27514
|
+
}
|
|
27515
|
+
}
|
|
27516
|
+
},
|
|
27517
|
+
"403": {
|
|
27518
|
+
description: "Master view ('all') or missing workspace \u2014 a concrete tenant is required."
|
|
27519
|
+
},
|
|
27520
|
+
"404": {
|
|
27521
|
+
$ref: "#/components/responses/NotFound"
|
|
27522
|
+
},
|
|
27523
|
+
"501": {
|
|
27524
|
+
description: "Batch verdicts are not available in this deployment."
|
|
27525
|
+
}
|
|
27526
|
+
}
|
|
27527
|
+
}
|
|
27528
|
+
},
|
|
27311
27529
|
"/v1/apps/{id}/replays": {
|
|
27312
27530
|
post: {
|
|
27313
27531
|
operationId: "startAppReplay",
|
|
@@ -28329,6 +28547,135 @@ var openapi_default = {
|
|
|
28329
28547
|
}
|
|
28330
28548
|
}
|
|
28331
28549
|
},
|
|
28550
|
+
"/v1/runs/{runId}/reconstruction": {
|
|
28551
|
+
get: {
|
|
28552
|
+
operationId: "reconstructRunDocumentMatrix",
|
|
28553
|
+
summary: "Replay one subject's document\xD7rule matrix from the frozen package (read-only)",
|
|
28554
|
+
description: "A CURRENT-ENGINE replay of the run's frozen input package under its pinned App version, for runs sealed before per-document outcomes were persisted. No side effects: no LLM adjudication, no verdict rows, no revisions, no delivery. Integrity is judged per rule against the sealed rule_outcomes; cells of a diverged rule are withheld as historical_result_not_reproducible. The sealed outcomes remain authoritative.",
|
|
28555
|
+
tags: [
|
|
28556
|
+
"Apps"
|
|
28557
|
+
],
|
|
28558
|
+
parameters: [
|
|
28559
|
+
{
|
|
28560
|
+
name: "runId",
|
|
28561
|
+
in: "path",
|
|
28562
|
+
required: true,
|
|
28563
|
+
schema: {
|
|
28564
|
+
type: "string",
|
|
28565
|
+
format: "uuid"
|
|
28566
|
+
}
|
|
28567
|
+
},
|
|
28568
|
+
{
|
|
28569
|
+
name: "subject",
|
|
28570
|
+
in: "query",
|
|
28571
|
+
required: true,
|
|
28572
|
+
schema: {
|
|
28573
|
+
type: "string"
|
|
28574
|
+
}
|
|
28575
|
+
}
|
|
28576
|
+
],
|
|
28577
|
+
responses: {
|
|
28578
|
+
"200": {
|
|
28579
|
+
description: "Reconstructed matrix for the subject.",
|
|
28580
|
+
content: {
|
|
28581
|
+
"application/json": {
|
|
28582
|
+
schema: {
|
|
28583
|
+
type: "object",
|
|
28584
|
+
properties: {
|
|
28585
|
+
reconstructed: {
|
|
28586
|
+
type: "boolean",
|
|
28587
|
+
enum: [
|
|
28588
|
+
true
|
|
28589
|
+
]
|
|
28590
|
+
},
|
|
28591
|
+
engine_note: {
|
|
28592
|
+
type: "string"
|
|
28593
|
+
},
|
|
28594
|
+
run_id: {
|
|
28595
|
+
type: "string",
|
|
28596
|
+
format: "uuid"
|
|
28597
|
+
},
|
|
28598
|
+
subject_key: {
|
|
28599
|
+
type: "string"
|
|
28600
|
+
},
|
|
28601
|
+
sealed: {
|
|
28602
|
+
type: "object",
|
|
28603
|
+
properties: {
|
|
28604
|
+
rolled_outcome: {
|
|
28605
|
+
type: "string"
|
|
28606
|
+
},
|
|
28607
|
+
auto: {
|
|
28608
|
+
type: "boolean"
|
|
28609
|
+
}
|
|
28610
|
+
}
|
|
28611
|
+
},
|
|
28612
|
+
replay: {
|
|
28613
|
+
type: "object",
|
|
28614
|
+
properties: {
|
|
28615
|
+
rolled_outcome: {
|
|
28616
|
+
type: "string"
|
|
28617
|
+
},
|
|
28618
|
+
auto: {
|
|
28619
|
+
type: "boolean"
|
|
28620
|
+
}
|
|
28621
|
+
}
|
|
28622
|
+
},
|
|
28623
|
+
diverged_rules: {
|
|
28624
|
+
type: "array",
|
|
28625
|
+
items: {
|
|
28626
|
+
type: "object",
|
|
28627
|
+
properties: {
|
|
28628
|
+
cardId: {
|
|
28629
|
+
type: "string"
|
|
28630
|
+
},
|
|
28631
|
+
sealed: {
|
|
28632
|
+
type: "string",
|
|
28633
|
+
nullable: true
|
|
28634
|
+
},
|
|
28635
|
+
replay: {
|
|
28636
|
+
type: "string",
|
|
28637
|
+
nullable: true
|
|
28638
|
+
},
|
|
28639
|
+
label: {
|
|
28640
|
+
type: "string",
|
|
28641
|
+
enum: [
|
|
28642
|
+
"historical_result_not_reproducible"
|
|
28643
|
+
]
|
|
28644
|
+
}
|
|
28645
|
+
}
|
|
28646
|
+
}
|
|
28647
|
+
},
|
|
28648
|
+
document_outcomes: {
|
|
28649
|
+
type: "array",
|
|
28650
|
+
items: {
|
|
28651
|
+
type: "object"
|
|
28652
|
+
}
|
|
28653
|
+
}
|
|
28654
|
+
}
|
|
28655
|
+
}
|
|
28656
|
+
}
|
|
28657
|
+
}
|
|
28658
|
+
},
|
|
28659
|
+
"403": {
|
|
28660
|
+
description: "Master view ('all') or missing workspace \u2014 a concrete tenant is required."
|
|
28661
|
+
},
|
|
28662
|
+
"404": {
|
|
28663
|
+
$ref: "#/components/responses/NotFound"
|
|
28664
|
+
},
|
|
28665
|
+
"422": {
|
|
28666
|
+
description: "subject must be a single string query parameter."
|
|
28667
|
+
},
|
|
28668
|
+
"501": {
|
|
28669
|
+
description: "Batch verdicts are not available in this deployment."
|
|
28670
|
+
},
|
|
28671
|
+
"503": {
|
|
28672
|
+
description: "Reconstruction unavailable (package too large",
|
|
28673
|
+
"replay timed out": null,
|
|
28674
|
+
"or the process is at its concurrent-replay cap).": null
|
|
28675
|
+
}
|
|
28676
|
+
}
|
|
28677
|
+
}
|
|
28678
|
+
},
|
|
28332
28679
|
"/v1/runs/{runId}/record": {
|
|
28333
28680
|
get: {
|
|
28334
28681
|
operationId: "getAppRunRecord",
|
|
@@ -28972,7 +29319,7 @@ var openapi_default = {
|
|
|
28972
29319
|
type: "http",
|
|
28973
29320
|
scheme: "bearer",
|
|
28974
29321
|
bearerFormat: "JWT",
|
|
28975
|
-
description: "OAuth 2.1 access token (JWT) from the connector OAuth flow. Routes\nthat declare this scheme reject `tlnc_` API keys with `401`.\n\nScopes a client may request (the live list is served by\n`GET /.well-known/oauth-authorization-server` as `scopes_supported`):\n\n| Scope | Grants |\n|---|---|\n| `extract:write` | Create extractions; every legacy `write` route |\n| `documents:read` | Read documents and extraction results |\n| `schemas:read` | Read schemas and field definitions |\n| `sources:read` | List connected sources |\n| `webhooks:manage` | Create and manage webhooks |\n| `apps:read` | Read apps, runs and results |\n| `apps:operate` | Run and operate apps |\n| `records:write` | Write record-set data |\n| `identity:read` | Identity only (`/oauth/userinfo`); no `/v1` privilege |\n\nA client that omits `scope` receives the five legacy public-API scopes\nonly. `apps:read`, `apps:operate`, `records:write` and `identity:read`\nare never granted implicitly and must be requested by name. The Apps\nscopes are checked directly by the routes that need them: holding\n`extract:write` does not satisfy an Apps write or a record-set write,\nand `apps:read` alone cannot start a run.\n"
|
|
29322
|
+
description: "OAuth 2.1 access token (JWT) from the connector OAuth flow. Routes\nthat declare this scheme reject `tlnc_` API keys with `401`.\n\nScopes a client may request (the live list is served by\n`GET /.well-known/oauth-authorization-server` as `scopes_supported`):\n\n| Scope | Grants |\n|---|---|\n| `extract:write` | Create extractions; every legacy `write` route |\n| `documents:read` | Read documents and extraction results |\n| `schemas:read` | Read schemas and field definitions |\n| `sources:read` | List connected sources |\n| `webhooks:manage` | Create and manage webhooks |\n| `apps:read` | Read apps, runs and results |\n| `apps:operate` | Run and operate apps |\n| `apps:decide` | Claim and decide tasks on the workspace's apps as the person (the `decide` tier; needs an active senior_member-or-higher membership, checked on every request; never pre-consentable) |\n| `records:write` | Write record-set data |\n| `identity:read` | Identity only (`/oauth/userinfo`); no `/v1` privilege |\n\nA client that omits `scope` receives the five legacy public-API scopes\nonly. `apps:read`, `apps:operate`, `apps:decide`, `records:write` and `identity:read`\nare never granted implicitly and must be requested by name. The Apps\nscopes are checked directly by the routes that need them: holding\n`extract:write` does not satisfy an Apps write or a record-set write,\nand `apps:read` alone cannot start a run.\n"
|
|
28976
29323
|
}
|
|
28977
29324
|
},
|
|
28978
29325
|
parameters: {
|
|
@@ -29043,9 +29390,10 @@ var openapi_default = {
|
|
|
29043
29390
|
name: "Idempotency-Key",
|
|
29044
29391
|
in: "header",
|
|
29045
29392
|
schema: {
|
|
29046
|
-
type: "string"
|
|
29393
|
+
type: "string",
|
|
29394
|
+
maxLength: 64
|
|
29047
29395
|
},
|
|
29048
|
-
description: "Unique key for idempotent requests. If a
|
|
29396
|
+
description: "Unique key for idempotent requests, at most 64 characters (a longer key\nis refused with 400 `invalid_idempotency_key` before any work). If a\nrequest with the same key was already processed, the cached result is\nreturned.\n"
|
|
29049
29397
|
}
|
|
29050
29398
|
},
|
|
29051
29399
|
headers: {
|
|
@@ -30794,7 +31142,7 @@ var openapi_default = {
|
|
|
30794
31142
|
"string",
|
|
30795
31143
|
"null"
|
|
30796
31144
|
],
|
|
30797
|
-
description: "
|
|
31145
|
+
description: "The claimant: an API key id, or `oauth:<client_id>:<user_id>` for an OAuth session."
|
|
30798
31146
|
},
|
|
30799
31147
|
claimed_at: {
|
|
30800
31148
|
type: [
|
|
@@ -30847,10 +31195,18 @@ var openapi_default = {
|
|
|
30847
31195
|
"first_cursor"
|
|
30848
31196
|
],
|
|
30849
31197
|
properties: {
|
|
31198
|
+
package_kind: {
|
|
31199
|
+
type: "string",
|
|
31200
|
+
enum: [
|
|
31201
|
+
"records",
|
|
31202
|
+
"mining_round"
|
|
31203
|
+
],
|
|
31204
|
+
description: "`records` for a frozen input package; `mining_round` when the task stands for a mining round driven from outside, whose package is one record carrying the prompts the hosted model would have seen (record_count 1)."
|
|
31205
|
+
},
|
|
30850
31206
|
record_count: {
|
|
30851
31207
|
type: "integer",
|
|
30852
31208
|
minimum: 0,
|
|
30853
|
-
description: "Total records across every binding of the frozen package."
|
|
31209
|
+
description: "Total records across every binding of the frozen package; 1 for a mining round."
|
|
30854
31210
|
},
|
|
30855
31211
|
page_size: {
|
|
30856
31212
|
type: "integer",
|
|
@@ -34712,8 +35068,11 @@ var openapi_default = {
|
|
|
34712
35068
|
"pending",
|
|
34713
35069
|
"published",
|
|
34714
35070
|
"empty",
|
|
34715
|
-
"failed"
|
|
34716
|
-
|
|
35071
|
+
"failed",
|
|
35072
|
+
"superseded",
|
|
35073
|
+
"skipped"
|
|
35074
|
+
],
|
|
35075
|
+
description: "`skipped` = the submitting POST /v1/run request's `dispatch` / `bindings` controls suppressed this node (no events; terminal, not re-dispatchable)."
|
|
34717
35076
|
},
|
|
34718
35077
|
record_count: {
|
|
34719
35078
|
type: "integer",
|
|
@@ -34819,8 +35178,11 @@ var openapi_default = {
|
|
|
34819
35178
|
"pending",
|
|
34820
35179
|
"published",
|
|
34821
35180
|
"empty",
|
|
34822
|
-
"failed"
|
|
34823
|
-
|
|
35181
|
+
"failed",
|
|
35182
|
+
"superseded",
|
|
35183
|
+
"skipped"
|
|
35184
|
+
],
|
|
35185
|
+
description: "`skipped` = the submitting POST /v1/run request's `dispatch` / `bindings` controls suppressed this node (no events; terminal, not re-dispatchable)."
|
|
34824
35186
|
},
|
|
34825
35187
|
error: {
|
|
34826
35188
|
type: [
|
|
@@ -35254,7 +35616,8 @@ var openapi_default = {
|
|
|
35254
35616
|
enum: [
|
|
35255
35617
|
"in_flight",
|
|
35256
35618
|
"succeeded",
|
|
35257
|
-
"failed"
|
|
35619
|
+
"failed",
|
|
35620
|
+
"superseded"
|
|
35258
35621
|
]
|
|
35259
35622
|
},
|
|
35260
35623
|
attempt: {
|
package/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Talonic API",
|
|
5
5
|
"version": "1.1.0",
|
|
6
|
-
"description": "Structure any document into schema-validated data.\n\nThe Talonic API lets you extract structured data from documents (PDFs, images,\nDOCX, CSV, plain text), manage reusable extraction schemas, track async jobs,\nand organise documents through sources.\n\n## Quick Start\n\n**1. Get your API key**\n\nSign up at [app.talonic.com](https://app.talonic.com) → Settings → API Keys → Create key.\nKeys start with `tlnc_`. All examples below use `tlnc_live_abc123` as a placeholder.\n\n**2. Extract your first document**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H \"Authorization: Bearer tlnc_live_abc123\" \\\n -F \"file=@invoice.pdf\" \\\n -F 'schema={\"properties\":{\"vendor_name\":{\"type\":\"string\"},\"total_amount\":{\"type\":\"number\"},\"invoice_date\":{\"type\":\"string\"}}}'\n```\n\n**Python:**\n```python\nimport requests\nresp = requests.post(\"https://api.talonic.com/v1/extract\",\n headers={\"Authorization\": \"Bearer tlnc_live_abc123\"},\n files={\"file\": open(\"invoice.pdf\", \"rb\")},\n data={\"schema\": '{\"properties\":{\"vendor_name\":{\"type\":\"string\"},\"total_amount\":{\"type\":\"number\"},\"invoice_date\":{\"type\":\"string\"}}}'})\nprint(resp.json()[\"data\"])\n```\n\n**TypeScript:**\n```typescript\nconst form = new FormData();\nform.append(\"file\", fs.createReadStream(\"invoice.pdf\"));\nform.append(\"schema\", '{\"properties\":{\"vendor_name\":{\"type\":\"string\"},\"total_amount\":{\"type\":\"number\"},\"invoice_date\":{\"type\":\"string\"}}}');\nconst res = await fetch(\"https://api.talonic.com/v1/extract\", {\n method: \"POST\",\n headers: { Authorization: \"Bearer tlnc_live_abc123\" },\n body: form,\n}).then(r => r.json());\nconsole.log(res.data);\n```\n\n**3. What you get back**\n\n```json\n{\n \"extraction_id\": \"d1a2b3c4-5678-9abc-def0-1234567890ab\",\n \"request_id\": \"req_x7y8z9a0b1c2d3e4\",\n \"status\": \"complete\",\n \"document\": {\n \"id\": \"f0e1d2c3-b4a5-9687-8765-432109876543\",\n \"filename\": \"invoice.pdf\",\n \"pages\": 2,\n \"size_bytes\": 184320,\n \"type_detected\": \"Invoice\",\n \"language_detected\": \"en\"\n },\n \"data\": {\n \"vendor_name\": \"Acme GmbH\",\n \"total_amount\": 14250.00,\n \"invoice_date\": \"2025-03-15\"\n },\n \"confidence\": {\n \"overall\": 0.96,\n \"fields\": {\n \"vendor_name\": 0.97,\n \"total_amount\": 0.94,\n \"invoice_date\": 0.99\n }\n },\n \"processing\": {\n \"duration_ms\": 1840,\n \"pages_processed\": 2,\n \"region\": \"eu-west\"\n },\n \"links\": {\n \"self\": \"/v1/extractions/d1a2b3c4-5678-9abc-def0-1234567890ab\",\n \"document\": \"/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543\"\n }\n}\n```\n\n- **`data`** — extracted fields as key-value pairs matching your schema.\n- **`confidence.fields`** — per-field score from 0 to 1. Above 0.9 is high confidence; below 0.7 flags for review.\n- **`extraction_id`** — use this to retrieve, correct, or deliver results later.\n- Full response schema: [ExtractSyncResponse](#/components/schemas/ExtractSyncResponse)\n\n**4. Next steps**\n\n- **50+ pages?** Use async mode — see [Async Extraction Flow](#section/Async-Extraction-Flow) below.\n- **Reusable schemas** — save field definitions with `POST /v1/schemas`, then pass `schema_id` on future extractions.\n- **Receive results via webhook** — configure a delivery destination and listen for `document.extracted` events. See the [Delivery](#tag/Delivery) tag.\n\n---\n\n## Authentication\n\nAll requests require a Bearer token in the `Authorization` header.\nAPI keys are prefixed with `tlnc_` and scoped per customer.\n\n```\nAuthorization: Bearer tlnc_live_abc123...\n```\n\n## Async Extraction Pattern\n\nSmall documents (≤5 pages) are processed synchronously and return a `200`\nwith the extracted data immediately. Larger documents return a `202 Accepted`\nwith a `poll_url` — poll `GET /v1/documents/{id}` until `status` transitions\nto `completed`, then fetch results via `GET /v1/documents/{id}/extractions`.\n\nYou can force async processing by passing `options: {\"async\": true}` on\nany extraction request. Combine with webhooks for a fully event-driven flow:\nconfigure a webhook destination under Delivery and listen for the\n`extraction.complete` event.\n\n**Job status lifecycle:** `pending` → `processing` → `complete` | `failed`\n\n## Rate Limits\n\nThe **Free** tier is metered by a recurring **5,000-credit monthly grant**\n(no card required) that refreshes on the 1st of each month (UTC). Free\nrequests run until the monthly credit balance is spent, then return `402`\nuntil the next grant. A generous daily request ceiling is retained purely as\nabuse protection and does not bind a legitimate free user within the monthly\nenvelope. Inspect your balance and reset date via `GET /v1/account`.\n\nPaid tiers are metered per calendar day (UTC):\n\n| Tier | Extract | Platform | Ingest | Operations | Run | Ask |\n|------------|---------|----------|--------|------------|-----|-----|\n| Free | 1,000/day | 2,000/day | 1,000/day | 1,000/day | 1,000/day | 200/day |\n| Pro | 25,000/day | 50,000/day | 25,000/day | 25,000/day | 25,000/day | 5,000/day |\n| Enterprise | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited |\n\nFree workspaces additionally receive 5,000 credits/month; spend is governed\nby credits (402 on exhaustion), with daily ceilings acting as abuse protection.\n\nResponses with a finite limit include rate-limit headers:\n- `X-RateLimit-Limit` — daily cap for the namespace\n- `X-RateLimit-Remaining` — requests left today\n- `X-RateLimit-Reset` — ISO 8601 timestamp when the window resets (midnight UTC)\n\n## Pagination\n\nList endpoints use cursor-based pagination. Pass `limit` (1–100, default 20),\n`cursor` (opaque token from `pagination.next_cursor`), and `order` (`asc` or `desc`, default `desc`).\n\n## Errors\n\nAll errors return a JSON body with `error` (machine-readable code) and `message`\n(human-readable explanation). Additional fields vary by error type.\n\n| Code | Error | Description |\n|------|--------------------|------------------------------------------|\n| 400 | validation_error | Request body is malformed or invalid |\n| 401 | unauthorized | Missing or invalid API key |\n| 403 | insufficient_scope | API key lacks the required scope |\n| 404 | not_found | Resource does not exist |\n| 409 | conflict | Resource state conflict |\n| 413 | payload_too_large | File exceeds 500 MB limit |\n| 422 | extraction_failed | Document could not be processed |\n| 429 | rate_limit_exceeded| Daily rate limit reached |\n| 500 | internal_error | Unexpected server error (retryable) |\n\nEvery error response follows this envelope:\n\n```json\n{\n \"statusCode\": 400,\n \"code\": \"VALIDATION_ERROR\",\n \"error\": \"Bad Request\",\n \"message\": \"name is required.\",\n \"retryable\": false,\n \"timestamp\": \"2026-04-25T14:30:00.000Z\",\n \"path\": \"/v1/schemas\"\n}\n```\n\nThe `code` field is one of: `VALIDATION_ERROR`, `AUTH_REQUIRED`, `TOKEN_EXPIRED`,\n`INSUFFICIENT_PERMISSIONS`, `RESOURCE_NOT_FOUND`, `QUOTA_EXCEEDED`,\n`INSUFFICIENT_CREDITS`, `LLM_RATE_LIMITED`, `LLM_TIMEOUT`, `LLM_UNAVAILABLE`,\n`OCR_FAILED`, `EXTRACTION_FAILED`, `EXTRACTION_TIMEOUT`, `FILE_TOO_LARGE`,\n`DUPLICATE_RESOURCE`, `DATASPACE_RUN_FAILED`, `INTERNAL_ERROR`.\n\n### Refusal reasons\n\nA refusal an integration must branch on also carries `reason`, a stable\ntoken beside `code`. Branch on `reason`, not on `code`, `error` or the\nmessage: `code` says only which HTTP family the refusal belongs to, `error`\nis the HTTP status name on some refusals and a body discriminant on others,\nand messages are prose. The key is present only on refusals; absent means\n\"no stable reason, read `message`\". Message prefixes (`insufficient_grant:\n…`) are kept for older clients that parse them; where a message carries one it equals `reason`, but not every refusal has a prefix (the Apps-ladder refusals are plain sentences), so branch on `reason`.\n\n| `reason` | Status | What the caller does |\n|---|---|---|\n| `insufficient_grant` | 403 | The app holds no approved grant covering this resource, or the route is not reachable by an app service key at all. Not retryable — stop and ask the workspace owner to grant it. |\n| `install_pending_approval` | 403 | A newer version of the app awaits owner approval and the install is paused. Poll `GET /v1/apps/{id}/install/status`. |\n| `install_not_ready` | 403 / 409 | The install is not in force (403, no installed binding for this service key) or is parked on an unapproved version / has no bound OAuth client (409). Poll `GET /v1/apps/{id}/install/status`. |\n| `endpoint_not_confirmed` | 400 | The binding would give the install its first subscriptions, or `confirm_subscriptions_endpoint` does not equal the manifest's `subscriptions_endpoint`. An owner action — re-send with the confirmation. |\n| `slot_unbound` | 400 / 409 | A required requirement slot has no binding (400 at install/rebind, 409 when a run resolves an already-installed version). The owner binds the named aliases. |\n| `slot_unknown` | 400 | The request named an alias the manifest declares no slot for. Fix the manifest or the request. |\n| `hosted_manifest_read_only` | 409 | The app's manifest is fetched from the vendor's URL, so local edits are refused. Edit at the vendor host, then `POST /v1/apps/{id}/refresh`. |\n| `hosted_surface_fixed` | 422 | A hosted app's surface URL comes from its manifest and moves only when a new version is approved; drop `surface_url` from the patch. |\n| `manifest_fetch_failed` | 422 | The vendor's manifest URL could not be read. `details.violations` carries the fetch reason. Fix it at the vendor host and retry. |\n| `schema_validation_failed` | 422 | A manifest does not validate, on publish or on a hosted fetch. `details.violations` carries `{ pointer, keyword, message }` per failure. |\n| `refresh_failed` | 422 | A hosted refresh did not happen; the failure is recorded on the app and it stays live on its approved version. `details` carries `{ changed, error }`. Fix it at the vendor host. |\n| `insufficient_scope` | 403 | The key or token lacks a required scope. `required_scopes` names the ones that admit. Workspace keys and OAuth clients receive this; an app service key never does, because both scope paths hand an app principal to its grant checks instead. |\n| `unauthenticated` | 403 | The Apps surface saw no authenticated principal. |\n| `workspace_required` | 403 | The Apps surface needs a concrete workspace; a master-view key cannot call it. |\n| `insufficient_tier` | 403 | The caller's workspace role (or an OAuth token's role claim) ranks below the route's tier. `required` names the tier. |\n| `owner_required` | 403 | Grant and OAuth-client management needs a human workspace owner; no machine caller reaches it. |\n| `insufficient_app_grant` | 403 | The API key holds app grants, but none at the level this route needs. `required` names the tier. |\n| `decide_grant_required` | 403 | The decision-task protocol admits only a machine caller holding an explicit `decide` grant on the app. |\n\n## Async Extraction Flow\n\nDocuments ≤5 pages return results synchronously (`200`). Larger documents\n— or any request with `options: {\"async\": true}` — return `202 Accepted`.\n\n**1. Submit extraction:**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H \"Authorization: Bearer tlnc_live_abc123\" \\\n -F \"file=@contract.pdf\" \\\n -F 'options={\"async\": true}'\n```\n\nResponse `202`:\n```json\n{\n \"request_id\": \"req_x7y8z9a0\",\n \"status\": \"processing\",\n \"document\": { \"id\": \"f0e1d2c3-b4a5-9687-8765-432109876543\" },\n \"poll_url\": \"/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543\"\n}\n```\n\n**2. Poll until complete:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543 \\\n -H \"Authorization: Bearer tlnc_live_abc123\"\n```\n\nWhile processing: `{ \"status\": \"processing\" }`\nWhen done: `{ \"status\": \"completed\" }`\n\n**3. Retrieve results:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543/extractions \\\n -H \"Authorization: Bearer tlnc_live_abc123\"\n```\n\n**Python — complete async flow with exponential backoff:**\n\n```python\nimport time\nimport requests\n\nAPI_KEY = \"tlnc_live_...\"\nBASE = \"https://api.talonic.com/v1\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\n# Step 1: Submit async extraction\nresp = requests.post(f\"{BASE}/extract\",\n headers=HEADERS,\n files={\"file\": open(\"contract.pdf\", \"rb\")},\n data={\"options\": '{\"async\": true}'})\ndoc_id = resp.json()[\"document\"][\"id\"]\n\n# Step 2: Poll with exponential backoff (2s → 4s → 8s → 16s → 30s cap)\ndelay = 2\nfor _ in range(20):\n time.sleep(delay)\n doc = requests.get(f\"{BASE}/documents/{doc_id}\", headers=HEADERS).json()\n if doc[\"status\"] == \"completed\":\n break\n if doc[\"status\"] == \"error\":\n raise Exception(f\"Extraction failed: {doc.get('error')}\")\n delay = min(delay * 2, 30)\n\n# Step 3: Retrieve extracted data\nextractions = requests.get(\n f\"{BASE}/documents/{doc_id}/extractions\", headers=HEADERS).json()\ndata = extractions[\"data\"][0][\"data\"]\nconfidence = extractions[\"data\"][0][\"confidence\"][\"overall\"]\nprint(f\"Extracted {len(data)} fields (confidence: {confidence})\")\nprint(data)\n# → {\"vendor_name\": \"Acme Corp\", \"total_amount\": 1250.00, ...}\n```\n\n**TypeScript — same flow:**\n\n```typescript\nconst API_KEY = \"tlnc_live_...\";\nconst BASE = \"https://api.talonic.com/v1\";\nconst headers = { Authorization: `Bearer ${API_KEY}` };\n\n// Step 1: Submit async extraction\nconst form = new FormData();\nform.append(\"file\", fs.createReadStream(\"contract.pdf\"));\nform.append(\"options\", '{\"async\": true}');\nconst { document } = await fetch(`${BASE}/extract`, {\n method: \"POST\", headers, body: form,\n}).then((r) => r.json());\n\n// Step 2: Poll with exponential backoff\nlet delay = 2000;\nlet doc: any;\nfor (let i = 0; i < 20; i++) {\n await new Promise((r) => setTimeout(r, delay));\n doc = await fetch(`${BASE}/documents/${document.id}`, { headers }).then((r) => r.json());\n if (doc.status === \"completed\") break;\n if (doc.status === \"error\") throw new Error(`Extraction failed: ${doc.error}`);\n delay = Math.min(delay * 2, 30_000);\n}\n\n// Step 3: Retrieve extracted data\nconst { data: extractions } = await fetch(\n `${BASE}/documents/${document.id}/extractions`, { headers }\n).then((r) => r.json());\nconsole.log(extractions[0].data);\n// → { vendor_name: \"Acme Corp\", total_amount: 1250.00, ... }\n```\n\nRecommended polling: 2s initial, exponential backoff (2→4→8→16→30s cap),\ntimeout after 5 minutes.\n\n**Alternative — Webhooks:** Configure a delivery destination and listen for\n`document.extracted` events. See the Delivery tag.\n\n**Job status state machine:**\n`pending` → `queued` → `processing` → `complete` | `failed`\n\n## Performance\n\n| Document size | Expected latency | Max timeout |\n|---------------|------------------|-------------|\n| 1–5 pages | Sync, <3s | 30s |\n| 6–50 pages | <30s average | 5 min |\n| 50+ pages | <5 min average | 30 min |\n\n**Uptime SLA:** 99.5% (Build), 99.9% (Scale), custom (Enterprise).\n\n**Max file size:** 500 MB. JSON request bodies (schemas, jobs): 1 MB.\n\n**Idempotency:** Pass `Idempotency-Key` header on POST requests. Keys are\nscoped to your organization (all keys in a workspace share one namespace).\nDuplicates return the cached response with `cached: true`.\n",
|
|
6
|
+
"description": "Structure any document into schema-validated data.\n\nThe Talonic API lets you extract structured data from documents (PDFs, images,\nDOCX, CSV, plain text), manage reusable extraction schemas, track async jobs,\nand organise documents through sources.\n\n## Quick Start\n\n**1. Get your API key**\n\nSign up at [app.talonic.com](https://app.talonic.com) → Settings → API Keys → Create key.\nKeys start with `tlnc_`. All examples below use `tlnc_live_abc123` as a placeholder.\n\n**2. Extract your first document**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H \"Authorization: Bearer tlnc_live_abc123\" \\\n -F \"file=@invoice.pdf\" \\\n -F 'schema={\"properties\":{\"vendor_name\":{\"type\":\"string\"},\"total_amount\":{\"type\":\"number\"},\"invoice_date\":{\"type\":\"string\"}}}'\n```\n\n**Python:**\n```python\nimport requests\nresp = requests.post(\"https://api.talonic.com/v1/extract\",\n headers={\"Authorization\": \"Bearer tlnc_live_abc123\"},\n files={\"file\": open(\"invoice.pdf\", \"rb\")},\n data={\"schema\": '{\"properties\":{\"vendor_name\":{\"type\":\"string\"},\"total_amount\":{\"type\":\"number\"},\"invoice_date\":{\"type\":\"string\"}}}'})\nprint(resp.json()[\"data\"])\n```\n\n**TypeScript:**\n```typescript\nconst form = new FormData();\nform.append(\"file\", fs.createReadStream(\"invoice.pdf\"));\nform.append(\"schema\", '{\"properties\":{\"vendor_name\":{\"type\":\"string\"},\"total_amount\":{\"type\":\"number\"},\"invoice_date\":{\"type\":\"string\"}}}');\nconst res = await fetch(\"https://api.talonic.com/v1/extract\", {\n method: \"POST\",\n headers: { Authorization: \"Bearer tlnc_live_abc123\" },\n body: form,\n}).then(r => r.json());\nconsole.log(res.data);\n```\n\n**3. What you get back**\n\n```json\n{\n \"extraction_id\": \"d1a2b3c4-5678-9abc-def0-1234567890ab\",\n \"request_id\": \"req_x7y8z9a0b1c2d3e4\",\n \"status\": \"complete\",\n \"document\": {\n \"id\": \"f0e1d2c3-b4a5-9687-8765-432109876543\",\n \"filename\": \"invoice.pdf\",\n \"pages\": 2,\n \"size_bytes\": 184320,\n \"type_detected\": \"Invoice\",\n \"language_detected\": \"en\"\n },\n \"data\": {\n \"vendor_name\": \"Acme GmbH\",\n \"total_amount\": 14250.00,\n \"invoice_date\": \"2025-03-15\"\n },\n \"confidence\": {\n \"overall\": 0.96,\n \"fields\": {\n \"vendor_name\": 0.97,\n \"total_amount\": 0.94,\n \"invoice_date\": 0.99\n }\n },\n \"processing\": {\n \"duration_ms\": 1840,\n \"pages_processed\": 2,\n \"region\": \"eu-west\"\n },\n \"links\": {\n \"self\": \"/v1/extractions/d1a2b3c4-5678-9abc-def0-1234567890ab\",\n \"document\": \"/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543\"\n }\n}\n```\n\n- **`data`** — extracted fields as key-value pairs matching your schema.\n- **`confidence.fields`** — per-field score from 0 to 1. Above 0.9 is high confidence; below 0.7 flags for review.\n- **`extraction_id`** — use this to retrieve, correct, or deliver results later.\n- Full response schema: [ExtractSyncResponse](#/components/schemas/ExtractSyncResponse)\n\n**4. Next steps**\n\n- **50+ pages?** Use async mode — see [Async Extraction Flow](#section/Async-Extraction-Flow) below.\n- **Reusable schemas** — save field definitions with `POST /v1/schemas`, then pass `schema_id` on future extractions.\n- **Receive results via webhook** — configure a delivery destination and listen for `document.extracted` events. See the [Delivery](#tag/Delivery) tag.\n\n---\n\n## Authentication\n\nAll requests require a Bearer token in the `Authorization` header.\nAPI keys are prefixed with `tlnc_` and scoped per customer.\n\n```\nAuthorization: Bearer tlnc_live_abc123...\n```\n\n## Async Extraction Pattern\n\nSmall documents (≤5 pages) are processed synchronously and return a `200`\nwith the extracted data immediately. Larger documents return a `202 Accepted`\nwith a `poll_url` — poll `GET /v1/documents/{id}` until `status` transitions\nto `completed`, then fetch results via `GET /v1/documents/{id}/extractions`.\n\nYou can force async processing by passing `options: {\"async\": true}` on\nany extraction request. Combine with webhooks for a fully event-driven flow:\nconfigure a webhook destination under Delivery and listen for the\n`extraction.complete` event.\n\n**Job status lifecycle:** `pending` → `processing` → `complete` | `failed`\n\n## Rate Limits\n\nThe **Free** tier is metered by a recurring **5,000-credit monthly grant**\n(no card required) that refreshes on the 1st of each month (UTC). Free\nrequests run until the monthly credit balance is spent, then return `402`\nuntil the next grant. A generous daily request ceiling is retained purely as\nabuse protection and does not bind a legitimate free user within the monthly\nenvelope. Inspect your balance and reset date via `GET /v1/account`.\n\nPaid tiers are metered per calendar day (UTC):\n\n| Tier | Extract | Platform | Ingest | Operations | Run | Ask |\n|------------|---------|----------|--------|------------|-----|-----|\n| Free | 1,000/day | 2,000/day | 1,000/day | 1,000/day | 1,000/day | 200/day |\n| Pro | 25,000/day | 50,000/day | 25,000/day | 25,000/day | 25,000/day | 5,000/day |\n| Enterprise | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited |\n\nFree workspaces additionally receive 5,000 credits/month; spend is governed\nby credits (402 on exhaustion), with daily ceilings acting as abuse protection.\n\nResponses with a finite limit include rate-limit headers:\n- `X-RateLimit-Limit` — daily cap for the namespace\n- `X-RateLimit-Remaining` — requests left today\n- `X-RateLimit-Reset` — ISO 8601 timestamp when the window resets (midnight UTC)\n\n## Pagination\n\nList endpoints use cursor-based pagination. Pass `limit` (1–100, default 20),\n`cursor` (opaque token from `pagination.next_cursor`), and `order` (`asc` or `desc`, default `desc`).\n\n## Errors\n\nAll errors return a JSON body with `error` (machine-readable code) and `message`\n(human-readable explanation). Additional fields vary by error type.\n\n| Code | Error | Description |\n|------|--------------------|------------------------------------------|\n| 400 | validation_error | Request body is malformed or invalid |\n| 401 | unauthorized | Missing or invalid API key |\n| 403 | insufficient_scope | API key lacks the required scope |\n| 404 | not_found | Resource does not exist |\n| 409 | conflict | Resource state conflict |\n| 413 | payload_too_large | File exceeds 500 MB limit |\n| 422 | extraction_failed | Document could not be processed |\n| 429 | rate_limit_exceeded| Daily rate limit reached |\n| 500 | internal_error | Unexpected server error (retryable) |\n\nEvery error response follows this envelope:\n\n```json\n{\n \"statusCode\": 400,\n \"code\": \"VALIDATION_ERROR\",\n \"error\": \"Bad Request\",\n \"message\": \"name is required.\",\n \"retryable\": false,\n \"timestamp\": \"2026-04-25T14:30:00.000Z\",\n \"path\": \"/v1/schemas\"\n}\n```\n\nThe `code` field is one of: `VALIDATION_ERROR`, `AUTH_REQUIRED`, `TOKEN_EXPIRED`,\n`INSUFFICIENT_PERMISSIONS`, `RESOURCE_NOT_FOUND`, `QUOTA_EXCEEDED`,\n`INSUFFICIENT_CREDITS`, `LLM_RATE_LIMITED`, `LLM_TIMEOUT`, `LLM_UNAVAILABLE`,\n`OCR_FAILED`, `EXTRACTION_FAILED`, `EXTRACTION_TIMEOUT`, `FILE_TOO_LARGE`,\n`DUPLICATE_RESOURCE`, `DATASPACE_RUN_FAILED`, `INTERNAL_ERROR`.\n\n### Refusal reasons\n\nA refusal an integration must branch on also carries `reason`, a stable\ntoken beside `code`. Branch on `reason`, not on `code`, `error` or the\nmessage: `code` says only which HTTP family the refusal belongs to, `error`\nis the HTTP status name on some refusals and a body discriminant on others,\nand messages are prose. The key is present only on refusals; absent means\n\"no stable reason, read `message`\". Message prefixes (`insufficient_grant:\n…`) are kept for older clients that parse them; where a message carries one it equals `reason`, but not every refusal has a prefix (the Apps-ladder refusals are plain sentences), so branch on `reason`.\n\n| `reason` | Status | What the caller does |\n|---|---|---|\n| `insufficient_grant` | 403 | The app holds no approved grant covering this resource, or the route is not reachable by an app service key at all. Not retryable — stop and ask the workspace owner to grant it. |\n| `install_pending_approval` | 403 | A newer version of the app awaits owner approval and the install is paused. Poll `GET /v1/apps/{id}/install/status`. |\n| `install_not_ready` | 403 / 409 | The install is not in force (403, no installed binding for this service key) or is parked on an unapproved version / has no bound OAuth client (409). Poll `GET /v1/apps/{id}/install/status`. |\n| `endpoint_not_confirmed` | 400 | The binding would give the install its first subscriptions, or `confirm_subscriptions_endpoint` does not equal the manifest's `subscriptions_endpoint`. An owner action — re-send with the confirmation. |\n| `slot_unbound` | 400 / 409 | A required requirement slot has no binding (400 at install/rebind, 409 when a run resolves an already-installed version). The owner binds the named aliases. |\n| `slot_unknown` | 400 | The request named an alias the manifest declares no slot for. Fix the manifest or the request. |\n| `hosted_manifest_read_only` | 409 | The app's manifest is fetched from the vendor's URL, so local edits are refused. Edit at the vendor host, then `POST /v1/apps/{id}/refresh`. |\n| `hosted_surface_fixed` | 422 | A hosted app's surface URL comes from its manifest and moves only when a new version is approved; drop `surface_url` from the patch. |\n| `manifest_fetch_failed` | 422 | The vendor's manifest URL could not be read. `details.violations` carries the fetch reason. Fix it at the vendor host and retry. |\n| `schema_validation_failed` | 422 | A manifest does not validate, on publish or on a hosted fetch. `details.violations` carries `{ pointer, keyword, message }` per failure. |\n| `refresh_failed` | 422 | A hosted refresh did not happen; the failure is recorded on the app and it stays live on its approved version. `details` carries `{ changed, error }`. Fix it at the vendor host. |\n| `insufficient_scope` | 403 | The key or token lacks a required scope. `required_scopes` names the ones that admit. Workspace keys and OAuth clients receive this; an app service key never does, because both scope paths hand an app principal to its grant checks instead. |\n| `unauthenticated` | 403 | The Apps surface saw no authenticated principal. |\n| `workspace_required` | 403 | The Apps surface needs a concrete workspace; a master-view key cannot call it. |\n| `insufficient_tier` | 403 | The caller's workspace role (or an OAuth token's role claim) ranks below the route's tier. `required` names the tier. |\n| `owner_required` | 403 | Grant and OAuth-client management needs a human workspace owner; no machine caller reaches it. |\n| `insufficient_app_grant` | 403 | The API key holds app grants, but none at the level this route needs. `required` names the tier. |\n| `decide_grant_required` | 403 | The decision-task protocol admits only a machine caller holding an explicit `decide` grant on the app. |\n\n## Async Extraction Flow\n\nDocuments ≤5 pages return results synchronously (`200`). Larger documents\n— or any request with `options: {\"async\": true}` — return `202 Accepted`.\n\n**1. Submit extraction:**\n\n```bash\ncurl -X POST https://api.talonic.com/v1/extract \\\n -H \"Authorization: Bearer tlnc_live_abc123\" \\\n -F \"file=@contract.pdf\" \\\n -F 'options={\"async\": true}'\n```\n\nResponse `202`:\n```json\n{\n \"request_id\": \"req_x7y8z9a0\",\n \"status\": \"processing\",\n \"document\": { \"id\": \"f0e1d2c3-b4a5-9687-8765-432109876543\" },\n \"poll_url\": \"/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543\"\n}\n```\n\n**2. Poll until complete:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543 \\\n -H \"Authorization: Bearer tlnc_live_abc123\"\n```\n\nWhile processing: `{ \"status\": \"processing\" }`\nWhen done: `{ \"status\": \"completed\" }`\n\n**3. Retrieve results:**\n\n```bash\ncurl https://api.talonic.com/v1/documents/f0e1d2c3-b4a5-9687-8765-432109876543/extractions \\\n -H \"Authorization: Bearer tlnc_live_abc123\"\n```\n\n**Python — complete async flow with exponential backoff:**\n\n```python\nimport time\nimport requests\n\nAPI_KEY = \"tlnc_live_...\"\nBASE = \"https://api.talonic.com/v1\"\nHEADERS = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\n# Step 1: Submit async extraction\nresp = requests.post(f\"{BASE}/extract\",\n headers=HEADERS,\n files={\"file\": open(\"contract.pdf\", \"rb\")},\n data={\"options\": '{\"async\": true}'})\ndoc_id = resp.json()[\"document\"][\"id\"]\n\n# Step 2: Poll with exponential backoff (2s → 4s → 8s → 16s → 30s cap)\ndelay = 2\nfor _ in range(20):\n time.sleep(delay)\n doc = requests.get(f\"{BASE}/documents/{doc_id}\", headers=HEADERS).json()\n if doc[\"status\"] == \"completed\":\n break\n if doc[\"status\"] == \"error\":\n raise Exception(f\"Extraction failed: {doc.get('error')}\")\n delay = min(delay * 2, 30)\n\n# Step 3: Retrieve extracted data\nextractions = requests.get(\n f\"{BASE}/documents/{doc_id}/extractions\", headers=HEADERS).json()\ndata = extractions[\"data\"][0][\"data\"]\nconfidence = extractions[\"data\"][0][\"confidence\"][\"overall\"]\nprint(f\"Extracted {len(data)} fields (confidence: {confidence})\")\nprint(data)\n# → {\"vendor_name\": \"Acme Corp\", \"total_amount\": 1250.00, ...}\n```\n\n**TypeScript — same flow:**\n\n```typescript\nconst API_KEY = \"tlnc_live_...\";\nconst BASE = \"https://api.talonic.com/v1\";\nconst headers = { Authorization: `Bearer ${API_KEY}` };\n\n// Step 1: Submit async extraction\nconst form = new FormData();\nform.append(\"file\", fs.createReadStream(\"contract.pdf\"));\nform.append(\"options\", '{\"async\": true}');\nconst { document } = await fetch(`${BASE}/extract`, {\n method: \"POST\", headers, body: form,\n}).then((r) => r.json());\n\n// Step 2: Poll with exponential backoff\nlet delay = 2000;\nlet doc: any;\nfor (let i = 0; i < 20; i++) {\n await new Promise((r) => setTimeout(r, delay));\n doc = await fetch(`${BASE}/documents/${document.id}`, { headers }).then((r) => r.json());\n if (doc.status === \"completed\") break;\n if (doc.status === \"error\") throw new Error(`Extraction failed: ${doc.error}`);\n delay = Math.min(delay * 2, 30_000);\n}\n\n// Step 3: Retrieve extracted data\nconst { data: extractions } = await fetch(\n `${BASE}/documents/${document.id}/extractions`, { headers }\n).then((r) => r.json());\nconsole.log(extractions[0].data);\n// → { vendor_name: \"Acme Corp\", total_amount: 1250.00, ... }\n```\n\nRecommended polling: 2s initial, exponential backoff (2→4→8→16→30s cap),\ntimeout after 5 minutes.\n\n**Alternative — Webhooks:** Configure a delivery destination and listen for\n`document.extracted` events. See the Delivery tag.\n\n**Job status state machine:**\n`pending` → `queued` → `processing` → `complete` | `failed`\n\n## Performance\n\n| Document size | Expected latency | Max timeout |\n|---------------|------------------|-------------|\n| 1–5 pages | Sync, <3s | 30s |\n| 6–50 pages | <30s average | 5 min |\n| 50+ pages | <5 min average | 30 min |\n\n**Uptime SLA:** 99.5% (Build), 99.9% (Scale), custom (Enterprise).\n\n**Max file size:** 500 MB. JSON request bodies (schemas, jobs): 1 MB.\n\n**Idempotency:** Pass `Idempotency-Key` header on POST requests. Keys are\nscoped to your organization (all keys in a workspace share one namespace)\nand at most 64 characters (a longer key is refused with 400\n`invalid_idempotency_key` before any work). Duplicates return the cached\nresponse with `cached: true`.\n",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Talonic Support",
|
|
9
9
|
"email": "support@talonic.ai",
|
|
@@ -4535,7 +4535,8 @@
|
|
|
4535
4535
|
"enum": [
|
|
4536
4536
|
"in_flight",
|
|
4537
4537
|
"succeeded",
|
|
4538
|
-
"failed"
|
|
4538
|
+
"failed",
|
|
4539
|
+
"superseded"
|
|
4539
4540
|
]
|
|
4540
4541
|
}
|
|
4541
4542
|
},
|
|
@@ -4623,7 +4624,8 @@
|
|
|
4623
4624
|
"enum": [
|
|
4624
4625
|
"in_flight",
|
|
4625
4626
|
"succeeded",
|
|
4626
|
-
"failed"
|
|
4627
|
+
"failed",
|
|
4628
|
+
"superseded"
|
|
4627
4629
|
]
|
|
4628
4630
|
}
|
|
4629
4631
|
}
|
|
@@ -21136,7 +21138,7 @@
|
|
|
21136
21138
|
}
|
|
21137
21139
|
},
|
|
21138
21140
|
"409": {
|
|
21139
|
-
"description": "A governance hold blocks delivery for the run's documents.",
|
|
21141
|
+
"description": "A governance hold blocks delivery for the run's documents (`RUN_RULE_HOLD`), or the dispatch is a `skipped` row written by the submitting request's delivery controls (`DISPATCH_SKIPPED_BY_REQUEST`) — trigger the node manually instead.",
|
|
21140
21142
|
"content": {
|
|
21141
21143
|
"application/json": {
|
|
21142
21144
|
"schema": {
|
|
@@ -21229,6 +21231,16 @@
|
|
|
21229
21231
|
],
|
|
21230
21232
|
"default": "ingest",
|
|
21231
21233
|
"description": "How far the platform processes the run's documents beyond the Spec pipeline. `ingest` (default): after OCR, Stage-2 field capture runs asynchronously so the corpus becomes queryable by the agent surfaces (POST /v1/ask) and the pipeline's Transfer phase — the pipeline still starts the moment OCR markdown is ready, capture never delays it. `extract`: markdown-only; the documents are not askable.\n"
|
|
21234
|
+
},
|
|
21235
|
+
"dispatch": {
|
|
21236
|
+
"type": "boolean",
|
|
21237
|
+
"default": true,
|
|
21238
|
+
"description": "`false` = none of the Spec's Dispatch nodes fires for this request's payloads (multipart carries it as the string \"true\"/\"false\"). The shorthand for `bindings` with every node set to null. A skipped node is recorded as a `skipped` dispatch on the pipeline (GET /v1/pipelines/{id}/dispatches) and cannot be re-dispatched; a manual trigger of the node still works. Legacy `document.structured` / `run.completed` deliveries are not affected. Named `dispatch`, not `deliver`: the Spec already has a `deliver` (Data Product) stage.\n"
|
|
21239
|
+
},
|
|
21240
|
+
"bindings": {
|
|
21241
|
+
"type": "string",
|
|
21242
|
+
"maxLength": 8192,
|
|
21243
|
+
"description": "Optional JSON string of `{ [dispatchNodeId]: destinationId | null }`. Per Dispatch node of the Spec's published version: deliver this request's payloads to that destination instead of each binding's own (every binding of the node is re-pointed as a unit, keeping its field map, serializer and retry policy), or `null` to skip that node. Keys are the node ids shown in the Spec editor and in `dispatch.*` binding filters (stable per Spec version; a node re-added after deletion mints a new id). A key is accepted when the node is on the Spec's published version OR on the newest pipeline's frozen rail: the early trigger modes read the published version, `on_run_completed` reads the rail frozen when the pipeline was created (an append request reuses it), and a node on only one side is accepted with a `warnings[]` entry. 400 `invalid_delivery_controls` when a key names no Dispatch node, a value is not an active destination of this workspace, a value's connector cannot carry one of the node's bindings, or `dispatch=false` is combined with a non-null value. A node with no active binding is accepted with a `warnings[]` entry. Controls attach to a document's FIRST request on a pipeline (a re-submitted document keeps its original request's controls for later re-emissions). Under `append`, a pipeline-level payload (assembly / data product) ships the non-skipping requests' records and applies an override only when every contributing request names the same destination.\n"
|
|
21232
21244
|
}
|
|
21233
21245
|
}
|
|
21234
21246
|
}
|
|
@@ -21322,6 +21334,30 @@
|
|
|
21322
21334
|
"deduplicated": false
|
|
21323
21335
|
}
|
|
21324
21336
|
}
|
|
21337
|
+
},
|
|
21338
|
+
"warnings": {
|
|
21339
|
+
"type": "array",
|
|
21340
|
+
"description": "Present only when the accepted request carries a non-fatal note: `no_binding_for_node` (a `bindings` override names a Dispatch node that has no active binding, so nothing will be delivered for it); `node_not_in_live_pipeline` (the node is on the published version but not on the newest pipeline's frozen rail — if this request appends onto that pipeline, its on_run_completed trigger cannot see the node; the early trigger modes can); `node_not_on_published_version` (the node exists only on that pipeline's frozen rail — it governs on_run_completed there and nothing else).\n",
|
|
21341
|
+
"items": {
|
|
21342
|
+
"type": "object",
|
|
21343
|
+
"required": [
|
|
21344
|
+
"code",
|
|
21345
|
+
"message"
|
|
21346
|
+
],
|
|
21347
|
+
"properties": {
|
|
21348
|
+
"code": {
|
|
21349
|
+
"type": "string",
|
|
21350
|
+
"enum": [
|
|
21351
|
+
"no_binding_for_node",
|
|
21352
|
+
"node_not_in_live_pipeline",
|
|
21353
|
+
"node_not_on_published_version"
|
|
21354
|
+
]
|
|
21355
|
+
},
|
|
21356
|
+
"message": {
|
|
21357
|
+
"type": "string"
|
|
21358
|
+
}
|
|
21359
|
+
}
|
|
21360
|
+
}
|
|
21325
21361
|
}
|
|
21326
21362
|
}
|
|
21327
21363
|
}
|
|
@@ -21329,7 +21365,7 @@
|
|
|
21329
21365
|
}
|
|
21330
21366
|
},
|
|
21331
21367
|
"400": {
|
|
21332
|
-
"description": "Missing spec_id, no input provided (both files and file_urls empty),
|
|
21368
|
+
"description": "Missing spec_id, no input provided (both files and file_urls empty), metadata is not a valid flat JSON object (`invalid_metadata`), or `dispatch` / `bindings` are malformed or name an unknown Dispatch node, an inactive or foreign destination, or a destination the node's bindings cannot deliver to (`invalid_delivery_controls`)."
|
|
21333
21369
|
},
|
|
21334
21370
|
"402": {
|
|
21335
21371
|
"description": "Insufficient credits for an ingest leg."
|
|
@@ -21426,6 +21462,26 @@
|
|
|
21426
21462
|
"nullable": true,
|
|
21427
21463
|
"description": "The caller grouping key supplied on POST /v1/run, echoed back here."
|
|
21428
21464
|
},
|
|
21465
|
+
"dispatch": {
|
|
21466
|
+
"type": "boolean",
|
|
21467
|
+
"enum": [
|
|
21468
|
+
false
|
|
21469
|
+
],
|
|
21470
|
+
"description": "Present only when the request sent `dispatch=false`."
|
|
21471
|
+
},
|
|
21472
|
+
"bindings": {
|
|
21473
|
+
"type": "object",
|
|
21474
|
+
"additionalProperties": {
|
|
21475
|
+
"type": "string",
|
|
21476
|
+
"format": "uuid",
|
|
21477
|
+
"nullable": true
|
|
21478
|
+
},
|
|
21479
|
+
"description": "The per-node overrides supplied on POST /v1/run (`null` = that node skipped), echoed back here; present only when sent."
|
|
21480
|
+
},
|
|
21481
|
+
"dispatch_skipped": {
|
|
21482
|
+
"type": "boolean",
|
|
21483
|
+
"description": "Present only when the request carried delivery controls: true when they suppress at least one Dispatch node (`dispatch=false` or any null `bindings` value). Derived from the stored controls; what actually happened per node is on GET /v1/pipelines/{id}/dispatches (status `skipped`).\n"
|
|
21484
|
+
},
|
|
21429
21485
|
"created_at": {
|
|
21430
21486
|
"type": "string",
|
|
21431
21487
|
"format": "date-time"
|
|
@@ -27288,6 +27344,168 @@
|
|
|
27288
27344
|
}
|
|
27289
27345
|
}
|
|
27290
27346
|
},
|
|
27347
|
+
"/v1/apps/{id}/subjects": {
|
|
27348
|
+
"get": {
|
|
27349
|
+
"operationId": "listAppStandingSubjects",
|
|
27350
|
+
"summary": "Standing decision per record group (highest revision across sealed runs)",
|
|
27351
|
+
"description": "One row per subject key: the highest-`decision_revision` verdict among SEALED, non-dry runs — the decision a dedupe-by-max-revision receiver converges on. Each row names the deciding run, its App version and that version's content hash; the `versions` map carries a semantic fingerprint per rule so clients can render historical outcomes only under semantically identical current rules. Cursor-paginated by subject key.",
|
|
27352
|
+
"tags": [
|
|
27353
|
+
"Apps"
|
|
27354
|
+
],
|
|
27355
|
+
"parameters": [
|
|
27356
|
+
{
|
|
27357
|
+
"name": "id",
|
|
27358
|
+
"in": "path",
|
|
27359
|
+
"required": true,
|
|
27360
|
+
"schema": {
|
|
27361
|
+
"type": "string",
|
|
27362
|
+
"format": "uuid"
|
|
27363
|
+
}
|
|
27364
|
+
},
|
|
27365
|
+
{
|
|
27366
|
+
"name": "limit",
|
|
27367
|
+
"in": "query",
|
|
27368
|
+
"schema": {
|
|
27369
|
+
"type": "integer",
|
|
27370
|
+
"minimum": 1,
|
|
27371
|
+
"maximum": 500,
|
|
27372
|
+
"default": 100
|
|
27373
|
+
}
|
|
27374
|
+
},
|
|
27375
|
+
{
|
|
27376
|
+
"name": "cursor",
|
|
27377
|
+
"in": "query",
|
|
27378
|
+
"schema": {
|
|
27379
|
+
"type": "string"
|
|
27380
|
+
},
|
|
27381
|
+
"description": "Opaque cursor: the last subject_key of the previous page."
|
|
27382
|
+
},
|
|
27383
|
+
{
|
|
27384
|
+
"name": "include",
|
|
27385
|
+
"in": "query",
|
|
27386
|
+
"schema": {
|
|
27387
|
+
"type": "string",
|
|
27388
|
+
"enum": [
|
|
27389
|
+
"summary"
|
|
27390
|
+
]
|
|
27391
|
+
},
|
|
27392
|
+
"description": "'summary' omits rule_outcomes and document_outcomes from each row."
|
|
27393
|
+
}
|
|
27394
|
+
],
|
|
27395
|
+
"responses": {
|
|
27396
|
+
"200": {
|
|
27397
|
+
"description": "Standing decisions page.",
|
|
27398
|
+
"content": {
|
|
27399
|
+
"application/json": {
|
|
27400
|
+
"schema": {
|
|
27401
|
+
"type": "object",
|
|
27402
|
+
"properties": {
|
|
27403
|
+
"subjects": {
|
|
27404
|
+
"type": "array",
|
|
27405
|
+
"items": {
|
|
27406
|
+
"type": "object",
|
|
27407
|
+
"properties": {
|
|
27408
|
+
"subject_key": {
|
|
27409
|
+
"type": "string"
|
|
27410
|
+
},
|
|
27411
|
+
"rolled_outcome": {
|
|
27412
|
+
"type": "string",
|
|
27413
|
+
"enum": [
|
|
27414
|
+
"passed",
|
|
27415
|
+
"failed",
|
|
27416
|
+
"indeterminate",
|
|
27417
|
+
"not_applicable"
|
|
27418
|
+
]
|
|
27419
|
+
},
|
|
27420
|
+
"auto": {
|
|
27421
|
+
"type": "boolean"
|
|
27422
|
+
},
|
|
27423
|
+
"substantive_passes": {
|
|
27424
|
+
"type": "integer"
|
|
27425
|
+
},
|
|
27426
|
+
"rule_outcomes": {
|
|
27427
|
+
"type": "object",
|
|
27428
|
+
"nullable": true
|
|
27429
|
+
},
|
|
27430
|
+
"document_outcomes": {
|
|
27431
|
+
"type": "array",
|
|
27432
|
+
"nullable": true,
|
|
27433
|
+
"items": {
|
|
27434
|
+
"type": "object"
|
|
27435
|
+
}
|
|
27436
|
+
},
|
|
27437
|
+
"decision_state": {
|
|
27438
|
+
"type": "string",
|
|
27439
|
+
"enum": [
|
|
27440
|
+
"eligible",
|
|
27441
|
+
"ineligible",
|
|
27442
|
+
"unclear"
|
|
27443
|
+
]
|
|
27444
|
+
},
|
|
27445
|
+
"decision_revision": {
|
|
27446
|
+
"type": "integer",
|
|
27447
|
+
"nullable": true
|
|
27448
|
+
},
|
|
27449
|
+
"run_id": {
|
|
27450
|
+
"type": "string",
|
|
27451
|
+
"format": "uuid"
|
|
27452
|
+
},
|
|
27453
|
+
"decided_at": {
|
|
27454
|
+
"type": "string",
|
|
27455
|
+
"format": "date-time"
|
|
27456
|
+
},
|
|
27457
|
+
"app_version": {
|
|
27458
|
+
"type": "integer"
|
|
27459
|
+
},
|
|
27460
|
+
"app_version_hash": {
|
|
27461
|
+
"type": "string",
|
|
27462
|
+
"nullable": true
|
|
27463
|
+
}
|
|
27464
|
+
}
|
|
27465
|
+
}
|
|
27466
|
+
},
|
|
27467
|
+
"next": {
|
|
27468
|
+
"type": "string",
|
|
27469
|
+
"nullable": true
|
|
27470
|
+
},
|
|
27471
|
+
"active_version": {
|
|
27472
|
+
"type": "integer",
|
|
27473
|
+
"nullable": true
|
|
27474
|
+
},
|
|
27475
|
+
"versions": {
|
|
27476
|
+
"type": "object",
|
|
27477
|
+
"additionalProperties": {
|
|
27478
|
+
"type": "object",
|
|
27479
|
+
"properties": {
|
|
27480
|
+
"content_hash": {
|
|
27481
|
+
"type": "string"
|
|
27482
|
+
},
|
|
27483
|
+
"fingerprints": {
|
|
27484
|
+
"type": "object",
|
|
27485
|
+
"additionalProperties": {
|
|
27486
|
+
"type": "string"
|
|
27487
|
+
}
|
|
27488
|
+
}
|
|
27489
|
+
}
|
|
27490
|
+
}
|
|
27491
|
+
}
|
|
27492
|
+
}
|
|
27493
|
+
}
|
|
27494
|
+
}
|
|
27495
|
+
}
|
|
27496
|
+
},
|
|
27497
|
+
"403": {
|
|
27498
|
+
"description": "Master view ('all') or missing workspace — a concrete tenant is required."
|
|
27499
|
+
},
|
|
27500
|
+
"404": {
|
|
27501
|
+
"$ref": "#/components/responses/NotFound"
|
|
27502
|
+
},
|
|
27503
|
+
"501": {
|
|
27504
|
+
"description": "Batch verdicts are not available in this deployment."
|
|
27505
|
+
}
|
|
27506
|
+
}
|
|
27507
|
+
}
|
|
27508
|
+
},
|
|
27291
27509
|
"/v1/apps/{id}/replays": {
|
|
27292
27510
|
"post": {
|
|
27293
27511
|
"operationId": "startAppReplay",
|
|
@@ -28309,6 +28527,135 @@
|
|
|
28309
28527
|
}
|
|
28310
28528
|
}
|
|
28311
28529
|
},
|
|
28530
|
+
"/v1/runs/{runId}/reconstruction": {
|
|
28531
|
+
"get": {
|
|
28532
|
+
"operationId": "reconstructRunDocumentMatrix",
|
|
28533
|
+
"summary": "Replay one subject's document×rule matrix from the frozen package (read-only)",
|
|
28534
|
+
"description": "A CURRENT-ENGINE replay of the run's frozen input package under its pinned App version, for runs sealed before per-document outcomes were persisted. No side effects: no LLM adjudication, no verdict rows, no revisions, no delivery. Integrity is judged per rule against the sealed rule_outcomes; cells of a diverged rule are withheld as historical_result_not_reproducible. The sealed outcomes remain authoritative.",
|
|
28535
|
+
"tags": [
|
|
28536
|
+
"Apps"
|
|
28537
|
+
],
|
|
28538
|
+
"parameters": [
|
|
28539
|
+
{
|
|
28540
|
+
"name": "runId",
|
|
28541
|
+
"in": "path",
|
|
28542
|
+
"required": true,
|
|
28543
|
+
"schema": {
|
|
28544
|
+
"type": "string",
|
|
28545
|
+
"format": "uuid"
|
|
28546
|
+
}
|
|
28547
|
+
},
|
|
28548
|
+
{
|
|
28549
|
+
"name": "subject",
|
|
28550
|
+
"in": "query",
|
|
28551
|
+
"required": true,
|
|
28552
|
+
"schema": {
|
|
28553
|
+
"type": "string"
|
|
28554
|
+
}
|
|
28555
|
+
}
|
|
28556
|
+
],
|
|
28557
|
+
"responses": {
|
|
28558
|
+
"200": {
|
|
28559
|
+
"description": "Reconstructed matrix for the subject.",
|
|
28560
|
+
"content": {
|
|
28561
|
+
"application/json": {
|
|
28562
|
+
"schema": {
|
|
28563
|
+
"type": "object",
|
|
28564
|
+
"properties": {
|
|
28565
|
+
"reconstructed": {
|
|
28566
|
+
"type": "boolean",
|
|
28567
|
+
"enum": [
|
|
28568
|
+
true
|
|
28569
|
+
]
|
|
28570
|
+
},
|
|
28571
|
+
"engine_note": {
|
|
28572
|
+
"type": "string"
|
|
28573
|
+
},
|
|
28574
|
+
"run_id": {
|
|
28575
|
+
"type": "string",
|
|
28576
|
+
"format": "uuid"
|
|
28577
|
+
},
|
|
28578
|
+
"subject_key": {
|
|
28579
|
+
"type": "string"
|
|
28580
|
+
},
|
|
28581
|
+
"sealed": {
|
|
28582
|
+
"type": "object",
|
|
28583
|
+
"properties": {
|
|
28584
|
+
"rolled_outcome": {
|
|
28585
|
+
"type": "string"
|
|
28586
|
+
},
|
|
28587
|
+
"auto": {
|
|
28588
|
+
"type": "boolean"
|
|
28589
|
+
}
|
|
28590
|
+
}
|
|
28591
|
+
},
|
|
28592
|
+
"replay": {
|
|
28593
|
+
"type": "object",
|
|
28594
|
+
"properties": {
|
|
28595
|
+
"rolled_outcome": {
|
|
28596
|
+
"type": "string"
|
|
28597
|
+
},
|
|
28598
|
+
"auto": {
|
|
28599
|
+
"type": "boolean"
|
|
28600
|
+
}
|
|
28601
|
+
}
|
|
28602
|
+
},
|
|
28603
|
+
"diverged_rules": {
|
|
28604
|
+
"type": "array",
|
|
28605
|
+
"items": {
|
|
28606
|
+
"type": "object",
|
|
28607
|
+
"properties": {
|
|
28608
|
+
"cardId": {
|
|
28609
|
+
"type": "string"
|
|
28610
|
+
},
|
|
28611
|
+
"sealed": {
|
|
28612
|
+
"type": "string",
|
|
28613
|
+
"nullable": true
|
|
28614
|
+
},
|
|
28615
|
+
"replay": {
|
|
28616
|
+
"type": "string",
|
|
28617
|
+
"nullable": true
|
|
28618
|
+
},
|
|
28619
|
+
"label": {
|
|
28620
|
+
"type": "string",
|
|
28621
|
+
"enum": [
|
|
28622
|
+
"historical_result_not_reproducible"
|
|
28623
|
+
]
|
|
28624
|
+
}
|
|
28625
|
+
}
|
|
28626
|
+
}
|
|
28627
|
+
},
|
|
28628
|
+
"document_outcomes": {
|
|
28629
|
+
"type": "array",
|
|
28630
|
+
"items": {
|
|
28631
|
+
"type": "object"
|
|
28632
|
+
}
|
|
28633
|
+
}
|
|
28634
|
+
}
|
|
28635
|
+
}
|
|
28636
|
+
}
|
|
28637
|
+
}
|
|
28638
|
+
},
|
|
28639
|
+
"403": {
|
|
28640
|
+
"description": "Master view ('all') or missing workspace — a concrete tenant is required."
|
|
28641
|
+
},
|
|
28642
|
+
"404": {
|
|
28643
|
+
"$ref": "#/components/responses/NotFound"
|
|
28644
|
+
},
|
|
28645
|
+
"422": {
|
|
28646
|
+
"description": "subject must be a single string query parameter."
|
|
28647
|
+
},
|
|
28648
|
+
"501": {
|
|
28649
|
+
"description": "Batch verdicts are not available in this deployment."
|
|
28650
|
+
},
|
|
28651
|
+
"503": {
|
|
28652
|
+
"description": "Reconstruction unavailable (package too large",
|
|
28653
|
+
"replay timed out": null,
|
|
28654
|
+
"or the process is at its concurrent-replay cap).": null
|
|
28655
|
+
}
|
|
28656
|
+
}
|
|
28657
|
+
}
|
|
28658
|
+
},
|
|
28312
28659
|
"/v1/runs/{runId}/record": {
|
|
28313
28660
|
"get": {
|
|
28314
28661
|
"operationId": "getAppRunRecord",
|
|
@@ -28952,7 +29299,7 @@
|
|
|
28952
29299
|
"type": "http",
|
|
28953
29300
|
"scheme": "bearer",
|
|
28954
29301
|
"bearerFormat": "JWT",
|
|
28955
|
-
"description": "OAuth 2.1 access token (JWT) from the connector OAuth flow. Routes\nthat declare this scheme reject `tlnc_` API keys with `401`.\n\nScopes a client may request (the live list is served by\n`GET /.well-known/oauth-authorization-server` as `scopes_supported`):\n\n| Scope | Grants |\n|---|---|\n| `extract:write` | Create extractions; every legacy `write` route |\n| `documents:read` | Read documents and extraction results |\n| `schemas:read` | Read schemas and field definitions |\n| `sources:read` | List connected sources |\n| `webhooks:manage` | Create and manage webhooks |\n| `apps:read` | Read apps, runs and results |\n| `apps:operate` | Run and operate apps |\n| `records:write` | Write record-set data |\n| `identity:read` | Identity only (`/oauth/userinfo`); no `/v1` privilege |\n\nA client that omits `scope` receives the five legacy public-API scopes\nonly. `apps:read`, `apps:operate`, `records:write` and `identity:read`\nare never granted implicitly and must be requested by name. The Apps\nscopes are checked directly by the routes that need them: holding\n`extract:write` does not satisfy an Apps write or a record-set write,\nand `apps:read` alone cannot start a run.\n"
|
|
29302
|
+
"description": "OAuth 2.1 access token (JWT) from the connector OAuth flow. Routes\nthat declare this scheme reject `tlnc_` API keys with `401`.\n\nScopes a client may request (the live list is served by\n`GET /.well-known/oauth-authorization-server` as `scopes_supported`):\n\n| Scope | Grants |\n|---|---|\n| `extract:write` | Create extractions; every legacy `write` route |\n| `documents:read` | Read documents and extraction results |\n| `schemas:read` | Read schemas and field definitions |\n| `sources:read` | List connected sources |\n| `webhooks:manage` | Create and manage webhooks |\n| `apps:read` | Read apps, runs and results |\n| `apps:operate` | Run and operate apps |\n| `apps:decide` | Claim and decide tasks on the workspace's apps as the person (the `decide` tier; needs an active senior_member-or-higher membership, checked on every request; never pre-consentable) |\n| `records:write` | Write record-set data |\n| `identity:read` | Identity only (`/oauth/userinfo`); no `/v1` privilege |\n\nA client that omits `scope` receives the five legacy public-API scopes\nonly. `apps:read`, `apps:operate`, `apps:decide`, `records:write` and `identity:read`\nare never granted implicitly and must be requested by name. The Apps\nscopes are checked directly by the routes that need them: holding\n`extract:write` does not satisfy an Apps write or a record-set write,\nand `apps:read` alone cannot start a run.\n"
|
|
28956
29303
|
}
|
|
28957
29304
|
},
|
|
28958
29305
|
"parameters": {
|
|
@@ -29023,9 +29370,10 @@
|
|
|
29023
29370
|
"name": "Idempotency-Key",
|
|
29024
29371
|
"in": "header",
|
|
29025
29372
|
"schema": {
|
|
29026
|
-
"type": "string"
|
|
29373
|
+
"type": "string",
|
|
29374
|
+
"maxLength": 64
|
|
29027
29375
|
},
|
|
29028
|
-
"description": "Unique key for idempotent requests. If a
|
|
29376
|
+
"description": "Unique key for idempotent requests, at most 64 characters (a longer key\nis refused with 400 `invalid_idempotency_key` before any work). If a\nrequest with the same key was already processed, the cached result is\nreturned.\n"
|
|
29029
29377
|
}
|
|
29030
29378
|
},
|
|
29031
29379
|
"headers": {
|
|
@@ -30774,7 +31122,7 @@
|
|
|
30774
31122
|
"string",
|
|
30775
31123
|
"null"
|
|
30776
31124
|
],
|
|
30777
|
-
"description": "
|
|
31125
|
+
"description": "The claimant: an API key id, or `oauth:<client_id>:<user_id>` for an OAuth session."
|
|
30778
31126
|
},
|
|
30779
31127
|
"claimed_at": {
|
|
30780
31128
|
"type": [
|
|
@@ -30827,10 +31175,18 @@
|
|
|
30827
31175
|
"first_cursor"
|
|
30828
31176
|
],
|
|
30829
31177
|
"properties": {
|
|
31178
|
+
"package_kind": {
|
|
31179
|
+
"type": "string",
|
|
31180
|
+
"enum": [
|
|
31181
|
+
"records",
|
|
31182
|
+
"mining_round"
|
|
31183
|
+
],
|
|
31184
|
+
"description": "`records` for a frozen input package; `mining_round` when the task stands for a mining round driven from outside, whose package is one record carrying the prompts the hosted model would have seen (record_count 1)."
|
|
31185
|
+
},
|
|
30830
31186
|
"record_count": {
|
|
30831
31187
|
"type": "integer",
|
|
30832
31188
|
"minimum": 0,
|
|
30833
|
-
"description": "Total records across every binding of the frozen package."
|
|
31189
|
+
"description": "Total records across every binding of the frozen package; 1 for a mining round."
|
|
30834
31190
|
},
|
|
30835
31191
|
"page_size": {
|
|
30836
31192
|
"type": "integer",
|
|
@@ -34692,8 +35048,11 @@
|
|
|
34692
35048
|
"pending",
|
|
34693
35049
|
"published",
|
|
34694
35050
|
"empty",
|
|
34695
|
-
"failed"
|
|
34696
|
-
|
|
35051
|
+
"failed",
|
|
35052
|
+
"superseded",
|
|
35053
|
+
"skipped"
|
|
35054
|
+
],
|
|
35055
|
+
"description": "`skipped` = the submitting POST /v1/run request's `dispatch` / `bindings` controls suppressed this node (no events; terminal, not re-dispatchable)."
|
|
34697
35056
|
},
|
|
34698
35057
|
"record_count": {
|
|
34699
35058
|
"type": "integer",
|
|
@@ -34799,8 +35158,11 @@
|
|
|
34799
35158
|
"pending",
|
|
34800
35159
|
"published",
|
|
34801
35160
|
"empty",
|
|
34802
|
-
"failed"
|
|
34803
|
-
|
|
35161
|
+
"failed",
|
|
35162
|
+
"superseded",
|
|
35163
|
+
"skipped"
|
|
35164
|
+
],
|
|
35165
|
+
"description": "`skipped` = the submitting POST /v1/run request's `dispatch` / `bindings` controls suppressed this node (no events; terminal, not re-dispatchable)."
|
|
34804
35166
|
},
|
|
34805
35167
|
"error": {
|
|
34806
35168
|
"type": [
|
|
@@ -35234,7 +35596,8 @@
|
|
|
35234
35596
|
"enum": [
|
|
35235
35597
|
"in_flight",
|
|
35236
35598
|
"succeeded",
|
|
35237
|
-
"failed"
|
|
35599
|
+
"failed",
|
|
35600
|
+
"superseded"
|
|
35238
35601
|
]
|
|
35239
35602
|
},
|
|
35240
35603
|
"attempt": {
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tailwind CSS preset for @talonic/docs consumers.
|
|
3
|
-
* Adds the Void design system color tokens and font families
|
|
4
|
-
* so doc components render correctly in any host app.
|
|
5
|
-
*/
|
|
6
|
-
declare const voidDocsPreset: {
|
|
7
|
-
darkMode: "class";
|
|
8
|
-
theme: {
|
|
9
|
-
extend: {
|
|
10
|
-
colors: {
|
|
11
|
-
'void-bg': string;
|
|
12
|
-
'void-bg-elevated': string;
|
|
13
|
-
'void-surface': string;
|
|
14
|
-
'void-surface-2': string;
|
|
15
|
-
'void-surface-3': string;
|
|
16
|
-
'void-border': string;
|
|
17
|
-
'void-border-hover': string;
|
|
18
|
-
'void-text-primary': string;
|
|
19
|
-
'void-text-secondary': string;
|
|
20
|
-
'void-text-muted': string;
|
|
21
|
-
'void-text-tertiary': string;
|
|
22
|
-
'void-accent': string;
|
|
23
|
-
'void-accent-hover': string;
|
|
24
|
-
'void-accent-dim': string;
|
|
25
|
-
'void-accent-tint': string;
|
|
26
|
-
'void-danger': string;
|
|
27
|
-
'void-danger-solid': string;
|
|
28
|
-
'void-divider': string;
|
|
29
|
-
'void-warning': string;
|
|
30
|
-
'void-warning-dim': string;
|
|
31
|
-
'void-tier-1': string;
|
|
32
|
-
'void-tier-2': string;
|
|
33
|
-
'void-tier-3': string;
|
|
34
|
-
};
|
|
35
|
-
fontFamily: {
|
|
36
|
-
space: string[];
|
|
37
|
-
body: string[];
|
|
38
|
-
mono: string[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
plugins: never[];
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { voidDocsPreset as default };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tailwind CSS preset for @talonic/docs consumers.
|
|
3
|
-
* Adds the Void design system color tokens and font families
|
|
4
|
-
* so doc components render correctly in any host app.
|
|
5
|
-
*/
|
|
6
|
-
declare const voidDocsPreset: {
|
|
7
|
-
darkMode: "class";
|
|
8
|
-
theme: {
|
|
9
|
-
extend: {
|
|
10
|
-
colors: {
|
|
11
|
-
'void-bg': string;
|
|
12
|
-
'void-bg-elevated': string;
|
|
13
|
-
'void-surface': string;
|
|
14
|
-
'void-surface-2': string;
|
|
15
|
-
'void-surface-3': string;
|
|
16
|
-
'void-border': string;
|
|
17
|
-
'void-border-hover': string;
|
|
18
|
-
'void-text-primary': string;
|
|
19
|
-
'void-text-secondary': string;
|
|
20
|
-
'void-text-muted': string;
|
|
21
|
-
'void-text-tertiary': string;
|
|
22
|
-
'void-accent': string;
|
|
23
|
-
'void-accent-hover': string;
|
|
24
|
-
'void-accent-dim': string;
|
|
25
|
-
'void-accent-tint': string;
|
|
26
|
-
'void-danger': string;
|
|
27
|
-
'void-danger-solid': string;
|
|
28
|
-
'void-divider': string;
|
|
29
|
-
'void-warning': string;
|
|
30
|
-
'void-warning-dim': string;
|
|
31
|
-
'void-tier-1': string;
|
|
32
|
-
'void-tier-2': string;
|
|
33
|
-
'void-tier-3': string;
|
|
34
|
-
};
|
|
35
|
-
fontFamily: {
|
|
36
|
-
space: string[];
|
|
37
|
-
body: string[];
|
|
38
|
-
mono: string[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
plugins: never[];
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { voidDocsPreset as default };
|