@talonic/docs 0.21.7 → 0.21.10
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/content.js +1522 -82
- package/dist/index.d.ts +1 -1
- package/dist/index.js +225 -9
- package/dist/index.js.map +1 -1
- package/dist/seo.d.ts +1 -1
- package/dist/seo.js +531 -6
- package/openapi.json +509 -4
- package/package.json +1 -1
- package/dist/tailwind-preset.d.cts +0 -45
- package/dist/tailwind-preset.d.ts +0 -45
package/dist/content.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/content/helpers.ts
|
|
2
|
-
function deriveBreadcrumbs(
|
|
2
|
+
function deriveBreadcrumbs(sections70, leafId, domain) {
|
|
3
3
|
const domainLabels = {
|
|
4
4
|
api: "API Reference",
|
|
5
5
|
platform: "Platform Guide",
|
|
@@ -10,20 +10,20 @@ function deriveBreadcrumbs(sections68, leafId, domain) {
|
|
|
10
10
|
label: domainLabels[domain] ?? domain,
|
|
11
11
|
slug: domain
|
|
12
12
|
};
|
|
13
|
-
for (const group of
|
|
13
|
+
for (const group of sections70) {
|
|
14
14
|
const child = group.children?.find((c) => c.id === leafId);
|
|
15
15
|
if (child) {
|
|
16
16
|
return [root, { label: group.label, slug: group.id }, { label: child.label, slug: child.id }];
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
const topLevel =
|
|
19
|
+
const topLevel = sections70.find((s) => s.id === leafId);
|
|
20
20
|
if (topLevel) {
|
|
21
21
|
return [root, { label: topLevel.label, slug: topLevel.id }];
|
|
22
22
|
}
|
|
23
23
|
return [root];
|
|
24
24
|
}
|
|
25
|
-
function derivePrevNext(
|
|
26
|
-
const flat =
|
|
25
|
+
function derivePrevNext(sections70, leafId) {
|
|
26
|
+
const flat = sections70.flatMap(
|
|
27
27
|
(s) => s.children ?? [{ id: s.id, label: s.label }]
|
|
28
28
|
);
|
|
29
29
|
const idx = flat.findIndex((c) => c.id === leafId);
|
|
@@ -50,6 +50,11 @@ var API_NAV_SECTIONS = [
|
|
|
50
50
|
{ id: "extract-include-markdown", label: "Options" },
|
|
51
51
|
{ id: "extract-processing-mode", label: "Responses" }
|
|
52
52
|
] },
|
|
53
|
+
{ id: "ask", label: "Ask", children: [
|
|
54
|
+
{ id: "post-ask", label: "POST /v1/ask" },
|
|
55
|
+
{ id: "ask-results", label: "Poll & Results" },
|
|
56
|
+
{ id: "ask-citations-verification", label: "Citations & Verification" }
|
|
57
|
+
] },
|
|
53
58
|
{ id: "documents", label: "Documents", children: [
|
|
54
59
|
{ id: "list-documents", label: "List Documents" },
|
|
55
60
|
{ id: "get-document", label: "Get Document" },
|
|
@@ -179,7 +184,8 @@ var API_NAV_SECTIONS = [
|
|
|
179
184
|
] },
|
|
180
185
|
{ id: "agent", label: "Agent", children: [
|
|
181
186
|
{ id: "agent-context", label: "Get Workspace Context" },
|
|
182
|
-
{ id: "agent-tools", label: "List Agent Tools" }
|
|
187
|
+
{ id: "agent-tools", label: "List Agent Tools" },
|
|
188
|
+
{ id: "agent-query", label: "Agent Query (Legacy)" }
|
|
183
189
|
] },
|
|
184
190
|
{ id: "matching", label: "Matching", children: [
|
|
185
191
|
{ id: "list-matching-configs", label: "List Configs" },
|
|
@@ -390,6 +396,8 @@ var PLATFORM_NAV_SECTIONS = [
|
|
|
390
396
|
] },
|
|
391
397
|
{ id: "agent", label: "AI Agent", children: [
|
|
392
398
|
{ id: "agent-capabilities", label: "Capabilities" },
|
|
399
|
+
{ id: "agent-ask-workflow", label: "How the Agent Answers" },
|
|
400
|
+
{ id: "agent-playground-onboarding", label: "Playground Onboarding" },
|
|
393
401
|
{ id: "agent-impact", label: "Impact Levels" },
|
|
394
402
|
{ id: "agent-dashboard", label: "Dashboard" }
|
|
395
403
|
] },
|
|
@@ -483,6 +491,14 @@ var PLATFORM_NAV_SECTIONS = [
|
|
|
483
491
|
{ id: "reference-primitives", label: "Reference Primitives" },
|
|
484
492
|
{ id: "change-review", label: "Change Review" }
|
|
485
493
|
] },
|
|
494
|
+
{ id: "enterprise-archive", label: "Enterprise Archive", children: [
|
|
495
|
+
{ id: "archive-overview", label: "Archive Overview" },
|
|
496
|
+
{ id: "retention-and-deletion", label: "Retention & Deletion" },
|
|
497
|
+
{ id: "legal-holds", label: "Legal Holds" },
|
|
498
|
+
{ id: "audit-trail", label: "Audit Trail" },
|
|
499
|
+
{ id: "security-architecture", label: "Security Architecture" },
|
|
500
|
+
{ id: "export-bundle-format", label: "Export Bundle Format" }
|
|
501
|
+
] },
|
|
486
502
|
{ id: "search-filtering", label: "Search & Filtering", children: [
|
|
487
503
|
{ id: "omnisearch", label: "Omnisearch" },
|
|
488
504
|
{ id: "document-filters", label: "Document Filters" }
|
|
@@ -2021,6 +2037,108 @@ var sections3 = [
|
|
|
2021
2037
|
"telemetry API",
|
|
2022
2038
|
"session history"
|
|
2023
2039
|
]
|
|
2040
|
+
},
|
|
2041
|
+
{
|
|
2042
|
+
slug: "agent-ask-workflow",
|
|
2043
|
+
parentSlug: "agent",
|
|
2044
|
+
title: "How the Agent Answers",
|
|
2045
|
+
seoTitle: "How the Talonic Agent Answers Questions Over Documents \u2014 Talonic Docs",
|
|
2046
|
+
description: "Inside a Talonic ask: three-plane retrieval over registry, cells, and text, SQL over structured data, extract-and-persist at query time, citations, and verification.",
|
|
2047
|
+
content: [
|
|
2048
|
+
{ type: "paragraph", text: "When you ask the agent a question, in the app or via [`POST /v1/ask`](https://talonic.com/docs/api/post-ask), it does not run a retrieval-augmented prompt over a pile of chunks. It runs a full agent turn over a corpus that was **structured at ingestion**: every document already has OCR markdown, captured fields with provenance, and a place in the field registry before the first question arrives. The turn plans its own retrieval, queries structured data directly, gathers evidence, writes the answer, and then has that answer checked. This page explains each stage so you can predict what the agent will be good at and read its output critically." },
|
|
2049
|
+
{ type: "heading", level: 3, id: "ask-retrieval-planes", text: "Three retrieval planes" },
|
|
2050
|
+
{ type: "paragraph", text: 'The agent looks for relevant material on three planes at once. The **field-registry plane** matches the question semantically against the canonical field concepts discovered across your documents: a question about "contract end dates" finds the registry concept for termination dates even if no document uses that exact phrase. The **value plane** matches lexically over the extracted cell values themselves: asking about "Globex" finds every document where that string was captured as a party, vendor, or counterparty. The **text plane** runs semantic and full-text search over the raw document text through a persistent chunk index, catching prose that never became a structured field. Because all three planes are consulted, the agent is not hostage to any single representation of your data.' },
|
|
2051
|
+
{ type: "heading", level: 3, id: "ask-sql-plane", text: "SQL over the structured plane" },
|
|
2052
|
+
{ type: "paragraph", text: 'For counting, listing, and aggregating, the agent runs **read-only SQL over the structured cell plane**. "How many of our agreements auto-renew?" is answered by a query over extracted cells with the denominator taken from real corpus coverage, not by reading a sample of documents and extrapolating. This is the decisive difference from chat-over-RAG tools: aggregate questions get database answers, and the coverage plane turns absence into evidence, so "no document mentions an exclusivity clause" is a checkable corpus-wide statement rather than a guess from an empty search.' },
|
|
2053
|
+
{ type: "heading", level: 3, id: "ask-extract-persist", text: "Extract-and-persist at query time" },
|
|
2054
|
+
{ type: "paragraph", text: "When a question needs a concept that was captured at ingestion but never bound into the queryable plane, the agent promotes it on the spot: an instant, LLM-free, reversible operation that lifts the already-extracted values into structured cells. When the concept was never extracted at all, the agent can mine it from the document text. Either way the result is **persisted**: the second time anyone asks about that concept, in the app or over the API, the answer is a plain SQL read. Your corpus becomes progressively more structured along the exact lines your team actually cares about, driven by the questions themselves." },
|
|
2055
|
+
{ type: "heading", level: 3, id: "ask-citations-and-badge", text: "Citations and the verification badge" },
|
|
2056
|
+
{ type: "paragraph", text: "Every load-bearing claim in an answer carries a citation that deep-links to the source document with the exact span highlighted: click it and you are looking at the sentence or the captured field the claim came from. After the answer is written, a separate verification pass re-checks its claims against the evidence the turn itself gathered, and the verdict is shown as a badge on the answer: **supported**, **issues**, or **unverifiable**." },
|
|
2057
|
+
{ type: "callout", variant: "warning", text: `Read the badge as a routing signal, not a truth oracle. "Issues" means a second pass could not support at least one claim from the turn's own evidence: it is a pointer to review, and the citation links are how you review. "Supported" means answer and evidence agree; it does not upgrade the evidence itself.` },
|
|
2058
|
+
{ type: "paragraph", text: "Asks are read-only with respect to your workspace configuration. Through the public API the turn runs under the least-privilege viewer role, and in the app the agent respects your team role: a question never edits documents, schemas, pipelines, or settings. The same machinery is available programmatically, with the citations returned as a structured array and the verification verdict in the payload." },
|
|
2059
|
+
{
|
|
2060
|
+
type: "code",
|
|
2061
|
+
language: "bash",
|
|
2062
|
+
title: "The same ask, over the API",
|
|
2063
|
+
code: `curl -s -X POST https://api.talonic.com/v1/ask \\
|
|
2064
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
2065
|
+
-H "Content-Type: application/json" \\
|
|
2066
|
+
-d '{"question": "Which agreements auto-renew, and with what notice period?"}'`
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
type: "code",
|
|
2070
|
+
language: "json",
|
|
2071
|
+
title: "Completed answer (excerpt)",
|
|
2072
|
+
code: `{
|
|
2073
|
+
"status": "completed",
|
|
2074
|
+
"answer": "Two agreements auto-renew. The [Acme master services agreement](https://app.talonic.com/documents/1b6f...?citeq=renews%20automatically) renews automatically with [90 days notice](https://app.talonic.com/documents/1b6f...?cite=notice_period_days)...",
|
|
2075
|
+
"citations": [
|
|
2076
|
+
{ "quote": "90 days notice", "kind": "field", "reference": "notice_period_days", "document_id": "1b6f...", "app_url": "https://app.talonic.com/documents/1b6f...?cite=notice_period_days" }
|
|
2077
|
+
],
|
|
2078
|
+
"verification": { "verdict": "supported", "checks_total": 4, "checks_unsupported": 0 }
|
|
2079
|
+
}`
|
|
2080
|
+
}
|
|
2081
|
+
],
|
|
2082
|
+
related: [
|
|
2083
|
+
{ label: "Agent Capabilities", slug: "agent-capabilities" },
|
|
2084
|
+
{ label: "Playground Onboarding", slug: "agent-playground-onboarding" },
|
|
2085
|
+
{ label: "Impact Levels", slug: "agent-impact" },
|
|
2086
|
+
{ label: "Field Registry", slug: "field-registry" }
|
|
2087
|
+
],
|
|
2088
|
+
faq: [
|
|
2089
|
+
{ question: "How is this different from RAG chat tools?", answer: "RAG answers from the top-k retrieved chunks. The Talonic agent retrieves across three planes (field registry, extracted values, document text), runs read-only SQL over structured cells for aggregate questions, and extracts missing concepts at query time so repeat questions become plain database reads. Every claim is cited to an exact span and the answer is re-verified against the turn's own evidence." },
|
|
2090
|
+
{ question: "What does the verification badge mean?", answer: "A post-answer pass re-checks the answer's claims against the evidence the turn gathered. Supported: all checked claims match the evidence. Issues: at least one claim did not, so review the answer via its citation links. Unverifiable: the claims could not be bound to specific evidence. Treat it as a routing signal for review, not as ground truth." },
|
|
2091
|
+
{ question: "Does asking questions change my data?", answer: "Questions never modify documents, schemas, pipelines, or settings. The one thing an ask can do is make already-extracted data queryable (promotion) or mine a missing concept from document text, both of which enrich the structured layer without touching your configuration, and promotion is reversible." },
|
|
2092
|
+
{ question: "Why is the second ask about the same topic faster?", answer: "Because the first ask persisted its work. A coverage gap triggers promotion or mining at query time, and the result lands in the structured cell plane, so subsequent questions about that concept resolve as plain SQL reads instead of repeating retrieval and extraction." }
|
|
2093
|
+
],
|
|
2094
|
+
mentions: ["three-plane retrieval", "field registry", "value plane", "chunk index", "read-only SQL", "promotion", "mining", "citations", "verification badge", "coverage"]
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
slug: "agent-playground-onboarding",
|
|
2098
|
+
parentSlug: "agent",
|
|
2099
|
+
title: "Playground Onboarding",
|
|
2100
|
+
seoTitle: "The Ask Playground: Your First Answer in a Minute \u2014 Talonic Docs",
|
|
2101
|
+
description: "New self-serve workspaces land in a Playground with an Ask your documents card over seeded examples. Ask, click a citation, upload your own files, and graduate.",
|
|
2102
|
+
content: [
|
|
2103
|
+
{ type: "paragraph", text: 'New self-serve workspaces land in the **Playground** at the workspace home. Its centerpiece is the **"Ask your documents"** card: a question box wired to the agent, sitting over a workspace that is already seeded with two example documents, a **Northwind Supplies invoice** and an **Acme/Globex master services agreement**, both fully ingested with captured fields. Nothing needs to be configured or uploaded before the first question: type "What is the total value of the master services agreement?" and the first cited answer arrives in seconds.' },
|
|
2104
|
+
{ type: "paragraph", text: 'The seeded examples exist so the first thing you experience is the loop that matters: **ask, read, verify**. Each answer cites its sources inline, and clicking a citation opens the document with the cited span highlighted, so you can see for yourself that the "EUR 96,000" in the answer is the "EUR 96,000" in the contract. The verification badge on the answer shows whether a second pass could support every claim. Once that loop feels trustworthy on the examples, it works identically on your own documents.' },
|
|
2105
|
+
{ type: "heading", level: 3, id: "playground-upload-ask", text: "From seeded examples to your own documents" },
|
|
2106
|
+
{ type: "paragraph", text: "The Playground flow for real data is upload, then ask. Drop your own files onto the Playground (or ingest them programmatically) and they run through the same pipeline as the examples: OCR, then background field capture that adds them to the askable corpus. As soon as processing completes, questions span everything in the workspace, seeded examples and your uploads alike, and you can delete the examples once they have served their purpose. The developer path mirrors this: mint an API key and the same two calls, [`POST /v1/run`](https://talonic.com/docs/api/run-spec) to ingest and [`POST /v1/ask`](https://talonic.com/docs/api/post-ask) to question, reproduce the whole Playground experience over HTTPS." },
|
|
2107
|
+
{
|
|
2108
|
+
type: "code",
|
|
2109
|
+
language: "bash",
|
|
2110
|
+
title: "The Playground loop, as API calls",
|
|
2111
|
+
code: `# 1. Ingest your document (askable by default)
|
|
2112
|
+
curl -s -X POST https://api.talonic.com/v1/run \\
|
|
2113
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
2114
|
+
-F "spec_id=$SPEC_ID" \\
|
|
2115
|
+
-F "files=@my-contract.pdf"
|
|
2116
|
+
|
|
2117
|
+
# 2. Ask about it
|
|
2118
|
+
curl -s -X POST https://api.talonic.com/v1/ask \\
|
|
2119
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
2120
|
+
-H "Content-Type: application/json" \\
|
|
2121
|
+
-d '{"question": "What are the payment terms in my contract?"}'`
|
|
2122
|
+
},
|
|
2123
|
+
{ type: "paragraph", text: "For developers who signed up through the magic-link flow (on deployments where self-serve signup is enabled), the Playground and the API key arrive together: registering by email confirms into a seeded workspace plus a scoped `tlnc_` key, so the first curl works within a minute of signup, against the same Northwind and Acme/Globex examples the Playground shows." },
|
|
2124
|
+
{ type: "callout", variant: "info", text: 'Good first questions to try on the seeded examples: "What is the total of the Northwind invoice and when is it due?", "Who are the parties to the master services agreement?", or "Do any of my documents mention a notice period?" Each demonstrates a different retrieval plane: captured fields, parties, and full-text search.' },
|
|
2125
|
+
{ type: "heading", level: 3, id: "playground-graduation", text: "Graduating from the Playground" },
|
|
2126
|
+
{ type: "paragraph", text: "The Playground is the full ask experience, but it is deliberately a subset of the platform: self-serve workspaces start with the ask surface, uploads, and the API, while the complete platform workspace (Specs and pipeline composition, review queues, delivery, team administration) is part of the enterprise plan. When your usage outgrows the Playground, use the request-access path in the app to talk to the team about upgrading; your workspace, documents, captured fields, and API keys carry over unchanged, because the Playground runs on the same corpus and the same engine as the full platform." },
|
|
2127
|
+
{ type: "paragraph", text: "Until then, nothing about the Playground is throwaway. Every question you ask makes the corpus more structured (promotion and mining persist their results), every upload is a real ingested document with provenance, and credit metering works the same as everywhere else: one flat `agent_ask` unit per question. Teams routinely run the Playground as their production ask surface over the API long before touching the rest of the platform." }
|
|
2128
|
+
],
|
|
2129
|
+
related: [
|
|
2130
|
+
{ label: "How the Agent Answers", slug: "agent-ask-workflow" },
|
|
2131
|
+
{ label: "Agent Dashboard", slug: "agent-dashboard" },
|
|
2132
|
+
{ label: "Uploading Documents", slug: "uploading" },
|
|
2133
|
+
{ label: "Getting Started", slug: "getting-started" }
|
|
2134
|
+
],
|
|
2135
|
+
faq: [
|
|
2136
|
+
{ question: "What is in the seeded example workspace?", answer: "Two fully ingested example documents: an invoice from Northwind Supplies Ltd and a master services agreement between Acme Corporation and Globex GmbH. Both have captured fields and provenance, so asks, citations, and citation deep links all work before you upload anything." },
|
|
2137
|
+
{ question: "Do questions in the Playground work on my own uploads?", answer: "Yes. Uploaded documents run through OCR and background field capture, joining the same askable corpus as the seeded examples. Questions always span the whole workspace, and you can delete the examples whenever you like." },
|
|
2138
|
+
{ question: "What happens when I click a citation?", answer: "The document opens with the cited span highlighted: the exact sentence for a quote citation, or the provenance span of the captured field for a field citation. Verifying a claim is one click, not a search." },
|
|
2139
|
+
{ question: "How do I get access to the full platform?", answer: "The Playground covers asking, uploading, and the API; Specs, review queues, delivery, and team administration are part of the enterprise platform workspace. Use the request-access path in the app to upgrade. Your documents, captured fields, and API keys carry over unchanged." }
|
|
2140
|
+
],
|
|
2141
|
+
mentions: ["Playground", "Ask your documents card", "seeded examples", "Northwind invoice", "master services agreement", "citation deep links", "magic-link signup", "graduation", "request access"]
|
|
2024
2142
|
}
|
|
2025
2143
|
];
|
|
2026
2144
|
|
|
@@ -11172,8 +11290,836 @@ var sections18 = [
|
|
|
11172
11290
|
}
|
|
11173
11291
|
];
|
|
11174
11292
|
|
|
11175
|
-
// src/content/
|
|
11293
|
+
// src/content/platform/archive.ts
|
|
11176
11294
|
var sections19 = [
|
|
11295
|
+
{
|
|
11296
|
+
slug: "archive-overview",
|
|
11297
|
+
parentSlug: "enterprise-archive",
|
|
11298
|
+
title: "Archive Overview",
|
|
11299
|
+
seoTitle: "Enterprise Digital Archive: Retention, Holds, Audit \u2014 Talonic Docs",
|
|
11300
|
+
description: "Talonic adds an enterprise archive layer on top of extraction: retention policies, legal holds, review-gated disposition, tombstones, and a tamper-evident audit trail.",
|
|
11301
|
+
content: [
|
|
11302
|
+
{
|
|
11303
|
+
type: "paragraph",
|
|
11304
|
+
text: "**Talonic** is a document extraction platform with an archive layer built for organizations that must keep records intact, retrievable, and accountable for years. An archive is a different product category from a document store: a store keeps files, while an archive makes promises about them. This page explains the promises the archive layer makes, what ships today, what is on the roadmap, and how the capabilities relate to the records-management regimes enterprise buyers evaluate against."
|
|
11305
|
+
},
|
|
11306
|
+
{
|
|
11307
|
+
type: "paragraph",
|
|
11308
|
+
text: "The archive capabilities are organized around six promises. **Authenticity**: what is stored is exactly what was ingested. Originals are stored byte-verbatim, and OCR output and other derivatives are stored separately and never replace the original. For email, the byte-identical RFC 822 original (.eml) is preserved as an asset alongside the rendered content. **Integrity**: content is provably unchanged over time. A SHA-256 hash is computed at ingest and persisted with the document, every stored document is re-hashed and re-verified on a rolling schedule (the full corpus within 30 days by default), stored objects are written once at the application layer with server-side encryption and bucket versioning, and a mismatch quarantines the document rather than passing silently. **Retention**: records are kept exactly as long as policy requires, no shorter and no longer, through duration-based or event-based schedules with grace periods and review-gated disposition."
|
|
11309
|
+
},
|
|
11310
|
+
{
|
|
11311
|
+
type: "paragraph",
|
|
11312
|
+
text: "The remaining three promises: **Retrievability**: records stay findable and readable for the whole retention period. Documents remain browsable, viewable, and downloadable with rich metadata until a disposition is approved and executed. **Auditability**: every access and lifecycle event is recorded server-side in a tamper-evident, hash-chained log that outlives the records it describes. **Confidentiality**: access is need-to-know, enforced by strict tenant isolation on every query, role-based access control that fails closed, and hashed, scoped API keys."
|
|
11313
|
+
},
|
|
11314
|
+
{
|
|
11315
|
+
type: "heading",
|
|
11316
|
+
level: 3,
|
|
11317
|
+
id: "archive-what-ships-today",
|
|
11318
|
+
text: "What ships today"
|
|
11319
|
+
},
|
|
11320
|
+
{
|
|
11321
|
+
type: "list",
|
|
11322
|
+
ordered: false,
|
|
11323
|
+
items: [
|
|
11324
|
+
"**Retention policies and assignments.** Tenant-scoped policies with fixed durations or event-based triggers, assigned at source connection, document type, or individual document level. The most specific assignment wins.",
|
|
11325
|
+
"**Legal holds.** Holds at tenant, source connection, or document set scope. Every deletion path checks for active holds and refuses to proceed while one applies.",
|
|
11326
|
+
"**Review-gated disposition.** Expired records enter a review queue, require explicit typed approval, and destruction produces a certificate recording what was destroyed, when, by whose approval, and the hash of the destroyed content.",
|
|
11327
|
+
"**Archive mode with soft delete and tombstones.** With archive mode enabled, deletion is a recorded state, not an erasure of history. After destruction, a tombstone retains the document identity, its content hash, and its audit linkage.",
|
|
11328
|
+
"**Tamper-evident audit trail with daily anchoring.** Views, downloads, exports, deletions, holds, retention changes, and dispositions are recorded server-side. Each event is chained to the previous one with a cryptographic hash, the chain head is anchored daily to external object storage, and verification checks both the chain and the anchors.",
|
|
11329
|
+
"**Fixity at ingest and on schedule.** Every document receives a SHA-256 hash at upload. A daily verification cycle re-reads stored content and re-checks the hash, covering the whole corpus within a configurable window; mismatches quarantine the document and are recorded in the audit trail.",
|
|
11330
|
+
"**Write-once, encrypted, versioned storage.** Stored objects are written once at the application layer (an overwrite of a stored key is rejected), every write carries server-side encryption, storage-level deletes require a recorded reason and pass the legal hold check, and production object storage uses bucket versioning with deletion protection at the infrastructure level.",
|
|
11331
|
+
"**Access compartments.** Named sub-workspace groups bound to sources, document types, or individual documents restrict what member and viewer roles can see, enforced in every document query path.",
|
|
11332
|
+
"**SCIM provisioning and MFA.** SCIM 2.0 user and group provisioning for identity providers, TOTP multi-factor authentication, and an optional step-up requirement (a fresh TOTP code) on high-impact archive actions such as hold release, disposition approval, and tenant export.",
|
|
11333
|
+
"**Data-subject erasure and redaction.** A locate, scope, approve, execute workflow for GDPR erasure requests, with per-document redact or destroy modes, retention and hold aware blocking, and execution certificates that report exemptions instead of silently skipping.",
|
|
11334
|
+
"**Full-tenant export.** A verifiable export bundle (originals, extracted content, values with provenance, audit log, per-file SHA-256 manifest) built asynchronously and downloaded through the API.",
|
|
11335
|
+
"**Content search and storage quotas.** Full-text search across stored document content in the library, and per-workspace storage quotas enforced at ingest admission."
|
|
11336
|
+
]
|
|
11337
|
+
},
|
|
11338
|
+
{
|
|
11339
|
+
type: "heading",
|
|
11340
|
+
level: 3,
|
|
11341
|
+
id: "archive-mode-setting",
|
|
11342
|
+
text: "Archive mode"
|
|
11343
|
+
},
|
|
11344
|
+
{
|
|
11345
|
+
type: "paragraph",
|
|
11346
|
+
text: "Archive semantics are opt-in per workspace through a single setting: **archive mode**. With archive mode off, document deletion behaves as it always has. With archive mode on, ordinary deletes become soft deletes: the document is marked deleted and hidden from listings, but its content is not destroyed and its history remains intact. Actual content destruction then happens only through the review-gated disposition workflow. Workspace admins manage the setting in Settings under Archive, or through the API."
|
|
11347
|
+
},
|
|
11348
|
+
{
|
|
11349
|
+
type: "code",
|
|
11350
|
+
language: "bash",
|
|
11351
|
+
title: "Read and enable archive mode",
|
|
11352
|
+
code: `# Read the current setting (any role)
|
|
11353
|
+
curl "$API_URL/records/archive-settings" \\
|
|
11354
|
+
-H "Authorization: Bearer $TOKEN"
|
|
11355
|
+
|
|
11356
|
+
# Enable archive mode (admin only)
|
|
11357
|
+
curl -X PATCH "$API_URL/records/archive-settings" \\
|
|
11358
|
+
-H "Authorization: Bearer $TOKEN" \\
|
|
11359
|
+
-H "Content-Type: application/json" \\
|
|
11360
|
+
-d '{"archive_mode": true}'`
|
|
11361
|
+
},
|
|
11362
|
+
{
|
|
11363
|
+
type: "code",
|
|
11364
|
+
language: "json",
|
|
11365
|
+
title: "Response",
|
|
11366
|
+
code: '{\n "archive_mode": true,\n "updated_at": "2026-07-18T09:14:02.511Z",\n "updated_by": "9f2c41d6-8a3b-4e0f-9c77-1d2e3f4a5b6c"\n}'
|
|
11367
|
+
},
|
|
11368
|
+
{
|
|
11369
|
+
type: "paragraph",
|
|
11370
|
+
text: "Retention and hold state is visible wherever you work with documents. The document list exposes an `on_hold` flag, the resolved retention state per document, and filters for hold and retention state, so you can verify hold coverage or find everything pending disposition without leaving the library. Changing the archive settings is itself recorded in the audit trail as an `archive.settings_changed` event."
|
|
11371
|
+
},
|
|
11372
|
+
{
|
|
11373
|
+
type: "heading",
|
|
11374
|
+
level: 3,
|
|
11375
|
+
id: "archive-compliance-orientation",
|
|
11376
|
+
text: "Compliance orientation"
|
|
11377
|
+
},
|
|
11378
|
+
{
|
|
11379
|
+
type: "paragraph",
|
|
11380
|
+
text: "The archive capabilities are designed with the major records-management regimes in mind: GoBD expects immutability, completeness, retention periods, and procedural documentation. SEC 17a-4 and FINRA expect WORM storage or an audit-trail alternative, defined retention periods, and prompt retrieval. GDPR expects the right to erasure coexisting with retention duties. SOC 2 and ISO 27001 expect evidenced access control, audit logging, and encryption. Talonic delivers the underlying capabilities listed above: fixity verification, retention schedules, review-gated disposition, hold enforcement, erasure with certificates, and the anchored, tamper-evident audit trail. A control-by-control mapping against SOC 2 TSC and ISO 27001 Annex A is maintained alongside the codebase and is available on request."
|
|
11381
|
+
},
|
|
11382
|
+
{
|
|
11383
|
+
type: "callout",
|
|
11384
|
+
variant: "warning",
|
|
11385
|
+
text: "**This is an orientation, not a certification claim.** Talonic does not currently hold formal certifications or attestations against these regimes. Whether a given deployment meets a regime's requirements depends on your configuration, your processes, and in most cases an independent assessment. If your evaluation depends on a specific control, ask us for the current control mapping rather than inferring from this page."
|
|
11386
|
+
},
|
|
11387
|
+
{
|
|
11388
|
+
type: "heading",
|
|
11389
|
+
level: 3,
|
|
11390
|
+
id: "archive-roadmap",
|
|
11391
|
+
text: "Roadmap"
|
|
11392
|
+
},
|
|
11393
|
+
{
|
|
11394
|
+
type: "callout",
|
|
11395
|
+
variant: "warning",
|
|
11396
|
+
text: "**Not yet available.** The following are planned but not part of the current release. Do not rely on them in procurement decisions until they ship: storage-level WORM (S3 Object Lock; the infrastructure templates exist but the archive bucket is not deployed, so today immutability is enforced at the application layer plus bucket versioning), audit chain anchors on WORM storage (today anchors go to the regular encrypted, versioned object store), cross-region replication as live infrastructure (designed with a 15 minute replication SLA, not deployed), format preservation (PDF/A derivatives; plumbing exists but is off by default and requires a dedicated worker image), qualified timestamps (eIDAS), and committed recovery objectives (the disaster recovery procedure is finalized, but its RPO/RTO figures are proposed and unproven until the first drill)."
|
|
11397
|
+
},
|
|
11398
|
+
{
|
|
11399
|
+
type: "heading",
|
|
11400
|
+
level: 3,
|
|
11401
|
+
id: "archive-and-extraction",
|
|
11402
|
+
text: "How the archive relates to extraction"
|
|
11403
|
+
},
|
|
11404
|
+
{
|
|
11405
|
+
type: "paragraph",
|
|
11406
|
+
text: "Archive semantics are additive. Documents flow through the same ingestion and extraction pipeline; the archive layer adds record lifecycle management on top without changing how extraction works. A document can simultaneously be a working input to a pipeline, a managed record under a retention policy, and material preserved by a legal hold. Nothing about retention or holds changes extraction results, schemas, or delivery. The archive layer only governs how long the record exists and what is recorded about it."
|
|
11407
|
+
}
|
|
11408
|
+
],
|
|
11409
|
+
related: [
|
|
11410
|
+
{ label: "Retention & Deletion", slug: "retention-and-deletion" },
|
|
11411
|
+
{ label: "Legal Holds", slug: "legal-holds" },
|
|
11412
|
+
{ label: "Audit Trail", slug: "audit-trail" },
|
|
11413
|
+
{ label: "Security Architecture", slug: "security-architecture" },
|
|
11414
|
+
{ label: "Export Bundle Format", slug: "export-bundle-format" }
|
|
11415
|
+
],
|
|
11416
|
+
faq: [
|
|
11417
|
+
{
|
|
11418
|
+
question: "What makes Talonic an archive rather than just document storage?",
|
|
11419
|
+
answer: "An archive makes enforceable promises about records: authenticity, integrity, retention, retrievability, auditability, and confidentiality. Talonic backs these with byte-verbatim originals, SHA-256 fixity at ingest, retention policies with review-gated disposition, fail-closed legal holds on every deletion path, and a hash-chained server-side audit trail that survives document destruction."
|
|
11420
|
+
},
|
|
11421
|
+
{
|
|
11422
|
+
question: "Does enabling archive mode change how extraction works?",
|
|
11423
|
+
answer: "No. Archive semantics are additive. Documents flow through the same ingestion and extraction pipeline, and schemas, runs, and delivery are unaffected. Archive mode changes what happens on deletion (soft delete instead of hard delete) and adds record lifecycle management on top."
|
|
11424
|
+
},
|
|
11425
|
+
{
|
|
11426
|
+
question: "Is Talonic certified for GoBD, SEC 17a-4, or SOC 2?",
|
|
11427
|
+
answer: "No. Talonic does not currently hold formal certifications or attestations against these regimes. The archive capabilities are designed with those regimes in mind, but whether a deployment meets a specific requirement depends on your configuration and processes, and usually on an independent assessment. Ask for the current control mapping if your evaluation depends on a specific control."
|
|
11428
|
+
},
|
|
11429
|
+
{
|
|
11430
|
+
question: "Is stored content protected by WORM storage?",
|
|
11431
|
+
answer: "Not yet at the storage layer. Today immutability is enforced at the application layer: stored keys are write-once (an overwrite attempt is rejected), every write is server-side encrypted, and production buckets are versioned. Storage-level write-once locks (S3 Object Lock with cross-region replication) exist as validated infrastructure templates but are not deployed, so they are not part of the current release."
|
|
11432
|
+
}
|
|
11433
|
+
],
|
|
11434
|
+
mentions: [
|
|
11435
|
+
"enterprise archive",
|
|
11436
|
+
"records management",
|
|
11437
|
+
"retention policy",
|
|
11438
|
+
"legal hold",
|
|
11439
|
+
"disposition",
|
|
11440
|
+
"audit trail",
|
|
11441
|
+
"SHA-256 fixity",
|
|
11442
|
+
"tombstone",
|
|
11443
|
+
"archive mode",
|
|
11444
|
+
"GoBD",
|
|
11445
|
+
"tenant isolation"
|
|
11446
|
+
]
|
|
11447
|
+
},
|
|
11448
|
+
{
|
|
11449
|
+
slug: "retention-and-deletion",
|
|
11450
|
+
parentSlug: "enterprise-archive",
|
|
11451
|
+
title: "Retention & Deletion",
|
|
11452
|
+
seoTitle: "Retention Policies, Disposition & Deletion \u2014 Talonic Docs",
|
|
11453
|
+
description: "Define retention policies, assign them by source, document type, or document, and let expired records move through review-gated disposition with destruction certificates.",
|
|
11454
|
+
content: [
|
|
11455
|
+
{
|
|
11456
|
+
type: "paragraph",
|
|
11457
|
+
text: "Retention is the mechanism that lets you keep records exactly as long as your obligations require: no shorter, and no longer. This guide explains how retention policies are defined, how they attach to documents, how expired records move through review-gated disposition to destruction, and how deletion behaves when legal holds apply. Workspace admins manage policies and approve dispositions; viewers have read-only access."
|
|
11458
|
+
},
|
|
11459
|
+
{
|
|
11460
|
+
type: "paragraph",
|
|
11461
|
+
text: "A **retention policy** is a named, workspace-scoped rule that answers two questions: how long is a record kept, and what happens when that time is up. Each policy has a unique name, an optional description, either a fixed duration in days or an event trigger the clock starts from, a grace period in extra days after expiry before the record enters disposition, and a disposition action that decides what happens at expiry: `review_then_destroy` or `retain_indefinitely`."
|
|
11462
|
+
},
|
|
11463
|
+
{
|
|
11464
|
+
type: "paragraph",
|
|
11465
|
+
text: "A **duration-based** policy counts a fixed number of days from ingest. An **event-based** policy starts the clock from a trigger event: `ingest_date` (when the document entered Talonic) or `document_date` (a date carried by the document itself, for example an invoice date). Talonic's compliance triage can propose event dates it finds in document content. Proposed dates are suggestions only: a document whose trigger date is not confirmed never gets an expiry date computed from a guess, so an unconfirmed proposal never triggers disposition."
|
|
11466
|
+
},
|
|
11467
|
+
{
|
|
11468
|
+
type: "code",
|
|
11469
|
+
language: "bash",
|
|
11470
|
+
title: "Create a policy and assign it to a document type",
|
|
11471
|
+
code: `# Create a 10-year policy with a 30-day grace period (admin only)
|
|
11472
|
+
curl -X POST "$API_URL/records/retention-policies" \\
|
|
11473
|
+
-H "Authorization: Bearer $TOKEN" \\
|
|
11474
|
+
-H "Content-Type: application/json" \\
|
|
11475
|
+
-d '{
|
|
11476
|
+
"name": "Invoices 10y",
|
|
11477
|
+
"description": "Tax-relevant invoices, 10 years from document date",
|
|
11478
|
+
"duration_days": 3650,
|
|
11479
|
+
"event_trigger": "document_date",
|
|
11480
|
+
"grace_period_days": 30,
|
|
11481
|
+
"disposition_action": "review_then_destroy"
|
|
11482
|
+
}'
|
|
11483
|
+
|
|
11484
|
+
# Assign it to every document classified as an invoice
|
|
11485
|
+
curl -X POST "$API_URL/records/retention-assignments" \\
|
|
11486
|
+
-H "Authorization: Bearer $TOKEN" \\
|
|
11487
|
+
-H "Content-Type: application/json" \\
|
|
11488
|
+
-d '{
|
|
11489
|
+
"policy_id": "<policy-id>",
|
|
11490
|
+
"scope_type": "document_type",
|
|
11491
|
+
"scope_id": "invoice"
|
|
11492
|
+
}'`
|
|
11493
|
+
},
|
|
11494
|
+
{
|
|
11495
|
+
type: "heading",
|
|
11496
|
+
level: 3,
|
|
11497
|
+
id: "retention-scopes-resolution",
|
|
11498
|
+
text: "Assignments and resolution: most specific wins"
|
|
11499
|
+
},
|
|
11500
|
+
{
|
|
11501
|
+
type: "paragraph",
|
|
11502
|
+
text: 'A policy takes effect when it is assigned to a scope. Three scopes exist: **source connection** (every document ingested through that connection), **document type** (every document classified as that type), and **document** (one specific document). When more than one assignment could apply, the most specific one wins: document beats document type, and document type beats source connection. Example: your Gmail connection carries a 6-year policy and the document type "invoice" carries a 10-year policy. An invoice from that Gmail connection gets 10 years. One specific invoice with a direct "retain indefinitely" assignment is retained indefinitely.'
|
|
11503
|
+
},
|
|
11504
|
+
{
|
|
11505
|
+
type: "param-table",
|
|
11506
|
+
title: "Retention state per document",
|
|
11507
|
+
params: [
|
|
11508
|
+
{ name: "active", type: "state", description: "Within its retention period. Normal access; no disposition pending." },
|
|
11509
|
+
{ name: "pending_disposition", type: "state", description: "Past expiry plus grace period. Waiting in the disposition review queue. The document remains fully accessible." },
|
|
11510
|
+
{ name: "disposed", type: "state", description: "Destruction approved and executed. Content is gone; the tombstone row and full audit history remain." }
|
|
11511
|
+
]
|
|
11512
|
+
},
|
|
11513
|
+
{
|
|
11514
|
+
type: "paragraph",
|
|
11515
|
+
text: "The retention engine runs on a daily schedule. It resolves the effective policy for each document, computes and stores `retain_until`, and moves documents past `retain_until` plus the grace period into `pending_disposition` when their policy says `review_then_destroy`. Each engine run is summarized in the audit trail (`retention.set` and `disposition.pending` events), and each document's resolved policy, expiry date, and state are visible on the document itself and in document list filters."
|
|
11516
|
+
},
|
|
11517
|
+
{
|
|
11518
|
+
type: "heading",
|
|
11519
|
+
level: 3,
|
|
11520
|
+
id: "how-disposition-works",
|
|
11521
|
+
text: "How disposition works"
|
|
11522
|
+
},
|
|
11523
|
+
{
|
|
11524
|
+
type: "paragraph",
|
|
11525
|
+
text: 'Disposition is the controlled end of a record\'s life. Talonic never silently destroys an expired record. The path is: the document passes `retain_until` plus grace and enters the review queue. Nothing is destroyed at this point. An admin reviews the queue and approves destruction with a typed confirmation (`"confirm": "DESTROY"`), which is recorded with the approver\'s identity. Immediately before destruction, the system re-checks for active legal holds; if any hold covers the document, destruction fails closed and the document stays in the queue. Destruction then removes the stored content and extracted occurrences, keeps the document row as a tombstone, and issues a **disposition certificate**.'
|
|
11526
|
+
},
|
|
11527
|
+
{
|
|
11528
|
+
type: "code",
|
|
11529
|
+
language: "bash",
|
|
11530
|
+
title: "Review the queue and approve a disposition",
|
|
11531
|
+
code: `# List documents pending disposition
|
|
11532
|
+
curl "$API_URL/records/dispositions?state=pending_disposition" \\
|
|
11533
|
+
-H "Authorization: Bearer $TOKEN"
|
|
11534
|
+
|
|
11535
|
+
# Approve destruction of one document (admin only, typed confirmation)
|
|
11536
|
+
curl -X POST "$API_URL/records/dispositions/$DOCUMENT_ID/approve" \\
|
|
11537
|
+
-H "Authorization: Bearer $TOKEN" \\
|
|
11538
|
+
-H "Content-Type: application/json" \\
|
|
11539
|
+
-d '{"confirm": "DESTROY"}'`
|
|
11540
|
+
},
|
|
11541
|
+
{
|
|
11542
|
+
type: "code",
|
|
11543
|
+
language: "json",
|
|
11544
|
+
title: "Response",
|
|
11545
|
+
code: '{\n "disposed": true,\n "certificate_id": "c2f0a7e4-6d1b-4c58-9a3e-8b7f6d5c4e3a"\n}'
|
|
11546
|
+
},
|
|
11547
|
+
{
|
|
11548
|
+
type: "paragraph",
|
|
11549
|
+
text: "Every executed disposition produces a certificate recording the document (by tombstone reference), the filename, the SHA-256 hash of the destroyed content, the retention policy that applied, who approved the destruction and when, when destruction was executed, and confirmation that the legal hold check passed. Certificates are listed at `GET /records/disposition-certificates` and outlive the records they describe. The destruction itself is also written to the hash-chained audit trail as a `document.disposed` event, so the fact and circumstances of destruction enjoy the same tamper evidence as every other event."
|
|
11550
|
+
},
|
|
11551
|
+
{
|
|
11552
|
+
type: "heading",
|
|
11553
|
+
level: 3,
|
|
11554
|
+
id: "soft-delete-vs-destruction",
|
|
11555
|
+
text: "Soft delete vs. destruction"
|
|
11556
|
+
},
|
|
11557
|
+
{
|
|
11558
|
+
type: "param-table",
|
|
11559
|
+
title: "Two different things",
|
|
11560
|
+
params: [
|
|
11561
|
+
{ name: "Soft delete", type: "archive mode", description: "Triggered by ordinary delete actions when archive mode is on. The document is marked deleted and hidden from listings, but content remains in storage and nothing about its history is lost. Audit event: document.deleted." },
|
|
11562
|
+
{ name: "Destruction", type: "disposition only", description: "Triggered only by an approved disposition. Content is permanently deleted; the row remains as a tombstone with the content hash and audit linkage. Audit event: document.disposed, plus a certificate." }
|
|
11563
|
+
]
|
|
11564
|
+
},
|
|
11565
|
+
{
|
|
11566
|
+
type: "paragraph",
|
|
11567
|
+
text: "Every deletion path checks for active legal holds before proceeding and refuses if one applies: user-initiated document deletion, disposition-driven destruction, administrative cleanup, and full workspace deletion. Fail-closed means the check must positively succeed for deletion to proceed. A hold always beats a retention expiry: a document that is both expired and held stays exactly where it is until the hold is released. After destruction, the tombstone preserves the document's identity, its content hash, and its complete audit history, so you can always answer what the record was, when it existed, who touched it, and who approved its destruction."
|
|
11568
|
+
},
|
|
11569
|
+
{
|
|
11570
|
+
type: "callout",
|
|
11571
|
+
variant: "warning",
|
|
11572
|
+
text: "**Roadmap, not yet available:** storage-level WORM locks tied to `retain_until` and lifecycle tiering to archival storage classes (both are designed as infrastructure templates and are not deployed; today retention is enforced at the application layer). Fully automatic event-based retention from extracted dates is intentionally not offered: extracted dates remain proposals requiring human confirmation."
|
|
11573
|
+
}
|
|
11574
|
+
],
|
|
11575
|
+
related: [
|
|
11576
|
+
{ label: "Archive Overview", slug: "archive-overview" },
|
|
11577
|
+
{ label: "Legal Holds", slug: "legal-holds" },
|
|
11578
|
+
{ label: "Audit Trail", slug: "audit-trail" },
|
|
11579
|
+
{ label: "Document Filters", slug: "document-filters" }
|
|
11580
|
+
],
|
|
11581
|
+
faq: [
|
|
11582
|
+
{
|
|
11583
|
+
question: "What happens when a retention policy expires for a document?",
|
|
11584
|
+
answer: "Nothing is destroyed automatically. When a document passes its retain_until date plus the policy grace period, the retention engine moves it to pending_disposition and it appears in the disposition review queue. The document remains fully accessible until an admin explicitly approves destruction with a typed confirmation, and a hold check runs immediately before destruction."
|
|
11585
|
+
},
|
|
11586
|
+
{
|
|
11587
|
+
question: "Which policy applies when several assignments could match a document?",
|
|
11588
|
+
answer: "The most specific assignment wins: a per-document assignment beats a document-type assignment, which beats a source-connection assignment. Each document shows its resolved policy, retain_until date, and retention state, so you can verify the effective policy before relying on it."
|
|
11589
|
+
},
|
|
11590
|
+
{
|
|
11591
|
+
question: "Can I delete a retention policy that is in use?",
|
|
11592
|
+
answer: "Deleting a policy that still has assignments returns a conflict error unless you pass force=true. Removing a policy does not destroy any documents; documents whose policy is removed simply stop having a computed expiry from that policy."
|
|
11593
|
+
},
|
|
11594
|
+
{
|
|
11595
|
+
question: "What is in a disposition certificate?",
|
|
11596
|
+
answer: "The document reference, the filename, the SHA-256 hash of the destroyed content, the retention policy that applied, the approver identity and approval time, the execution time, and confirmation that the legal hold check passed. Certificates are retained permanently and remain queryable after the record itself is destroyed."
|
|
11597
|
+
}
|
|
11598
|
+
],
|
|
11599
|
+
mentions: [
|
|
11600
|
+
"retention policy",
|
|
11601
|
+
"retention schedule",
|
|
11602
|
+
"disposition",
|
|
11603
|
+
"destruction certificate",
|
|
11604
|
+
"grace period",
|
|
11605
|
+
"event-based retention",
|
|
11606
|
+
"soft delete",
|
|
11607
|
+
"tombstone",
|
|
11608
|
+
"retain_until",
|
|
11609
|
+
"review queue"
|
|
11610
|
+
]
|
|
11611
|
+
},
|
|
11612
|
+
{
|
|
11613
|
+
slug: "legal-holds",
|
|
11614
|
+
parentSlug: "enterprise-archive",
|
|
11615
|
+
title: "Legal Holds",
|
|
11616
|
+
seoTitle: "Legal Holds: Preservation That Blocks Every Deletion \u2014 Talonic Docs",
|
|
11617
|
+
description: "Place legal holds at tenant, source, or document set scope. Every deletion path checks holds fail-closed, and release requires typed confirmation with a recorded reason.",
|
|
11618
|
+
content: [
|
|
11619
|
+
{
|
|
11620
|
+
type: "paragraph",
|
|
11621
|
+
text: "A **legal hold** preserves documents that may be relevant to litigation, an investigation, or an audit. While a hold is active, nothing it covers can be deleted by any path in the system, including retention expiry and full workspace deletion. A hold is not a workflow suggestion: it is enforced by the platform. Every deletion path checks for active holds and refuses to proceed while one applies, and the check fails closed. If the system cannot positively confirm that no hold covers a document, the deletion does not happen."
|
|
11622
|
+
},
|
|
11623
|
+
{
|
|
11624
|
+
type: "paragraph",
|
|
11625
|
+
text: 'A hold covers documents at one of three scopes. A **tenant** hold covers every document in the workspace: broad preservation at the start of a matter, before scope is clear. A **source connection** hold covers every document ingested through one connection: "preserve everything from the finance mailbox". A **document set** hold covers an explicit list of documents: targeted preservation once the relevant records are identified. Documents can be added to an existing document-set hold as the matter develops, and a document can be covered by multiple holds at once; it remains protected until every hold covering it is released.'
|
|
11626
|
+
},
|
|
11627
|
+
{
|
|
11628
|
+
type: "paragraph",
|
|
11629
|
+
text: 'Each hold carries metadata that ties it back to the real-world matter: a **name** (for example "Miller v. Acme preservation"), a **case reference** (your matter number or internal case ID), a **custodian** (the person or team responsible for the held material), and a free-text **reason** recorded for the audit trail. These fields make the hold self-documenting: anyone reviewing your audit trail later can see why each hold existed, who owned it, and which matter it belonged to.'
|
|
11630
|
+
},
|
|
11631
|
+
{
|
|
11632
|
+
type: "heading",
|
|
11633
|
+
level: 3,
|
|
11634
|
+
id: "applying-a-hold",
|
|
11635
|
+
text: "Applying a hold"
|
|
11636
|
+
},
|
|
11637
|
+
{
|
|
11638
|
+
type: "paragraph",
|
|
11639
|
+
text: "Workspace admins create holds from Settings under Archive or through the API. Choose the scope, fill in the name, case reference, custodian, and reason, and create the hold. It is active immediately. For document-set holds, attach documents at creation or add them later; each attachment takes effect immediately. Applying a hold emits a `hold.applied` audit event recording who created it, when, and its scope. Held documents carry an `on_hold` flag in the document list and API, so you can verify coverage with a filter."
|
|
11640
|
+
},
|
|
11641
|
+
{
|
|
11642
|
+
type: "code",
|
|
11643
|
+
language: "bash",
|
|
11644
|
+
title: "Create a hold and attach documents",
|
|
11645
|
+
code: `# Create a document-set hold (admin only)
|
|
11646
|
+
curl -X POST "$API_URL/records/legal-holds" \\
|
|
11647
|
+
-H "Authorization: Bearer $TOKEN" \\
|
|
11648
|
+
-H "Content-Type: application/json" \\
|
|
11649
|
+
-d '{
|
|
11650
|
+
"name": "Miller v. Acme preservation",
|
|
11651
|
+
"case_reference": "2026-CV-1847",
|
|
11652
|
+
"custodian": "Legal / J. Winters",
|
|
11653
|
+
"reason": "Preservation duty arising from litigation notice dated 2026-07-01",
|
|
11654
|
+
"scope_type": "document_set",
|
|
11655
|
+
"document_ids": ["<doc-id-1>", "<doc-id-2>"]
|
|
11656
|
+
}'
|
|
11657
|
+
|
|
11658
|
+
# Attach more documents as the matter develops
|
|
11659
|
+
curl -X POST "$API_URL/records/legal-holds/$HOLD_ID/documents" \\
|
|
11660
|
+
-H "Authorization: Bearer $TOKEN" \\
|
|
11661
|
+
-H "Content-Type: application/json" \\
|
|
11662
|
+
-d '{"document_ids": ["<doc-id-3>"]}'`
|
|
11663
|
+
},
|
|
11664
|
+
{
|
|
11665
|
+
type: "heading",
|
|
11666
|
+
level: 3,
|
|
11667
|
+
id: "releasing-a-hold",
|
|
11668
|
+
text: "Releasing a hold"
|
|
11669
|
+
},
|
|
11670
|
+
{
|
|
11671
|
+
type: "paragraph",
|
|
11672
|
+
text: "Releasing a hold is deliberately harder than applying one, because release re-enables destruction. A workspace admin initiates the release, and the system requires a **typed confirmation**: you type the hold's exact name to prove the release is intentional, not an accidental click. A release reason is required and recorded, along with who released the hold and when, and a `hold.released` audit event is written. Workspaces that enable the **step-up requirement** additionally demand a fresh TOTP code (the `X-Step-Up-Code` header) on hold release, disposition approval, erasure actions, and tenant export, so possession of a logged-in session alone is not enough for the highest-impact actions. After release, documents protected only by that hold return to their normal lifecycle. If a document's retention period expired while it was held, it is not destroyed automatically: it enters the standard disposition review queue and still requires explicit approval."
|
|
11673
|
+
},
|
|
11674
|
+
{
|
|
11675
|
+
type: "code",
|
|
11676
|
+
language: "bash",
|
|
11677
|
+
title: "Release a hold with typed confirmation",
|
|
11678
|
+
code: `curl -X POST "$API_URL/records/legal-holds/$HOLD_ID/release" \\
|
|
11679
|
+
-H "Authorization: Bearer $TOKEN" \\
|
|
11680
|
+
-H "Content-Type: application/json" \\
|
|
11681
|
+
-d '{
|
|
11682
|
+
"confirm_name": "Miller v. Acme preservation",
|
|
11683
|
+
"reason": "Matter settled; preservation duty ended 2026-07-15"
|
|
11684
|
+
}'
|
|
11685
|
+
# A confirm_name that does not exactly match the hold name is rejected
|
|
11686
|
+
# with a validation error and nothing is released.`
|
|
11687
|
+
},
|
|
11688
|
+
{
|
|
11689
|
+
type: "heading",
|
|
11690
|
+
level: 3,
|
|
11691
|
+
id: "holds-vs-retention",
|
|
11692
|
+
text: "Holds and retention: the hold always wins"
|
|
11693
|
+
},
|
|
11694
|
+
{
|
|
11695
|
+
type: "paragraph",
|
|
11696
|
+
text: "Retention policies and legal holds can point in opposite directions, and the rule is simple: **an active hold always overrides retention expiry.** A document past its `retain_until` date that is covered by a hold is not destroyed and does not leave the system. The retention engine may mark it pending disposition, but the disposition path re-checks holds immediately before destruction and fails closed. The hold does not change the retention clock, and it does not extend retention for its own sake: when the hold is released, the document's retention state is evaluated as it stands, and an already-expired document goes to the disposition review queue."
|
|
11697
|
+
},
|
|
11698
|
+
{
|
|
11699
|
+
type: "param-table",
|
|
11700
|
+
title: "What is blocked while a hold is active",
|
|
11701
|
+
params: [
|
|
11702
|
+
{ name: "User document deletion", type: "UI or API", description: "Refused with an explicit hold error. In archive mode even the soft delete is refused, so a held document does not disappear from listings." },
|
|
11703
|
+
{ name: "Disposition destruction", type: "records workflow", description: "Refused. The document stays in the queue and the failed hold check is recorded." },
|
|
11704
|
+
{ name: "Storage-level file deletion", type: "privileged path", description: "The file store performs its own hold check before deleting blobs and fails closed if the check cannot complete." },
|
|
11705
|
+
{ name: "Workspace deletion", type: "admin operation", description: "Refused entirely while any active hold exists in the workspace." }
|
|
11706
|
+
]
|
|
11707
|
+
},
|
|
11708
|
+
{
|
|
11709
|
+
type: "paragraph",
|
|
11710
|
+
text: "Workspace deletion deserves emphasis: even a request to delete the entire workspace is refused while holds are active, and the refusal is recorded as a `tenant.deletion_blocked_by_hold` audit event. A platform superadmin can override this in exceptional circumstances, but the override requires its own typed confirmation and writes a `hold.override_released` audit event identifying who overrode which hold and why. There is no silent path around a hold."
|
|
11711
|
+
},
|
|
11712
|
+
{
|
|
11713
|
+
type: "callout",
|
|
11714
|
+
variant: "info",
|
|
11715
|
+
text: "Every hold lifecycle event lands in the tamper-evident audit trail: `hold.applied` with scope and case reference, `hold.released` with the release reason, and superadmin overrides as separately recorded `hold.override_released` events. Because audit events are hash-chained and survive document destruction, you can demonstrate after the fact that a hold was in place for a given period and that nothing covered by it was destroyed."
|
|
11716
|
+
},
|
|
11717
|
+
{
|
|
11718
|
+
type: "callout",
|
|
11719
|
+
variant: "warning",
|
|
11720
|
+
text: "**Roadmap, not yet available:** applying a hold directly to a saved search (today, run the search and attach the results as a document set), and automatic custodian notifications when a hold is applied or released."
|
|
11721
|
+
}
|
|
11722
|
+
],
|
|
11723
|
+
related: [
|
|
11724
|
+
{ label: "Archive Overview", slug: "archive-overview" },
|
|
11725
|
+
{ label: "Retention & Deletion", slug: "retention-and-deletion" },
|
|
11726
|
+
{ label: "Audit Trail", slug: "audit-trail" },
|
|
11727
|
+
{ label: "Document Filters", slug: "document-filters" }
|
|
11728
|
+
],
|
|
11729
|
+
faq: [
|
|
11730
|
+
{
|
|
11731
|
+
question: "Can anything delete a document that is under an active legal hold?",
|
|
11732
|
+
answer: "No. Every deletion path checks for active holds and fails closed: user deletion, disposition-driven destruction, storage-level file deletion, administrative cleanup, and full workspace deletion. The only exception is a platform superadmin override of a hold itself, which requires typed confirmation and writes its own audit event. There is no silent path around a hold."
|
|
11733
|
+
},
|
|
11734
|
+
{
|
|
11735
|
+
question: "What happens when a held document passes its retention expiry?",
|
|
11736
|
+
answer: "It stays exactly where it is. The retention engine may mark it pending disposition, but the disposition path re-checks holds immediately before destruction and refuses. When the hold is later released, the already-expired document enters the standard disposition review queue and still requires explicit admin approval before destruction."
|
|
11737
|
+
},
|
|
11738
|
+
{
|
|
11739
|
+
question: "Who can create and release legal holds?",
|
|
11740
|
+
answer: "Workspace admins. Creating a hold takes effect immediately. Releasing one requires typing the hold's exact name as confirmation plus a release reason, and both the release and the reason are recorded in the audit trail. Viewers can see hold status on documents but cannot apply or release holds."
|
|
11741
|
+
},
|
|
11742
|
+
{
|
|
11743
|
+
question: "Can one document be covered by more than one hold?",
|
|
11744
|
+
answer: "Yes. A document can be covered by a tenant-wide hold, a source connection hold, and any number of document-set holds at the same time. It remains protected until every hold covering it is released."
|
|
11745
|
+
}
|
|
11746
|
+
],
|
|
11747
|
+
mentions: [
|
|
11748
|
+
"legal hold",
|
|
11749
|
+
"preservation order",
|
|
11750
|
+
"custodian",
|
|
11751
|
+
"case reference",
|
|
11752
|
+
"fail-closed enforcement",
|
|
11753
|
+
"typed confirmation",
|
|
11754
|
+
"hold release",
|
|
11755
|
+
"superadmin override",
|
|
11756
|
+
"workspace deletion"
|
|
11757
|
+
]
|
|
11758
|
+
},
|
|
11759
|
+
{
|
|
11760
|
+
slug: "audit-trail",
|
|
11761
|
+
parentSlug: "enterprise-archive",
|
|
11762
|
+
title: "Audit Trail",
|
|
11763
|
+
seoTitle: "Tamper-Evident Audit Trail with Hash Chaining \u2014 Talonic Docs",
|
|
11764
|
+
description: "Every access and lifecycle event is recorded server-side in a per-tenant hash chain. Query, filter, export as CSV, and verify chain integrity through the API.",
|
|
11765
|
+
content: [
|
|
11766
|
+
{
|
|
11767
|
+
type: "paragraph",
|
|
11768
|
+
text: "Talonic records every meaningful access and lifecycle event on your documents in a server-side, append-only audit trail. Events are chained together with cryptographic hashes per workspace, so tampering is detectable, and audit history survives the destruction of the records it describes. Audit events are emitted by the server, not the browser: an API call that touches a document produces the same audit event as a click in the UI, so there is no way to read or change a record without leaving a trace."
|
|
11769
|
+
},
|
|
11770
|
+
{
|
|
11771
|
+
type: "param-table",
|
|
11772
|
+
title: "Recorded events",
|
|
11773
|
+
params: [
|
|
11774
|
+
{ name: "document.viewed", type: "access", description: "A document is opened and its content read." },
|
|
11775
|
+
{ name: "document.downloaded", type: "access", description: "A document's original file is downloaded." },
|
|
11776
|
+
{ name: "document.exported", type: "access", description: "A document is exported." },
|
|
11777
|
+
{ name: "document.deleted", type: "lifecycle", description: "A document is deleted (a soft delete when archive mode is on)." },
|
|
11778
|
+
{ name: "document.disposed", type: "lifecycle", description: "Content is destroyed through the disposition workflow." },
|
|
11779
|
+
{ name: "retention.*", type: "records", description: "Policy created, updated, or deleted; assignments added or removed; expiry dates computed (retention.set)." },
|
|
11780
|
+
{ name: "disposition.*", type: "records", description: "Documents entering the review queue (disposition.pending) and approvals (disposition.approved)." },
|
|
11781
|
+
{ name: "hold.*", type: "records", description: "Holds applied, released, and superadmin overrides (hold.applied, hold.released, hold.override_released)." },
|
|
11782
|
+
{ name: "archive.settings_changed", type: "settings", description: "Archive mode, step-up requirement, or storage quota changed." },
|
|
11783
|
+
{ name: "tenant.deletion_blocked_by_hold", type: "enforcement", description: "A workspace deletion refused because active holds exist." },
|
|
11784
|
+
{ name: "fixity.*", type: "integrity", description: "Fixity verification: per-document mismatches (with quarantine), completed verification cycles, and orphan reports." },
|
|
11785
|
+
{ name: "audit.anchored", type: "integrity", description: "A daily chain-head anchor written to external storage." },
|
|
11786
|
+
{ name: "erasure.* / export.*", type: "workflows", description: "Erasure request lifecycle (requested, located, approved, rejected, executed) and tenant export jobs (requested, completed, failed)." },
|
|
11787
|
+
{ name: "compartment.* / scim.* / auth.*", type: "access", description: "Compartment changes, SCIM provisioning and token lifecycle, MFA enrollment and disablement, failed step-up attempts." }
|
|
11788
|
+
]
|
|
11789
|
+
},
|
|
11790
|
+
{
|
|
11791
|
+
type: "paragraph",
|
|
11792
|
+
text: "Each event records when it happened (a server-side timestamp), who acted, what entity the event concerns (type, ID, and a display label), why (a reason field where the action carries one, for example a hold release reason), and request context. Actors are identified by type and identity: `user` (a person, with their user ID and label), `api_key` (a machine integration, with the specific key's identity), `system` (Talonic itself, for example the retention engine), or `superadmin` (platform-level administrative action). API-key attribution matters in practice: when an integration reads or exports documents, the trail shows exactly which key did it, not a generic API entry."
|
|
11793
|
+
},
|
|
11794
|
+
{
|
|
11795
|
+
type: "heading",
|
|
11796
|
+
level: 3,
|
|
11797
|
+
id: "hash-chain",
|
|
11798
|
+
text: "Tamper evidence: the per-workspace hash chain"
|
|
11799
|
+
},
|
|
11800
|
+
{
|
|
11801
|
+
type: "paragraph",
|
|
11802
|
+
text: "Recording events is not enough for an archive; you also need to show they have not been altered after the fact. When an event is written, Talonic computes a SHA-256 fingerprint of the event's contents, and the calculation includes the fingerprint of the previous event in that workspace's log. Each event therefore carries two values: its own `event_hash` and the `prev_hash` of its predecessor. Every event's fingerprint depends on the entire history before it: if anyone edits, deletes, or inserts a past event, verification fails at exactly the first altered event. Events are written in a strictly serialized order per workspace, so the chain is linear and unambiguous."
|
|
11803
|
+
},
|
|
11804
|
+
{
|
|
11805
|
+
type: "paragraph",
|
|
11806
|
+
text: "What this gives you: the ability to demonstrate to an auditor that the log you present is the log that was written, in the order it was written. What it does not do: it is not access control (that is handled separately by tenant isolation and roles). Tamper evidence makes alteration detectable, not impossible. Verification is self-serve: the verify endpoint walks the chain from the start and reports either a fully valid chain or the exact first broken event."
|
|
11807
|
+
},
|
|
11808
|
+
{
|
|
11809
|
+
type: "paragraph",
|
|
11810
|
+
text: "An in-database chain alone has a known limit: an attacker with full database write access could rewrite an entire chain consistently. To close that gap, Talonic **anchors** each workspace's chain daily: a small record containing the latest event ID and the chain head hash (linked to the previous anchor) is written to external object storage, outside the database. Verification then checks both directions: the chain walk catches an inconsistent tamper, and the anchor cross-check catches a consistent full-chain rewrite, because a rewritten chain no longer matches the anchored heads. Today anchors are stored in the encrypted, versioned object store with application-level write-once protection; anchoring to storage-level WORM (S3 Object Lock) follows the archive storage rollout and is on the roadmap."
|
|
11811
|
+
},
|
|
11812
|
+
{
|
|
11813
|
+
type: "code",
|
|
11814
|
+
language: "bash",
|
|
11815
|
+
title: "Verify chain integrity and anchors",
|
|
11816
|
+
code: 'curl "$API_URL/records/audit-events/verify" \\\n -H "Authorization: Bearer $TOKEN"'
|
|
11817
|
+
},
|
|
11818
|
+
{
|
|
11819
|
+
type: "code",
|
|
11820
|
+
language: "json",
|
|
11821
|
+
title: "Response",
|
|
11822
|
+
code: '{\n "valid": true,\n "checked": 48210,\n "anchors_checked": 31\n}'
|
|
11823
|
+
},
|
|
11824
|
+
{
|
|
11825
|
+
type: "heading",
|
|
11826
|
+
level: 3,
|
|
11827
|
+
id: "audit-outlives-records",
|
|
11828
|
+
text: "Audit data outlives the records"
|
|
11829
|
+
},
|
|
11830
|
+
{
|
|
11831
|
+
type: "paragraph",
|
|
11832
|
+
text: "Audit events do not belong to the documents they describe. They reference their subject by type and ID without a database dependency, so deleting a document never deletes its audit history. When a document's content is destroyed through disposition, a tombstone remains: the document row survives with its content hash and audit linkage intact. The complete audit history of a destroyed record therefore remains queryable: every view, every download, the retention policy that governed it, the approval that authorized destruction, and the disposition certificate. The story of a record does not end when its content does."
|
|
11833
|
+
},
|
|
11834
|
+
{
|
|
11835
|
+
type: "heading",
|
|
11836
|
+
level: 3,
|
|
11837
|
+
id: "querying-exporting",
|
|
11838
|
+
text: "Querying, filtering, and exporting"
|
|
11839
|
+
},
|
|
11840
|
+
{
|
|
11841
|
+
type: "paragraph",
|
|
11842
|
+
text: "Workspace admins can query the audit trail in the UI and through the API, filtered by time range, action, actor, and entity. Common questions the log answers directly: who has accessed this document, ever? What did this API key touch last month? What was destroyed in this period, and who approved each destruction? Which holds were active during the relevant window? The filtered result set can be exported as CSV for auditors, legal teams, or your own scheduled retention of audit extracts, so you can also pull audit data into a SIEM on a schedule."
|
|
11843
|
+
},
|
|
11844
|
+
{
|
|
11845
|
+
type: "code",
|
|
11846
|
+
language: "bash",
|
|
11847
|
+
title: "Query and export audit events",
|
|
11848
|
+
code: '# Everything a specific API key downloaded in June (admin only)\ncurl "$API_URL/records/audit-events?action=document.downloaded&actor=<api-key-id>&from=2026-06-01&to=2026-07-01" \\\n -H "Authorization: Bearer $TOKEN"\n\n# Full history of one document, including after destruction\ncurl "$API_URL/records/audit-events?entity_type=document&entity_id=$DOCUMENT_ID" \\\n -H "Authorization: Bearer $TOKEN"\n\n# Export the same filters as CSV\ncurl "$API_URL/records/audit-events/export?from=2026-01-01&to=2026-04-01" \\\n -H "Authorization: Bearer $TOKEN" -o audit-q1.csv'
|
|
11849
|
+
},
|
|
11850
|
+
{
|
|
11851
|
+
type: "callout",
|
|
11852
|
+
variant: "info",
|
|
11853
|
+
text: "Audit querying, export, and chain verification are available to workspace admins. Viewers do not have access to the workspace-wide audit log. Audit emission never blocks the operation it records: events are written asynchronously so a logging failure cannot make a document read fail."
|
|
11854
|
+
},
|
|
11855
|
+
{
|
|
11856
|
+
type: "callout",
|
|
11857
|
+
variant: "warning",
|
|
11858
|
+
text: "**Roadmap, not yet available:** chain anchors on storage-level WORM (today anchors land in the encrypted, versioned object store with application-level write-once protection, not on S3 Object Lock), permission-change events as first-class audit events, qualified timestamps on audit events, and streaming delivery to external SIEM systems (today, use scheduled CSV export via the API)."
|
|
11859
|
+
}
|
|
11860
|
+
],
|
|
11861
|
+
related: [
|
|
11862
|
+
{ label: "Archive Overview", slug: "archive-overview" },
|
|
11863
|
+
{ label: "Retention & Deletion", slug: "retention-and-deletion" },
|
|
11864
|
+
{ label: "Legal Holds", slug: "legal-holds" },
|
|
11865
|
+
{ label: "API Keys", slug: "api-keys" }
|
|
11866
|
+
],
|
|
11867
|
+
faq: [
|
|
11868
|
+
{
|
|
11869
|
+
question: "How does Talonic detect tampering with the audit log?",
|
|
11870
|
+
answer: "Each event carries a SHA-256 hash of its own contents combined with the hash of the previous event in the workspace, forming a per-workspace hash chain. Editing, deleting, or inserting a past event breaks every hash from that point forward, and the verify endpoint reports the exact first broken event. Events are written in strictly serialized order per workspace, so the chain is linear."
|
|
11871
|
+
},
|
|
11872
|
+
{
|
|
11873
|
+
question: "Does deleting a document delete its audit history?",
|
|
11874
|
+
answer: "No. Audit events reference their subject by type and ID without a database dependency on the document row, so no deletion cascades into the log. After disposition, the document's tombstone plus its complete audit history remain queryable: every access, the governing retention policy, the destruction approval, and the certificate."
|
|
11875
|
+
},
|
|
11876
|
+
{
|
|
11877
|
+
question: "Are API and integration accesses audited the same way as UI actions?",
|
|
11878
|
+
answer: "Yes. Events are emitted server-side, so a raw API call produces the same audit event as a UI click. API-key actors are recorded with the specific key's identity and label, giving you per-integration accountability if you scope keys per integration."
|
|
11879
|
+
},
|
|
11880
|
+
{
|
|
11881
|
+
question: "Can I export audit data for an external auditor or SIEM?",
|
|
11882
|
+
answer: "Yes. The audit-events endpoint supports time, action, actor, and entity filters, and the export endpoint streams the same filtered result set as CSV. Streaming delivery to SIEM systems is on the roadmap; today, scheduled export via the API is the supported pattern."
|
|
11883
|
+
}
|
|
11884
|
+
],
|
|
11885
|
+
mentions: [
|
|
11886
|
+
"audit trail",
|
|
11887
|
+
"hash chain",
|
|
11888
|
+
"tamper evidence",
|
|
11889
|
+
"SHA-256",
|
|
11890
|
+
"append-only log",
|
|
11891
|
+
"actor attribution",
|
|
11892
|
+
"API key accountability",
|
|
11893
|
+
"chain verification",
|
|
11894
|
+
"CSV export",
|
|
11895
|
+
"tombstone"
|
|
11896
|
+
]
|
|
11897
|
+
},
|
|
11898
|
+
{
|
|
11899
|
+
slug: "security-architecture",
|
|
11900
|
+
parentSlug: "enterprise-archive",
|
|
11901
|
+
title: "Security Architecture",
|
|
11902
|
+
seoTitle: "Archive Security Architecture: Fixity, Hash Chain, Anchoring \u2014 Talonic Docs",
|
|
11903
|
+
description: "How the archive protects content: SHA-256 fixity cycles, a hash-chained and anchored audit trail, write-once encrypted storage, compartments, MFA and step-up, SCIM, erasure, export, and disaster recovery. Mechanisms with honest status.",
|
|
11904
|
+
content: [
|
|
11905
|
+
{
|
|
11906
|
+
type: "paragraph",
|
|
11907
|
+
text: "This page describes the security mechanisms behind the archive promises: what protects stored content, how tampering is detected, who can see and do what, and what happens in a disaster. Every claim here names its mechanism, and anything that is not yet deployed is labeled as roadmap rather than implied. Talonic does not currently hold formal certifications; a control-by-control mapping against SOC 2 TSC and ISO 27001:2022 Annex A is maintained alongside the codebase and is available on request."
|
|
11908
|
+
},
|
|
11909
|
+
{
|
|
11910
|
+
type: "heading",
|
|
11911
|
+
level: 3,
|
|
11912
|
+
id: "sa-content-integrity",
|
|
11913
|
+
text: "Content integrity: fixity at ingest and on schedule"
|
|
11914
|
+
},
|
|
11915
|
+
{
|
|
11916
|
+
type: "paragraph",
|
|
11917
|
+
text: "Every document is hashed (SHA-256 over the original bytes) at ingest, and the hash is persisted with the document. Integrity is then continuously re-proven, not assumed: a daily verification cycle streams stored content back out of object storage, recomputes the hash, and compares it against the ingest-time value. The batch size adapts so the entire corpus is re-verified within a configurable window (30 days by default), least-recently-checked documents first, and documents uploaded through presigned URLs get a priority first check. A mismatch quarantines the document (it is flagged, not silently served), writes a check record, and lands in the audit trail; every completed cycle is also recorded. A weekly sweep reconciles the blob store against database references in both directions and reports orphans."
|
|
11918
|
+
},
|
|
11919
|
+
{
|
|
11920
|
+
type: "code",
|
|
11921
|
+
language: "bash",
|
|
11922
|
+
title: "Inspect fixity state (admin only)",
|
|
11923
|
+
code: `# Recent checks, mismatches first
|
|
11924
|
+
curl "$API_URL/records/fixity-checks?status=mismatch" \\
|
|
11925
|
+
-H "Authorization: Bearer $TOKEN"
|
|
11926
|
+
|
|
11927
|
+
# On-demand check of one document
|
|
11928
|
+
curl -X POST "$API_URL/records/fixity-checks/run" \\
|
|
11929
|
+
-H "Authorization: Bearer $TOKEN" \\
|
|
11930
|
+
-H "Content-Type: application/json" \\
|
|
11931
|
+
-d '{"document_id": "<doc-id>"}'`
|
|
11932
|
+
},
|
|
11933
|
+
{
|
|
11934
|
+
type: "heading",
|
|
11935
|
+
level: 3,
|
|
11936
|
+
id: "sa-chain-anchoring",
|
|
11937
|
+
text: "Tamper evidence: hash chain plus external anchors"
|
|
11938
|
+
},
|
|
11939
|
+
{
|
|
11940
|
+
type: "paragraph",
|
|
11941
|
+
text: "The audit trail is a per-workspace hash chain: each event carries a SHA-256 fingerprint of its contents combined with the previous event's fingerprint, written in strictly serialized order. The chain alone makes any in-place edit, deletion, or insertion detectable at the exact first altered event. Its known limit is an attacker with full database write access, who could rewrite an entire chain consistently. That is what anchoring addresses: every day, each workspace's chain head (latest event ID plus head hash, linked to the previous anchor) is written to external object storage, outside the database. Verification cross-checks every stored anchor against the live chain, so a consistent rewrite no longer verifies. Anchors currently land in the encrypted, versioned object store with application-level write-once protection; anchoring to storage-level WORM follows the archive storage rollout."
|
|
11942
|
+
},
|
|
11943
|
+
{
|
|
11944
|
+
type: "heading",
|
|
11945
|
+
level: 3,
|
|
11946
|
+
id: "sa-storage-protection",
|
|
11947
|
+
text: "Storage protection: write-once, encrypted, versioned"
|
|
11948
|
+
},
|
|
11949
|
+
{
|
|
11950
|
+
type: "list",
|
|
11951
|
+
ordered: false,
|
|
11952
|
+
items: [
|
|
11953
|
+
"**Application-level write-once.** Canonical storage keys are written with an existence guard: an attempt to overwrite a stored object is rejected with a conflict error. There is no code path that legitimately rewrites stored bytes.",
|
|
11954
|
+
"**Server-side encryption on every write.** Every object put carries server-side encryption. Deployments configured with a customer-managed KMS key encrypt under that key; otherwise AES-256 managed encryption applies.",
|
|
11955
|
+
"**Reasoned, hold-checked deletion.** Storage-level delete endpoints require an explicit recorded reason and pass the fail-closed legal hold check before removing anything.",
|
|
11956
|
+
"**Versioning and infrastructure protection.** Production buckets are versioned (deleted or overwritten objects are recoverable from prior versions) and protected against bucket deletion at the infrastructure level.",
|
|
11957
|
+
"**Storage-level WORM: roadmap.** S3 Object Lock (governance mode, per-object retention driven by the record's retention date) plus cross-region replication with a 15 minute replication SLA exist as validated infrastructure templates. The archive bucket is not deployed and no Object Lock claim applies to the current release."
|
|
11958
|
+
]
|
|
11959
|
+
},
|
|
11960
|
+
{
|
|
11961
|
+
type: "heading",
|
|
11962
|
+
level: 3,
|
|
11963
|
+
id: "sa-access-control",
|
|
11964
|
+
text: "Access control: isolation, roles, compartments, MFA"
|
|
11965
|
+
},
|
|
11966
|
+
{
|
|
11967
|
+
type: "paragraph",
|
|
11968
|
+
text: "Access is layered. Workspace isolation scopes every query to the tenant. Role-based access control fails closed: a route that mutates state is denied unless it is explicitly opened to a role tier, so a forgotten permission check results in denial, not exposure. **Compartments** add need-to-know inside a workspace: named user groups are bound to sources, document types, or individual documents, and restricted members and viewers see only uncompartmented documents plus their own compartments, enforced through a single SQL predicate applied at every document query path (list, detail, file access, export, and the AI agent's search). Owners and workspaces without compartments are unaffected."
|
|
11969
|
+
},
|
|
11970
|
+
{
|
|
11971
|
+
type: "paragraph",
|
|
11972
|
+
text: "Authentication supports **TOTP multi-factor authentication** (standard authenticator apps; the secret is encrypted at rest, and login becomes a two-phase exchange once MFA is confirmed). Workspaces can additionally require **step-up verification**: with the setting on, the highest-impact archive actions (hold release, disposition approval, erasure scoping and execution, tenant export, and the superadmin hold override) demand a fresh TOTP code in the `X-Step-Up-Code` header, so a hijacked session alone cannot destroy or exfiltrate records. Failed step-up attempts are audited. User lifecycle can be driven by your identity provider through **SCIM 2.0**: users are provisioned and deprovisioned by the IdP, deprovisioning blocks the next request at the membership gate, group sync maps to org roles or compartments, and SCIM tokens are shown once and stored only as hashes."
|
|
11973
|
+
},
|
|
11974
|
+
{
|
|
11975
|
+
type: "heading",
|
|
11976
|
+
level: 3,
|
|
11977
|
+
id: "sa-erasure-export-dr",
|
|
11978
|
+
text: "Erasure, export, and disaster recovery"
|
|
11979
|
+
},
|
|
11980
|
+
{
|
|
11981
|
+
type: "paragraph",
|
|
11982
|
+
text: "GDPR erasure requests run through a locate, scope, approve, execute workflow with per-document redact or destroy modes; retention duties and legal holds block destruction and are reported as certificate exemptions rather than silently skipped. Full-workspace data comes back as a verifiable export bundle with a per-file SHA-256 manifest (see **Export Bundle Format**). For disaster recovery: the database has continuous backup with point-in-time recovery, storage is versioned, and a finalized restore procedure with a quarterly drill checklist exists. The committed recovery objectives are 15 minutes for storage, 5 minutes for the database, and 4 hours to full service; a quarterly restore drill validates them against measured wall-clock times."
|
|
11983
|
+
},
|
|
11984
|
+
{
|
|
11985
|
+
type: "callout",
|
|
11986
|
+
variant: "warning",
|
|
11987
|
+
text: "**Honest status summary.** Shipped and active: fixity cycles, chain anchoring, application-level write-once with server-side encryption, compartments, MFA and step-up, SCIM, erasure, tenant export. Designed but not deployed: S3 Object Lock, cross-region replication, replication alarms, KMS customer-managed keys as the default. Not built: qualified timestamps (eIDAS). Certifications: none held; control mapping maintained in-repo."
|
|
11988
|
+
}
|
|
11989
|
+
],
|
|
11990
|
+
related: [
|
|
11991
|
+
{ label: "Archive Overview", slug: "archive-overview" },
|
|
11992
|
+
{ label: "Audit Trail", slug: "audit-trail" },
|
|
11993
|
+
{ label: "Export Bundle Format", slug: "export-bundle-format" },
|
|
11994
|
+
{ label: "Team Management", slug: "team-management" }
|
|
11995
|
+
],
|
|
11996
|
+
faq: [
|
|
11997
|
+
{
|
|
11998
|
+
question: "How does Talonic prove stored documents have not been corrupted or altered?",
|
|
11999
|
+
answer: "Every document is hashed with SHA-256 at ingest, and a daily fixity cycle re-reads stored content and re-verifies the hash, covering the whole corpus within a configurable window. A mismatch quarantines the document and is recorded in the audit trail. Admins can also trigger an on-demand check for any single document."
|
|
12000
|
+
},
|
|
12001
|
+
{
|
|
12002
|
+
question: "What stops an attacker with database access from rewriting the audit trail?",
|
|
12003
|
+
answer: "The chain hash makes inconsistent edits detectable, and daily anchors close the consistent-rewrite gap: each workspace's chain head is written to external object storage every day, and verification cross-checks every anchor against the live chain. A rewritten chain no longer matches its anchors."
|
|
12004
|
+
},
|
|
12005
|
+
{
|
|
12006
|
+
question: "Is data encrypted, and who holds the keys?",
|
|
12007
|
+
answer: "Every object write carries server-side encryption (AES-256 managed keys by default). Deployments configured with a customer-managed KMS key encrypt under that key; the dedicated-key infrastructure is templated for archive deployments and applies once the archive storage stack is deployed."
|
|
12008
|
+
},
|
|
12009
|
+
{
|
|
12010
|
+
question: "Can I restrict which documents specific team members see?",
|
|
12011
|
+
answer: "Yes. Compartments bind named user groups to sources, document types, or individual documents. Restricted members and viewers see only uncompartmented documents plus the compartments they belong to, enforced in every document query path including the AI agent. Owners always see everything, and workspaces that never configure compartments behave exactly as before."
|
|
12012
|
+
}
|
|
12013
|
+
],
|
|
12014
|
+
mentions: [
|
|
12015
|
+
"security architecture",
|
|
12016
|
+
"fixity verification",
|
|
12017
|
+
"hash chain anchoring",
|
|
12018
|
+
"write-once storage",
|
|
12019
|
+
"server-side encryption",
|
|
12020
|
+
"access compartments",
|
|
12021
|
+
"multi-factor authentication",
|
|
12022
|
+
"step-up verification",
|
|
12023
|
+
"SCIM provisioning",
|
|
12024
|
+
"disaster recovery"
|
|
12025
|
+
]
|
|
12026
|
+
},
|
|
12027
|
+
{
|
|
12028
|
+
slug: "export-bundle-format",
|
|
12029
|
+
parentSlug: "enterprise-archive",
|
|
12030
|
+
title: "Export Bundle Format",
|
|
12031
|
+
seoTitle: "Tenant Export Bundle Format v1 (BagIt-style) \u2014 Talonic Docs",
|
|
12032
|
+
description: "The full-workspace export bundle: originals, markdown, values with provenance, the audit log, a per-file SHA-256 manifest, and bag-info metadata. Format version 1 specification.",
|
|
12033
|
+
content: [
|
|
12034
|
+
{
|
|
12035
|
+
type: "paragraph",
|
|
12036
|
+
text: "The tenant export produces a single zip bundle containing everything a workspace holds: original files, extracted content, structured values with provenance, and the complete audit log, each entry hashed into a manifest so the receiver can verify the bundle file by file. The layout follows the spirit of the BagIt packaging convention: payload directories plus a top-level checksum manifest and a bag-info metadata file. The format is versioned; this page specifies **format version 1**."
|
|
12037
|
+
},
|
|
12038
|
+
{
|
|
12039
|
+
type: "param-table",
|
|
12040
|
+
title: "Bundle layout (v1)",
|
|
12041
|
+
params: [
|
|
12042
|
+
{ name: "/originals/<docid>-<filename>", type: "payload", description: "The original ingested bytes of each document, named by document ID plus a sanitized filename." },
|
|
12043
|
+
{ name: "/markdown/<docid>.md", type: "payload", description: "The extracted markdown of each document that has one." },
|
|
12044
|
+
{ name: "/values/<docid>.jsonl", type: "payload", description: "One JSON object per line per stored value cell: the latest value-plane cells with provenance for that document." },
|
|
12045
|
+
{ name: "/audit/audit-events.csv", type: "payload", description: "The workspace audit log as CSV (capped at 50,000 rows in v1)." },
|
|
12046
|
+
{ name: "/bag-info.json", type: "metadata", description: "Bundle metadata: format version, workspace, generation time, and per-payload counts." },
|
|
12047
|
+
{ name: "/manifest-sha256.txt", type: "manifest", description: "One line per bundle entry: the SHA-256 hex digest, two spaces, the entry path. The manifest itself is the last file added and is not self-referential." }
|
|
12048
|
+
]
|
|
12049
|
+
},
|
|
12050
|
+
{
|
|
12051
|
+
type: "code",
|
|
12052
|
+
language: "json",
|
|
12053
|
+
title: "bag-info.json (v1 fields)",
|
|
12054
|
+
code: '{\n "export_format_version": 1,\n "tenant": "<workspace-id>",\n "generated_at": "2026-07-18T04:12:09.331Z",\n "counts": {\n "documents": 3465,\n "originals": 3465,\n "missing_originals": 0,\n "markdown": 3441,\n "values": 3390,\n "audit_events": 48210\n }\n}'
|
|
12055
|
+
},
|
|
12056
|
+
{
|
|
12057
|
+
type: "paragraph",
|
|
12058
|
+
text: "Each line of a `/values/<docid>.jsonl` file is one value cell with its provenance: `record_set_id`, `layer`, `record_id`, `field_key`, `data_type`, the typed `value`, `normalized_value`, `confidence`, `status`, `source`, `audit_ref`, `cell_version`, and `created_at`. This gives the receiving system not just the data but where each value stands in the processing lifecycle and which audit reference produced it."
|
|
12059
|
+
},
|
|
12060
|
+
{
|
|
12061
|
+
type: "code",
|
|
12062
|
+
language: "bash",
|
|
12063
|
+
title: "Request, poll, and download a bundle (admin only; step-up if enabled)",
|
|
12064
|
+
code: '# Enqueue the export (returns the job row)\ncurl -X POST "$API_URL/records/tenant-export" \\\n -H "Authorization: Bearer $TOKEN" \\\n -H "X-Step-Up-Code: 123456"\n\n# Poll until status is completed\ncurl "$API_URL/records/tenant-export/$JOB_ID" \\\n -H "Authorization: Bearer $TOKEN"\n# \u2192 { "status": "completed", "download_url": ".../records/tenant-export/<id>/download",\n# "manifest": { "bag_info": { ... }, "bundle_sha256": "\u2026", "bundle_bytes": 1287340032, "entry_count": 10344 } }\n\n# Stream the zip\ncurl -L "$API_URL/records/tenant-export/$JOB_ID/download" \\\n -H "Authorization: Bearer $TOKEN" -o export.zip'
|
|
12065
|
+
},
|
|
12066
|
+
{
|
|
12067
|
+
type: "code",
|
|
12068
|
+
language: "bash",
|
|
12069
|
+
title: "Verify a received bundle",
|
|
12070
|
+
code: "unzip -q export.zip -d export/\ncd export/\n# Verify every entry against the manifest (GNU coreutils)\nsha256sum -c manifest-sha256.txt\n# The job status also reports bundle_sha256 over the whole zip:\nsha256sum ../export.zip"
|
|
12071
|
+
},
|
|
12072
|
+
{
|
|
12073
|
+
type: "paragraph",
|
|
12074
|
+
text: "Bundles are built asynchronously on the worker fleet and stored server-side; the download streams through the authenticated API (there is no unauthenticated or presigned link). The job status carries the bundle's own SHA-256 and byte size, so the transfer itself is verifiable end to end: verify the zip hash first, then the per-entry manifest inside. Failed jobs stay failed and are re-requested explicitly; a partial bundle is never silently rebuilt over."
|
|
12075
|
+
},
|
|
12076
|
+
{
|
|
12077
|
+
type: "callout",
|
|
12078
|
+
variant: "info",
|
|
12079
|
+
text: 'Export is admin-only and honors the workspace step-up requirement (a fresh TOTP code) when enabled. A bundle covers up to a configured document ceiling (50,000 by default); a corpus above the ceiling fails the job loudly instead of shipping a silently partial "full" export. Format version 1 is frozen: additive fields may appear in bag-info counts, but the layout and manifest format only change with a new export_format_version.'
|
|
12080
|
+
}
|
|
12081
|
+
],
|
|
12082
|
+
related: [
|
|
12083
|
+
{ label: "Security Architecture", slug: "security-architecture" },
|
|
12084
|
+
{ label: "Archive Overview", slug: "archive-overview" },
|
|
12085
|
+
{ label: "Audit Trail", slug: "audit-trail" },
|
|
12086
|
+
{ label: "Retention & Deletion", slug: "retention-and-deletion" }
|
|
12087
|
+
],
|
|
12088
|
+
faq: [
|
|
12089
|
+
{
|
|
12090
|
+
question: "How do I verify an export bundle is complete and untampered?",
|
|
12091
|
+
answer: "Two layers: the job status reports the SHA-256 and byte size of the whole zip, and inside the bundle manifest-sha256.txt lists the SHA-256 of every entry. Verify the zip hash after transfer, then run sha256sum -c manifest-sha256.txt against the unpacked contents."
|
|
12092
|
+
},
|
|
12093
|
+
{
|
|
12094
|
+
question: "What exactly is included in a tenant export?",
|
|
12095
|
+
answer: "Original files byte-for-byte, extracted markdown, the latest structured values with per-cell provenance as JSONL, and the workspace audit log as CSV, plus bag-info.json metadata and the checksum manifest. Deleted documents' tombstones appear through the audit log rather than as payload files."
|
|
12096
|
+
},
|
|
12097
|
+
{
|
|
12098
|
+
question: "Is the export format stable enough to build ingestion tooling against?",
|
|
12099
|
+
answer: "Yes. The bundle carries export_format_version (currently 1) in bag-info.json. The v1 layout, entry naming, JSONL fields, and manifest format are frozen; incompatible changes will increment the version rather than silently change the shape."
|
|
12100
|
+
},
|
|
12101
|
+
{
|
|
12102
|
+
question: "Who can request an export, and is it protected against session hijacking?",
|
|
12103
|
+
answer: "Workspace admins only, and workspaces with the step-up requirement enabled additionally demand a fresh TOTP code on the request. Every export request, completion, and failure is recorded in the audit trail, and the download itself requires an authenticated API call."
|
|
12104
|
+
}
|
|
12105
|
+
],
|
|
12106
|
+
mentions: [
|
|
12107
|
+
"tenant export",
|
|
12108
|
+
"export bundle",
|
|
12109
|
+
"BagIt",
|
|
12110
|
+
"SHA-256 manifest",
|
|
12111
|
+
"bag-info.json",
|
|
12112
|
+
"JSONL values",
|
|
12113
|
+
"provenance",
|
|
12114
|
+
"data portability",
|
|
12115
|
+
"audit log export",
|
|
12116
|
+
"format version 1"
|
|
12117
|
+
]
|
|
12118
|
+
}
|
|
12119
|
+
];
|
|
12120
|
+
|
|
12121
|
+
// src/content/api/overview.ts
|
|
12122
|
+
var sections20 = [
|
|
11177
12123
|
{
|
|
11178
12124
|
slug: "introduction",
|
|
11179
12125
|
parentSlug: "overview",
|
|
@@ -11309,6 +12255,17 @@ var sections19 = [
|
|
|
11309
12255
|
"limit": 50
|
|
11310
12256
|
}'` },
|
|
11311
12257
|
{ type: "paragraph", text: "Returns all documents matching your filter \u2014 no re-extraction, no AI cost. Ingest once, query forever." },
|
|
12258
|
+
{ type: "heading", level: 2, id: "quick-start-ask", text: "Ask your first question" },
|
|
12259
|
+
{ type: "paragraph", text: "Once documents are ingested, you can skip filters and schemas entirely and just ask. `POST /v1/ask` runs a read-only agent turn over your whole corpus and returns a markdown answer with a citation for every claim, plus a verification verdict. Submit the question, then poll the returned `poll_url` about every 2 seconds; answers take 10 to 60 seconds. One question costs a flat 100 credits (0.10 EUR)." },
|
|
12260
|
+
{ type: "code", language: "bash", title: "curl: ask a question, then poll for the answer", code: `ASK_ID=$(curl -s -X POST https://api.talonic.com/v1/ask \\
|
|
12261
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
12262
|
+
-H "Content-Type: application/json" \\
|
|
12263
|
+
-d '{"question": "Which vendors invoiced us more than once, and for how much in total?"}' \\
|
|
12264
|
+
| jq -r '.ask_id')
|
|
12265
|
+
|
|
12266
|
+
curl -s https://api.talonic.com/v1/ask/$ASK_ID \\
|
|
12267
|
+
-H "Authorization: Bearer $TALONIC_API_KEY"` },
|
|
12268
|
+
{ type: "paragraph", text: "On deployments where self-serve signup is enabled, you do not even need a dashboard to reach this point: `POST /v1/auth/register` with your email sends a magic link, and confirming it returns a scoped `tlnc_` API key plus a seeded workspace with two example documents (a Northwind invoice and an Acme/Globex master services agreement), so your first `POST /v1/ask` works within a minute of registering. See [Ask Your Documents](post-ask) for the full contract." },
|
|
11312
12269
|
{ type: "callout", text: "Documents of 5 pages or fewer return synchronously (`200` with data). Larger documents return `202 Accepted` with a `poll_url` \u2014 poll `GET /v1/documents/:id` until `status` is `completed`, then fetch results from `GET /v1/documents/:id/extractions`. See [Processing Modes](extract-processing-mode)." },
|
|
11313
12270
|
{ type: "heading", level: 2, id: "cost-transparency", text: "Cost on every call" },
|
|
11314
12271
|
{ type: "paragraph", text: "Every synchronous extraction response includes cost headers so you can track spend per call:" },
|
|
@@ -11352,6 +12309,7 @@ X-Talonic-Cells-Resolved-AI: 5` },
|
|
|
11352
12309
|
}` },
|
|
11353
12310
|
{ type: "heading", level: 3, id: "next-steps", text: "Next steps" },
|
|
11354
12311
|
{ type: "list", items: [
|
|
12312
|
+
"**Ask your documents**: one flat-priced question over the whole corpus with cited, verified answers via `POST /v1/ask`. See [Ask Your Documents](post-ask).",
|
|
11355
12313
|
"**Reuse schemas** \u2014 save your schema with `POST /v1/schemas`, then pass `schema_id` on future extractions.",
|
|
11356
12314
|
"**Large documents** \u2014 files >5 pages return `202 Accepted` with a `poll_url`. See [Processing Modes](extract-processing-mode).",
|
|
11357
12315
|
"**Webhooks** \u2014 receive results via `extraction.complete` events instead of polling. See [Webhook Events](webhook-events).",
|
|
@@ -11361,12 +12319,14 @@ X-Talonic-Cells-Resolved-AI: 5` },
|
|
|
11361
12319
|
],
|
|
11362
12320
|
related: [
|
|
11363
12321
|
{ label: "POST /v1/extract", slug: "post-extract" },
|
|
12322
|
+
{ label: "Ask Your Documents", slug: "post-ask" },
|
|
11364
12323
|
{ label: "Filter Documents", slug: "filter-documents" },
|
|
11365
12324
|
{ label: "Schema Formats", slug: "extract-schemas" },
|
|
11366
12325
|
{ label: "Processing Modes", slug: "extract-processing-mode" }
|
|
11367
12326
|
],
|
|
11368
12327
|
faq: [
|
|
11369
|
-
{ question: "How do I get started with the Talonic API?", answer: "Three modes: (1) send a file with no schema for auto-detect, (2) send a file with a schema for exact extraction, (3) POST /v1/documents/filter to query already-ingested data. All you need is an API key from Settings \u2192 API Keys." },
|
|
12328
|
+
{ question: "How do I get started with the Talonic API?", answer: "Three modes: (1) send a file with no schema for auto-detect, (2) send a file with a schema for exact extraction, (3) POST /v1/documents/filter to query already-ingested data. All you need is an API key from Settings \u2192 API Keys. Once documents are in, POST /v1/ask answers natural-language questions over the whole corpus with cited, verified answers." },
|
|
12329
|
+
{ question: "Can I get an API key without a dashboard?", answer: "On deployments where self-serve signup is enabled, yes: POST /v1/auth/register with your email sends a magic link, and confirming it returns a scoped tlnc_ key plus a seeded example workspace, so you can make your first extract and ask calls within a minute." },
|
|
11370
12330
|
{ question: "Do I need to create a schema first?", answer: "No. Mode 1 auto-detects all fields. Mode 2 accepts an inline schema. Save it with POST /v1/schemas later for reuse." },
|
|
11371
12331
|
{ question: "Can I query previously extracted data without re-extracting?", answer: "Yes. POST /v1/documents/filter lets you search across all previously extracted documents by field values. No AI cost \u2014 ingest once, query forever." }
|
|
11372
12332
|
],
|
|
@@ -11528,7 +12488,7 @@ curl -X POST https://api.talonic.com/v1/extract \\
|
|
|
11528
12488
|
];
|
|
11529
12489
|
|
|
11530
12490
|
// src/content/api/extract.ts
|
|
11531
|
-
var
|
|
12491
|
+
var sections21 = [
|
|
11532
12492
|
{
|
|
11533
12493
|
slug: "post-extract",
|
|
11534
12494
|
parentSlug: "extract",
|
|
@@ -12112,7 +13072,7 @@ curl https://api.talonic.com/v1/documents/c3d4e5f6-a7b8-9012-cdef-123456789012/e
|
|
|
12112
13072
|
];
|
|
12113
13073
|
|
|
12114
13074
|
// src/content/api/documents.ts
|
|
12115
|
-
var
|
|
13075
|
+
var sections22 = [
|
|
12116
13076
|
{
|
|
12117
13077
|
slug: "list-documents",
|
|
12118
13078
|
parentSlug: "documents",
|
|
@@ -12793,7 +13753,7 @@ var sections21 = [
|
|
|
12793
13753
|
];
|
|
12794
13754
|
|
|
12795
13755
|
// src/content/api/extractions.ts
|
|
12796
|
-
var
|
|
13756
|
+
var sections23 = [
|
|
12797
13757
|
{
|
|
12798
13758
|
slug: "list-extractions",
|
|
12799
13759
|
parentSlug: "extractions",
|
|
@@ -13263,7 +14223,7 @@ curl -s "https://api.talonic.com/v1/extractions/a1b2c3d4-e5f6-7890-abcd-ef123456
|
|
|
13263
14223
|
];
|
|
13264
14224
|
|
|
13265
14225
|
// src/content/api/schemas.ts
|
|
13266
|
-
var
|
|
14226
|
+
var sections24 = [
|
|
13267
14227
|
{
|
|
13268
14228
|
slug: "list-schemas",
|
|
13269
14229
|
parentSlug: "schemas",
|
|
@@ -13821,7 +14781,7 @@ var sections23 = [
|
|
|
13821
14781
|
];
|
|
13822
14782
|
|
|
13823
14783
|
// src/content/api/jobs.ts
|
|
13824
|
-
var
|
|
14784
|
+
var sections25 = [
|
|
13825
14785
|
{
|
|
13826
14786
|
slug: "list-jobs",
|
|
13827
14787
|
parentSlug: "jobs",
|
|
@@ -14353,7 +15313,7 @@ var sections24 = [
|
|
|
14353
15313
|
];
|
|
14354
15314
|
|
|
14355
15315
|
// src/content/api/sources.ts
|
|
14356
|
-
var
|
|
15316
|
+
var sections26 = [
|
|
14357
15317
|
{
|
|
14358
15318
|
slug: "list-sources",
|
|
14359
15319
|
parentSlug: "sources",
|
|
@@ -14977,7 +15937,7 @@ var sections25 = [
|
|
|
14977
15937
|
];
|
|
14978
15938
|
|
|
14979
15939
|
// src/content/api/filter-search.ts
|
|
14980
|
-
var
|
|
15940
|
+
var sections27 = [
|
|
14981
15941
|
{
|
|
14982
15942
|
slug: "field-autocomplete",
|
|
14983
15943
|
parentSlug: "filter-search",
|
|
@@ -15632,7 +16592,7 @@ var sections26 = [
|
|
|
15632
16592
|
];
|
|
15633
16593
|
|
|
15634
16594
|
// src/content/api/webhooks.ts
|
|
15635
|
-
var
|
|
16595
|
+
var sections28 = [
|
|
15636
16596
|
{
|
|
15637
16597
|
slug: "webhook-events",
|
|
15638
16598
|
parentSlug: "webhooks",
|
|
@@ -15659,7 +16619,7 @@ var sections27 = [
|
|
|
15659
16619
|
"`delivery.failed` \u2014 An outbound delivery failed after all retry attempts.",
|
|
15660
16620
|
"`process.completed` \u2014 A document processing run finished all steps and the result is available.",
|
|
15661
16621
|
"`process.failed` \u2014 A document processing run failed. The error payload includes the step name and error detail.",
|
|
15662
|
-
"`run.completed` \u2014 A `POST /v1/run` Spec pipeline finished; structured output is available (review-held fields null). The payload carries `records[]` \u2014 always an array, one `{document_id, filename, data}` entry per output row \u2014 alongside the legacy `structured_data` field kept for compatibility; prefer `records`.",
|
|
16622
|
+
"`run.completed` \u2014 A `POST /v1/run` Spec pipeline finished; structured output is available (review-held fields null). The payload carries `records[]` \u2014 always an array, one `{document_id, filename, data, metadata?, batch_id?}` entry per output row (`metadata`/`batch_id` are the submitting request's per-input tags, present only when set) \u2014 alongside the legacy `structured_data` field kept for compatibility; prefer `records`.",
|
|
15663
16623
|
"`run.failed` \u2014 A `POST /v1/run` Spec pipeline failed because every document errored during ingest or extraction. When the failure occurred at the ingest leg, the `error` payload includes `document_ids`, the best-effort list of documents that were being ingested."
|
|
15664
16624
|
] },
|
|
15665
16625
|
{ type: "paragraph", text: "Most integrations subscribe to `extraction.complete` to trigger downstream processing, for example writing structured data to a database or notifying a user. A typical workflow is to pass `webhook_url` on `POST /v1/extract`, then handle the callback payload in your server without polling. New webhook configurations subscribe to `extraction.complete` and `extraction.failed` by default." },
|
|
@@ -15680,7 +16640,9 @@ var sections27 = [
|
|
|
15680
16640
|
{
|
|
15681
16641
|
"document_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
|
|
15682
16642
|
"filename": "invoice-0847.pdf",
|
|
15683
|
-
"data": { "vendor_name": "Acme Corp", "total_amount": 14250.00 }
|
|
16643
|
+
"data": { "vendor_name": "Acme Corp", "total_amount": 14250.00 },
|
|
16644
|
+
"metadata": { "source_system": "sap", "priority": 1, "cost_center": "AP-14" },
|
|
16645
|
+
"batch_id": "ERP-2026-07-14-001"
|
|
15684
16646
|
}
|
|
15685
16647
|
],
|
|
15686
16648
|
"structured_data": [
|
|
@@ -15701,10 +16663,10 @@ var sections27 = [
|
|
|
15701
16663
|
{ question: "What webhook events does Talonic send?", answer: "Events spanning the document, job, and run lifecycle: document.uploaded, document.processing, document.classified, extraction.started, extraction.complete, extraction.failed, job.created, job.started, job.phase_complete, job.complete, job.failed, review.approved, delivery.sent, delivery.failed, process.completed, process.failed, run.completed, and run.failed." },
|
|
15702
16664
|
{ question: "How do I subscribe to Talonic webhook events?", answer: "Create a webhook configuration with POST /v1/webhooks, passing your endpoint URL and an events array. If you omit events, the webhook subscribes to extraction.complete and extraction.failed by default. For a one-off callback, pass webhook_url directly on POST /v1/extract." },
|
|
15703
16665
|
{ question: "What is in the extraction.complete webhook payload?", answer: "The payload body contains event, delivery_id, timestamp, and a data object with document_id, extraction_id, filename, field_count, and confidence_overall. Fetch the full extracted fields with GET /v1/extractions/:id using the extraction_id." },
|
|
15704
|
-
{ question: "What is in the run.completed webhook payload?", answer: "The data object carries pipeline_id, schema_id, status, and records[] \u2014 always an array, one {document_id, filename, data} entry per output row, regardless of whether the run processed one document or many. The legacy structured_data field (a flat object for a single-document run, an array for multi-document) is still emitted for compatibility, but records is the field to build on since it always carries per-row document attribution." },
|
|
16666
|
+
{ question: "What is in the run.completed webhook payload?", answer: "The data object carries pipeline_id, schema_id, status, and records[] \u2014 always an array, one {document_id, filename, data, metadata?, batch_id?} entry per output row, regardless of whether the run processed one document or many. metadata and batch_id are the submitting request's per-input tags (the merged bag if you used file_metadata), present only when the request set them. The legacy structured_data field (a flat object for a single-document run, an array for multi-document) is still emitted for compatibility, but records is the field to build on since it always carries per-row document attribution." },
|
|
15705
16667
|
{ question: "Can I get the list of supported events programmatically?", answer: "Yes. GET /v1/webhooks/events returns every supported event type with a description, so your integration can discover the catalog at runtime instead of hard-coding it." }
|
|
15706
16668
|
],
|
|
15707
|
-
mentions: ["webhook events", "real-time notifications", "extraction.complete", "event subscription", "HTTP POST callback", "document lifecycle", "run.completed", "run.failed", "records[]"]
|
|
16669
|
+
mentions: ["webhook events", "real-time notifications", "extraction.complete", "event subscription", "HTTP POST callback", "document lifecycle", "run.completed", "run.failed", "records[]", "file_metadata", "batch_id"]
|
|
15708
16670
|
},
|
|
15709
16671
|
{
|
|
15710
16672
|
slug: "webhook-security",
|
|
@@ -16201,7 +17163,7 @@ printf '%s' '{"event":"extraction.complete","delivery_id":"dlv_a1b2c3d4e5f67890"
|
|
|
16201
17163
|
];
|
|
16202
17164
|
|
|
16203
17165
|
// src/content/api/resolutions.ts
|
|
16204
|
-
var
|
|
17166
|
+
var sections29 = [
|
|
16205
17167
|
{
|
|
16206
17168
|
slug: "list-resolutions",
|
|
16207
17169
|
parentSlug: "resolutions",
|
|
@@ -16742,7 +17704,7 @@ var sections28 = [
|
|
|
16742
17704
|
];
|
|
16743
17705
|
|
|
16744
17706
|
// src/content/api/linking.ts
|
|
16745
|
-
var
|
|
17707
|
+
var sections30 = [
|
|
16746
17708
|
{
|
|
16747
17709
|
slug: "list-link-keys",
|
|
16748
17710
|
parentSlug: "linking",
|
|
@@ -17516,7 +18478,7 @@ var sections29 = [
|
|
|
17516
18478
|
];
|
|
17517
18479
|
|
|
17518
18480
|
// src/content/api/nshot.ts
|
|
17519
|
-
var
|
|
18481
|
+
var sections31 = [
|
|
17520
18482
|
{
|
|
17521
18483
|
slug: "nshot-summary",
|
|
17522
18484
|
parentSlug: "nshot",
|
|
@@ -18051,7 +19013,7 @@ var sections30 = [
|
|
|
18051
19013
|
];
|
|
18052
19014
|
|
|
18053
19015
|
// src/content/api/schema-graph.ts
|
|
18054
|
-
var
|
|
19016
|
+
var sections32 = [
|
|
18055
19017
|
{
|
|
18056
19018
|
slug: "list-schema-graph-classes",
|
|
18057
19019
|
parentSlug: "schema-graph",
|
|
@@ -18881,7 +19843,7 @@ var sections31 = [
|
|
|
18881
19843
|
];
|
|
18882
19844
|
|
|
18883
19845
|
// src/content/api/structuring.ts
|
|
18884
|
-
var
|
|
19846
|
+
var sections33 = [
|
|
18885
19847
|
{
|
|
18886
19848
|
slug: "list-structuring-checks",
|
|
18887
19849
|
parentSlug: "structuring",
|
|
@@ -19883,7 +20845,7 @@ var sections32 = [
|
|
|
19883
20845
|
];
|
|
19884
20846
|
|
|
19885
20847
|
// src/content/api/telemetry.ts
|
|
19886
|
-
var
|
|
20848
|
+
var sections34 = [
|
|
19887
20849
|
{
|
|
19888
20850
|
slug: "schema-telemetry-summary",
|
|
19889
20851
|
parentSlug: "telemetry",
|
|
@@ -20276,7 +21238,7 @@ var sections33 = [
|
|
|
20276
21238
|
];
|
|
20277
21239
|
|
|
20278
21240
|
// src/content/api/validation.ts
|
|
20279
|
-
var
|
|
21241
|
+
var sections35 = [
|
|
20280
21242
|
{
|
|
20281
21243
|
slug: "list-ground-truth",
|
|
20282
21244
|
parentSlug: "validation",
|
|
@@ -20809,7 +21771,7 @@ var sections34 = [
|
|
|
20809
21771
|
];
|
|
20810
21772
|
|
|
20811
21773
|
// src/content/api/credits.ts
|
|
20812
|
-
var
|
|
21774
|
+
var sections36 = [
|
|
20813
21775
|
{
|
|
20814
21776
|
slug: "credits-balance",
|
|
20815
21777
|
parentSlug: "credits",
|
|
@@ -21276,7 +22238,7 @@ var sections35 = [
|
|
|
21276
22238
|
];
|
|
21277
22239
|
|
|
21278
22240
|
// src/content/api/agent.ts
|
|
21279
|
-
var
|
|
22241
|
+
var sections37 = [
|
|
21280
22242
|
{
|
|
21281
22243
|
slug: "agent-context",
|
|
21282
22244
|
parentSlug: "agent",
|
|
@@ -21395,9 +22357,9 @@ var sections36 = [
|
|
|
21395
22357
|
seoTitle: "Discover AI Agent Tools and Impact Levels \u2014 Talonic Docs",
|
|
21396
22358
|
description: "List all tools available to the Talonic embedded AI agent with impact levels from read to irreversible. Build permission-aware integrations and confirmation gates.",
|
|
21397
22359
|
content: [
|
|
21398
|
-
{ type: "paragraph", text: "The **agent tools** endpoint
|
|
21399
|
-
{ type: "paragraph", text: "Call this endpoint at startup to populate your integration's tool registry, or periodically to detect newly added capabilities
|
|
21400
|
-
{ type: "paragraph", text: "The `totalCount` field gives the total number of tools available. Each tool's `impact` field follows a four-level severity scale: `read`, `draft_mutation`, `live_mutation`, and `irreversible`. Use these levels to build confirmation gates
|
|
22360
|
+
{ type: "paragraph", text: "The **agent tools** endpoint returns the agent's **live tool registry**: it is read directly from the same registry the agent loop executes from, so the list can never drift from what actually runs. Each entry carries a stable `name`, a human-readable `description`, an **impact level** that classifies how consequential the operation is, and a **capability** tag naming the permission the tool requires. Use it for tool discovery: dynamically generating tool descriptions for external AI agents, auditing available capabilities, or building permission-aware integrations." },
|
|
22361
|
+
{ type: "paragraph", text: "Call this endpoint at startup to populate your integration's tool registry, or periodically to detect newly added capabilities: because the response reflects the live loop, a newly shipped tool appears here the moment it is deployed, with no docs lag." },
|
|
22362
|
+
{ type: "paragraph", text: "The `totalCount` field gives the total number of tools available. Each tool's `impact` field follows a four-level severity scale: `read`, `draft_mutation`, `live_mutation`, and `irreversible`. Use these levels to build confirmation gates: for example, auto-approve `read` tools but require user confirmation for `live_mutation` and above. The `capability` field is the finer-grained permission the loop checks against the caller's role before executing (for example `data.read`, `source.ingest`, `review.resolve`, `spec.author`): an API-key caller runs as a read-only viewer, so on the public ask surface only `read`-impact tools execute, and the rest are listed for transparency." },
|
|
21401
22363
|
{ type: "paragraph", text: "Pair this with the **Workspace Context** endpoint to give your external AI agent both situational awareness (context) and available actions (tools). The tool names returned here are stable identifiers that can be referenced in custom orchestration logic or permission policies." },
|
|
21402
22364
|
{ type: "callout", variant: "info", text: "Impact levels follow a severity scale: `read` (no side effects), `draft_mutation` (creates drafts only), `live_mutation` (modifies live data), and `irreversible` (permanent changes like deletion). Use these to implement confirmation gates in your integration." },
|
|
21403
22365
|
{
|
|
@@ -21420,9 +22382,10 @@ var sections36 = [
|
|
|
21420
22382
|
type: "param-table",
|
|
21421
22383
|
title: "Response fields",
|
|
21422
22384
|
params: [
|
|
21423
|
-
{ name: "tools", type: "array", description: "Array of tool descriptors." },
|
|
22385
|
+
{ name: "tools", type: "array", description: "Array of tool descriptors, read live from the agent loop's registry." },
|
|
21424
22386
|
{ name: "tools[].name", type: "string", description: "Unique tool identifier." },
|
|
21425
22387
|
{ name: "tools[].impact", type: "string", description: "Impact level: read, draft_mutation, live_mutation, or irreversible." },
|
|
22388
|
+
{ name: "tools[].capability", type: "string", description: "The permission the tool requires, checked against the caller's role before execution (e.g. data.read, data.promote, source.ingest, review.resolve, spec.author)." },
|
|
21426
22389
|
{ name: "tools[].description", type: "string", description: "Human-readable description of what the tool does." },
|
|
21427
22390
|
{ name: "totalCount", type: "integer", description: "Total number of available tools." }
|
|
21428
22391
|
]
|
|
@@ -21433,9 +22396,16 @@ var sections36 = [
|
|
|
21433
22396
|
code: `{
|
|
21434
22397
|
"tools": [
|
|
21435
22398
|
{
|
|
21436
|
-
"name": "
|
|
22399
|
+
"name": "query_data",
|
|
21437
22400
|
"impact": "read",
|
|
21438
|
-
"
|
|
22401
|
+
"capability": "data.read",
|
|
22402
|
+
"description": "Runs a read-only SQL query over the structured cell plane."
|
|
22403
|
+
},
|
|
22404
|
+
{
|
|
22405
|
+
"name": "promote_field",
|
|
22406
|
+
"impact": "draft_mutation",
|
|
22407
|
+
"capability": "data.promote",
|
|
22408
|
+
"description": "Makes an already-captured field queryable. No LLM call, reversible."
|
|
21439
22409
|
}
|
|
21440
22410
|
],
|
|
21441
22411
|
"totalCount": 35
|
|
@@ -21453,19 +22423,467 @@ var sections36 = [
|
|
|
21453
22423
|
],
|
|
21454
22424
|
related: [
|
|
21455
22425
|
{ label: "Get Workspace Context", slug: "agent-context" },
|
|
22426
|
+
{ label: "Ask Your Documents", slug: "post-ask" },
|
|
21456
22427
|
{ label: "Authentication", slug: "authentication" }
|
|
21457
22428
|
],
|
|
21458
22429
|
faq: [
|
|
21459
|
-
{ question: "Can I invoke agent tools directly via the API?", answer: "The tools endpoint lists available capabilities. Tool invocation happens through the embedded agent
|
|
22430
|
+
{ question: "Can I invoke agent tools directly via the API?", answer: "The tools endpoint lists available capabilities. Tool invocation happens through an agent turn: ask a question via POST /v1/ask (or the embedded agent in the app) and the agent selects and runs the tools itself. There are no direct REST calls to individual tools." },
|
|
22431
|
+
{ question: "Is this list ever out of date?", answer: "No. The response is read from the live tool registry the agent loop executes from, so it always matches what actually runs. A newly deployed tool appears immediately." },
|
|
21460
22432
|
{ question: "What impact levels are available?", answer: "Four levels: `read` (safe, no side effects), `draft_mutation` (creates drafts), `live_mutation` (modifies live data), and `irreversible` (permanent changes). Use these to build confirmation gates." },
|
|
21461
22433
|
{ question: "How do I use impact levels to gate tool execution?", answer: "Treat the four levels as an escalating approval ladder: auto-approve `read` tools, and require explicit user confirmation for `live_mutation` and `irreversible` tools. Tool names are stable identifiers, so you can reference them in permission policies." }
|
|
21462
22434
|
],
|
|
21463
|
-
mentions: ["agent tools", "capabilities", "impact levels", "tool discovery", "confirmation gates"]
|
|
22435
|
+
mentions: ["agent tools", "capabilities", "impact levels", "tool discovery", "confirmation gates", "live tool registry"]
|
|
22436
|
+
},
|
|
22437
|
+
{
|
|
22438
|
+
slug: "agent-query",
|
|
22439
|
+
parentSlug: "agent",
|
|
22440
|
+
title: "Agent Query (Legacy)",
|
|
22441
|
+
seoTitle: "Agent Query Endpoint (Legacy Alias of /v1/ask) \u2014 Talonic Docs",
|
|
22442
|
+
description: "POST /v1/agent/query is the legacy alias of POST /v1/ask: same read-only agent turn and same flat charge, but a minimal {status, answer} poll response.",
|
|
22443
|
+
content: [
|
|
22444
|
+
{ type: "paragraph", text: "`POST /v1/agent/query` is the **legacy alias** of [`POST /v1/ask`](post-ask). Both endpoints start exactly the same read-only agent turn over the workspace corpus, and both charge the same flat `agent_ask` unit (100 credits per accepted question, idempotent per turn). The difference is the result surface: the ask endpoints return the full payload with structured citations, the verification verdict, and usage, while the query poll returns a minimal `{status, answer}` body. New integrations should use `/v1/ask`; this alias remains supported for integrations built against the original surface." },
|
|
22445
|
+
{ type: "paragraph", text: "The request body carries one field, `query` (up to 20,000 characters), and the submission answers `202 Accepted` with a `turnId`. Poll `GET /v1/agent/query/:id` roughly every 2 seconds until `status` leaves `processing`. Like the ask surface, the alias requires a workspace-scoped key with the `read` scope, runs the turn under the least-privilege viewer role, and is tenant-isolated: a turn started by another workspace reads as 404." },
|
|
22446
|
+
{
|
|
22447
|
+
type: "endpoint",
|
|
22448
|
+
method: "POST",
|
|
22449
|
+
path: "/v1/agent/query",
|
|
22450
|
+
summary: "Start a read-only agent turn over the workspace corpus (legacy alias of POST /v1/ask).",
|
|
22451
|
+
description: "Requires read scope and a workspace-scoped API key. Returns 202 with a turnId to poll. Charges one agent_ask unit.",
|
|
22452
|
+
blocks: [
|
|
22453
|
+
{
|
|
22454
|
+
type: "param-table",
|
|
22455
|
+
title: "Request body (JSON)",
|
|
22456
|
+
params: [
|
|
22457
|
+
{ name: "query", type: "string", required: true, description: "The natural-language question, up to 20,000 characters." }
|
|
22458
|
+
]
|
|
22459
|
+
}
|
|
22460
|
+
]
|
|
22461
|
+
},
|
|
22462
|
+
{
|
|
22463
|
+
type: "endpoint",
|
|
22464
|
+
method: "GET",
|
|
22465
|
+
path: "/v1/agent/query/:id",
|
|
22466
|
+
summary: "Poll a previously started agent query for its status and final answer text.",
|
|
22467
|
+
description: "Requires read scope. Returns a minimal {status, answer} body; answer is empty until the turn completes.",
|
|
22468
|
+
blocks: []
|
|
22469
|
+
},
|
|
22470
|
+
{
|
|
22471
|
+
type: "code",
|
|
22472
|
+
title: "curl",
|
|
22473
|
+
language: "bash",
|
|
22474
|
+
code: `TURN_ID=$(curl -s -X POST https://api.talonic.com/v1/agent/query \\
|
|
22475
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
22476
|
+
-H "Content-Type: application/json" \\
|
|
22477
|
+
-d '{"query": "Summarize our open invoices by vendor."}' | jq -r '.turnId')
|
|
22478
|
+
|
|
22479
|
+
curl -s https://api.talonic.com/v1/agent/query/$TURN_ID \\
|
|
22480
|
+
-H "Authorization: Bearer $TALONIC_API_KEY"`
|
|
22481
|
+
},
|
|
22482
|
+
{
|
|
22483
|
+
type: "code",
|
|
22484
|
+
title: "Response (completed)",
|
|
22485
|
+
code: `{
|
|
22486
|
+
"status": "completed",
|
|
22487
|
+
"answer": "You have 12 open invoices across 4 vendors. Northwind Supplies Ltd accounts for..."
|
|
22488
|
+
}`
|
|
22489
|
+
},
|
|
22490
|
+
{
|
|
22491
|
+
type: "param-table",
|
|
22492
|
+
title: "Poll response fields",
|
|
22493
|
+
params: [
|
|
22494
|
+
{ name: "status", type: "string", description: "processing, completed, or error." },
|
|
22495
|
+
{ name: "answer", type: "string", description: "The final answer text as markdown, including inline citation links. Empty string until the turn completes." }
|
|
22496
|
+
]
|
|
22497
|
+
},
|
|
22498
|
+
{ type: "callout", variant: "info", text: "The answer text is identical to what /v1/ask returns; only the envelope is smaller. If you want the structured citations array, the verification verdict, or usage reporting, poll the same class of turn via POST /v1/ask instead: it is the same engine and the same price." },
|
|
22499
|
+
{ type: "heading", level: 2, id: "agent-query-errors", text: "Errors" },
|
|
22500
|
+
{
|
|
22501
|
+
type: "param-table",
|
|
22502
|
+
title: "Error responses",
|
|
22503
|
+
params: [
|
|
22504
|
+
{ name: "400", type: "validation_error", description: "Missing or over-length query, or the API key is not workspace-scoped." },
|
|
22505
|
+
{ name: "401", type: "unauthorized", description: "Missing or invalid API key." },
|
|
22506
|
+
{ name: "402", type: "insufficient_credits", description: "Balance cannot cover one agent_ask unit." },
|
|
22507
|
+
{ name: "404", type: "not_found", description: "On the poll: no turn with this id exists in your workspace." }
|
|
22508
|
+
]
|
|
22509
|
+
}
|
|
22510
|
+
],
|
|
22511
|
+
related: [
|
|
22512
|
+
{ label: "Ask Your Documents", slug: "post-ask" },
|
|
22513
|
+
{ label: "Poll & Results", slug: "ask-results" },
|
|
22514
|
+
{ label: "Get Workspace Context", slug: "agent-context" },
|
|
22515
|
+
{ label: "List Agent Tools", slug: "agent-tools" }
|
|
22516
|
+
],
|
|
22517
|
+
faq: [
|
|
22518
|
+
{ question: "Should I use /v1/agent/query or /v1/ask?", answer: "Use POST /v1/ask for anything new: it runs the identical turn at the identical price but returns structured citations, the verification verdict, and usage alongside the answer. The query alias exists so integrations built against the original minimal surface keep working." },
|
|
22519
|
+
{ question: "Does the alias cost the same as an ask?", answer: "Yes. Both charge one flat agent_ask unit (100 credits) per accepted question, keyed to the turn so retries never double-bill." },
|
|
22520
|
+
{ question: "Can I poll a turn started via /v1/agent/query through /v1/ask/:id?", answer: "The turn id is the same underlying identifier, but treat the two surfaces as separate contracts: poll the surface you submitted on, and migrate the submission to /v1/ask when you want the richer payload." }
|
|
22521
|
+
],
|
|
22522
|
+
mentions: ["legacy alias", "agent query", "turnId", "minimal response", "migration to /v1/ask"]
|
|
22523
|
+
}
|
|
22524
|
+
];
|
|
22525
|
+
|
|
22526
|
+
// src/content/api/ask.ts
|
|
22527
|
+
var sections38 = [
|
|
22528
|
+
{
|
|
22529
|
+
slug: "post-ask",
|
|
22530
|
+
parentSlug: "ask",
|
|
22531
|
+
title: "POST /v1/ask",
|
|
22532
|
+
seoTitle: "Ask Your Documents in Natural Language \u2014 Talonic Docs",
|
|
22533
|
+
description: "POST /v1/ask asks a natural-language question over every document in your workspace and returns a cited, verified answer. One flat credit per question, no RAG stack.",
|
|
22534
|
+
content: [
|
|
22535
|
+
{ type: "paragraph", text: '`POST /v1/ask` is the natural-language front door to your document corpus: send a question, get back an answer grounded in your own documents, with a citation for every load-bearing claim and a verification verdict on the answer as a whole. There is no index to build, no embeddings to manage, and no retrieval pipeline to tune. Every document you ingest with `ingestion_target: "ingest"` (the default on [`POST /v1/run`](run-spec)) is askable, and the question runs over the entire workspace corpus, not a top-k slice of it.' },
|
|
22536
|
+
{ type: "paragraph", text: "The endpoint accepts one JSON field, `question`, up to 20,000 characters. It answers `202 Accepted` immediately with an `ask_id` and a `poll_url`; the answer itself is produced asynchronously and collected via [`GET /v1/ask/:id`](ask-results). A turn typically takes 10 to 60 seconds, which is why the surface is async-only by design: a synchronous response would sit inside edge and proxy timeouts. Authentication is a standard `tlnc_` Bearer key with the `read` scope. The key must be workspace-scoped: asks are tenant-isolated end to end." },
|
|
22537
|
+
{ type: "heading", level: 2, id: "post-ask-why", text: "Why this replaces a RAG stack" },
|
|
22538
|
+
{ type: "paragraph", text: "A conventional RAG pipeline embeds document chunks, retrieves the top-k nearest ones, and hopes the answer is inside that slice. An ask on Talonic instead runs a **read-only agent turn** over a corpus that was structured at ingestion. The agent retrieves across **three planes at once**: a semantic match against the field registry (the deduplicated graph of every field concept discovered in your documents), a lexical match over the extracted cell values themselves, and semantic plus full-text search over the raw document text through a persistent chunk index. A question about a number, a date, or a counterparty does not depend on the right paragraph landing in a context window: the value was already extracted, typed, and bound to a canonical concept." },
|
|
22539
|
+
{ type: "paragraph", text: 'On top of retrieval, the agent runs **read-only SQL over the structured cell plane**. Questions RAG is structurally bad at, such as "how many of our contracts auto-renew?" or "what is the total value of invoices from Q2?", become aggregate queries over extracted cells with the denominator taken from real corpus coverage, never estimated from a handful of retrieved chunks. And the corpus improves as it is questioned: when a question exposes a coverage gap, the platform extracts and persists at query time, promoting or mining the concept into the structured plane, so the second time anyone asks, the answer is a plain SQL read. Your corpus gets faster and cheaper to query the more it is used, which is the opposite of a RAG stack.' },
|
|
22540
|
+
{ type: "paragraph", text: `Two more properties matter for trust. First, the coverage plane turns absence into evidence: "no document in the workspace mentions a termination penalty" is a checkable statement backed by corpus-wide coverage, not a guess from an empty retrieval. Second, every answer passes through a **post-answer verification step** that re-checks the answer's claims against the evidence the turn itself gathered, and the verdict ships in the response. See [Citations & Verification](ask-citations-verification) for how to consume both.` },
|
|
22541
|
+
{ type: "callout", variant: "info", text: "An ask never modifies your workspace. The turn runs under a least-privilege read-only role: documents, schemas, pipelines, and settings cannot be changed by a question, and every mutating tool is denied before it executes." },
|
|
22542
|
+
{
|
|
22543
|
+
type: "endpoint",
|
|
22544
|
+
method: "POST",
|
|
22545
|
+
path: "/v1/ask",
|
|
22546
|
+
summary: "Ask a natural-language question over the workspace corpus. Returns 202 with an ask_id to poll.",
|
|
22547
|
+
description: "Requires read scope and a workspace-scoped API key. Charges one flat agent_ask credit unit per accepted ask.",
|
|
22548
|
+
blocks: [
|
|
22549
|
+
{
|
|
22550
|
+
type: "param-table",
|
|
22551
|
+
title: "Request body (JSON)",
|
|
22552
|
+
params: [
|
|
22553
|
+
{ name: "question", type: "string", required: true, description: "The natural-language question, up to 20,000 characters. Markdown is fine; the agent reads it as plain intent." }
|
|
22554
|
+
]
|
|
22555
|
+
}
|
|
22556
|
+
]
|
|
22557
|
+
},
|
|
22558
|
+
{
|
|
22559
|
+
type: "code",
|
|
22560
|
+
title: "curl",
|
|
22561
|
+
language: "bash",
|
|
22562
|
+
code: `curl -s -X POST https://api.talonic.com/v1/ask \\
|
|
22563
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
22564
|
+
-H "Content-Type: application/json" \\
|
|
22565
|
+
-d '{"question": "Which of our agreements auto-renew, and what notice period does each one require?"}'`
|
|
22566
|
+
},
|
|
22567
|
+
{
|
|
22568
|
+
type: "code",
|
|
22569
|
+
title: "Response (202)",
|
|
22570
|
+
code: `{
|
|
22571
|
+
"ask_id": "7c2f0a4e-9d31-4b8a-b3e6-2f1c5d9a8e07",
|
|
22572
|
+
"status": "processing",
|
|
22573
|
+
"poll_url": "/v1/ask/7c2f0a4e-9d31-4b8a-b3e6-2f1c5d9a8e07"
|
|
22574
|
+
}`
|
|
22575
|
+
},
|
|
22576
|
+
{ type: "heading", level: 2, id: "post-ask-pricing", text: "Pricing" },
|
|
22577
|
+
{ type: "paragraph", text: "Each accepted ask charges one flat `agent_ask` credit unit: **100 credits, or 0.10 EUR** (1,000 credits = 1 EUR). The charge is taken when the ask is accepted and is keyed to the turn, so it is idempotent: a network retry of the same submission, or polling the result any number of times, never bills twice. There is no per-token or per-document component; a question over 10 documents and a question over 10,000 cost the same. The completed response reports the charge back in `usage.credits_charged`, and the full catalog is public at [`GET /v1/pricing`](pricing-overview)." },
|
|
22578
|
+
{ type: "paragraph", text: "When your balance cannot cover one unit, the ask is rejected up front with `402 insufficient_credits` before any work starts. The 402 body follows the platform's agent-actionable credits contract: it names the unit, the shortfall, and a `buy_credits_url`, so an autonomous integration can top up and resubmit without human interpretation." },
|
|
22579
|
+
{ type: "heading", level: 2, id: "post-ask-rate-limits", text: "Rate limits" },
|
|
22580
|
+
{ type: "paragraph", text: "Ask submissions are metered in their own daily rate-limit namespace, `ask`, separate from extraction and platform reads. Polling `GET /v1/ask/:id` counts against the general read namespace, never against the ask budget, so tight polling loops are free with respect to this cap." },
|
|
22581
|
+
{
|
|
22582
|
+
type: "param-table",
|
|
22583
|
+
title: "Daily ask caps by plan",
|
|
22584
|
+
params: [
|
|
22585
|
+
{ name: "free", type: "tier", description: "200 asks per day." },
|
|
22586
|
+
{ name: "individual", type: "tier", description: "100 asks per day." },
|
|
22587
|
+
{ name: "pro", type: "tier", description: "5,000 asks per day." },
|
|
22588
|
+
{ name: "enterprise", type: "tier", description: "Unlimited." }
|
|
22589
|
+
]
|
|
22590
|
+
},
|
|
22591
|
+
{ type: "heading", level: 2, id: "post-ask-first-key", text: "Getting a key and a corpus" },
|
|
22592
|
+
{ type: "paragraph", text: 'If your workspace already has documents, any `read`-scoped key works immediately. On deployments where self-serve signup is enabled, there is a zero-dashboard path from email to first answer: `POST /v1/auth/register` with your email sends a magic link, and following it (`GET /v1/auth/register/confirm`) returns a scoped `tlnc_` key together with a seeded workspace containing two example documents, a Northwind invoice and an Acme/Globex master services agreement, so your very first `POST /v1/ask` has something real to answer against. To make your own documents askable, ingest them via [`POST /v1/run`](run-spec) with the default `ingestion_target: "ingest"`.' },
|
|
22593
|
+
{ type: "heading", level: 2, id: "post-ask-errors", text: "Errors" },
|
|
22594
|
+
{
|
|
22595
|
+
type: "param-table",
|
|
22596
|
+
title: "Error responses",
|
|
22597
|
+
params: [
|
|
22598
|
+
{ name: "400", type: "validation_error", description: "Missing or over-length question, or the API key is not workspace-scoped." },
|
|
22599
|
+
{ name: "401", type: "unauthorized", description: "Missing or invalid API key." },
|
|
22600
|
+
{ name: "402", type: "insufficient_credits", description: "Balance cannot cover one agent_ask unit. Body includes the shortfall and a buy_credits_url." },
|
|
22601
|
+
{ name: "403", type: "insufficient_scope", description: "The key lacks the read scope." },
|
|
22602
|
+
{ name: "429", type: "rate_limit_exceeded", description: "Daily ask cap for your plan exhausted. Retry after the period in the Retry-After header." }
|
|
22603
|
+
]
|
|
22604
|
+
}
|
|
22605
|
+
],
|
|
22606
|
+
related: [
|
|
22607
|
+
{ label: "Poll & Results", slug: "ask-results" },
|
|
22608
|
+
{ label: "Citations & Verification", slug: "ask-citations-verification" },
|
|
22609
|
+
{ label: "Run a Spec (make documents askable)", slug: "run-spec" },
|
|
22610
|
+
{ label: "Pricing Catalog", slug: "pricing-overview" },
|
|
22611
|
+
{ label: "Authentication", slug: "authentication" }
|
|
22612
|
+
],
|
|
22613
|
+
faq: [
|
|
22614
|
+
{ question: "How is /v1/ask different from RAG?", answer: "RAG embeds chunks and answers from the top-k retrieved slice. An ask runs a read-only agent turn over a corpus that was structured at ingestion: it retrieves across the field registry, the extracted cell values, and the full document text simultaneously, runs read-only SQL for aggregate questions, and extracts missing concepts at query time so repeat questions become plain structured reads. Every claim is cited to an exact source span and the answer is re-verified against the turn's own evidence." },
|
|
22615
|
+
{ question: "What does an ask cost?", answer: "One flat agent_ask unit per accepted question: 100 credits, or 0.10 EUR. The charge is idempotent per turn, so retries and polling never double-bill, and there is no per-token or per-document component." },
|
|
22616
|
+
{ question: "Why is there no synchronous mode?", answer: "A turn takes 10 to 60 seconds depending on how much retrieval, SQL, and verification the question needs. That exceeds common edge and proxy timeouts, so the surface is async-only: submit, get 202 with an ask_id, and poll GET /v1/ask/:id roughly every 2 seconds." },
|
|
22617
|
+
{ question: "Can an ask change anything in my workspace?", answer: "No. The turn runs under a least-privilege read-only role. Mutating tools are denied before execution, so documents, schemas, pipelines, and settings are never modified by a question." },
|
|
22618
|
+
{ question: "Which documents can the agent see?", answer: 'Every document in the workspace the API key belongs to, and only those. Asks are tenant-isolated: an ask_id from another workspace reads as 404. Documents become askable when ingested with ingestion_target "ingest" (the default on POST /v1/run); markdown-only ingestion ("extract") keeps them out of the askable corpus.' }
|
|
22619
|
+
],
|
|
22620
|
+
mentions: ["natural-language ask", "RAG replacement", "agent turn", "three-plane retrieval", "field registry", "read-only SQL", "extract-and-persist", "agent_ask credit unit", "rate limits"]
|
|
22621
|
+
},
|
|
22622
|
+
{
|
|
22623
|
+
slug: "ask-results",
|
|
22624
|
+
parentSlug: "ask",
|
|
22625
|
+
title: "Poll & Results",
|
|
22626
|
+
seoTitle: "Poll an Ask and Read the Answer \u2014 GET /v1/ask/:id \u2014 Talonic Docs",
|
|
22627
|
+
description: "GET /v1/ask/:id polls a natural-language ask: processing, completed with a cited markdown answer, structured citations, verification verdict, and usage, or error.",
|
|
22628
|
+
content: [
|
|
22629
|
+
{ type: "paragraph", text: "`GET /v1/ask/:id` polls an ask started with [`POST /v1/ask`](post-ask). Poll roughly every 2 seconds: turns settle in 10 to 60 seconds, so a 2-second interval finds the answer promptly without wasted requests. Polling is metered under the general read namespace, not the `ask` namespace, so a polling loop never consumes your daily ask budget. The endpoint is tenant-isolated: an `ask_id` created by another workspace returns `404`, exactly as if it never existed." },
|
|
22630
|
+
{ type: "paragraph", text: "The response is one of three shapes, discriminated by `status`. While the turn runs you get the minimal `processing` body: `ask_id`, `status`, and `poll_url`. When the turn settles successfully, `status` is `completed` and the body carries the full result: the answer, the structured citations, the verification verdict, and usage. When the turn fails, `status` is `error` with a stable `error` code and a human-readable `message`." },
|
|
22631
|
+
{ type: "heading", level: 2, id: "ask-results-endpoint", text: "Endpoint" },
|
|
22632
|
+
{
|
|
22633
|
+
type: "endpoint",
|
|
22634
|
+
method: "GET",
|
|
22635
|
+
path: "/v1/ask/:id",
|
|
22636
|
+
summary: "Poll a previously started ask for its status and, once completed, the full answer payload.",
|
|
22637
|
+
description: "Requires read scope. Metered under the general read namespace, so polling never burns the daily ask cap.",
|
|
22638
|
+
blocks: [
|
|
22639
|
+
{ type: "param-table", title: "Path parameters", params: [{ name: "id", type: "uuid", required: true, description: "The ask_id returned by POST /v1/ask." }] }
|
|
22640
|
+
]
|
|
22641
|
+
},
|
|
22642
|
+
{
|
|
22643
|
+
type: "code",
|
|
22644
|
+
title: "Polling loop (bash)",
|
|
22645
|
+
language: "bash",
|
|
22646
|
+
code: `ASK_ID=$(curl -s -X POST https://api.talonic.com/v1/ask \\
|
|
22647
|
+
-H "Authorization: Bearer $TALONIC_API_KEY" \\
|
|
22648
|
+
-H "Content-Type: application/json" \\
|
|
22649
|
+
-d '{"question": "What is the total value of the Acme master services agreement?"}' \\
|
|
22650
|
+
| jq -r '.ask_id')
|
|
22651
|
+
|
|
22652
|
+
while true; do
|
|
22653
|
+
RESULT=$(curl -s https://api.talonic.com/v1/ask/$ASK_ID \\
|
|
22654
|
+
-H "Authorization: Bearer $TALONIC_API_KEY")
|
|
22655
|
+
STATUS=$(echo "$RESULT" | jq -r '.status')
|
|
22656
|
+
[ "$STATUS" != "processing" ] && break
|
|
22657
|
+
sleep 2
|
|
22658
|
+
done
|
|
22659
|
+
|
|
22660
|
+
echo "$RESULT" | jq '{status, answer, verdict: .verification.verdict}'`
|
|
22661
|
+
},
|
|
22662
|
+
{ type: "heading", level: 2, id: "ask-results-completed", text: "The completed payload" },
|
|
22663
|
+
{
|
|
22664
|
+
type: "param-table",
|
|
22665
|
+
title: "Response fields (completed)",
|
|
22666
|
+
params: [
|
|
22667
|
+
{ name: "ask_id", type: "uuid", description: "The ask id." },
|
|
22668
|
+
{ name: "status", type: "string", description: "processing, completed, or error." },
|
|
22669
|
+
{ name: "poll_url", type: "string", description: "Relative URL of this endpoint, echoed for convenience." },
|
|
22670
|
+
{ name: "answer", type: "string", description: "The answer as markdown. Citations appear inline as markdown links whose targets deep-link into the Talonic app with the source span highlighted." },
|
|
22671
|
+
{ name: "citations", type: "array", description: "The same citations in structured form: quote, document_id, kind, reference, app_url. See Citations & Verification." },
|
|
22672
|
+
{ name: "verification", type: "object | null", description: "Post-answer verification verdict: verdict (supported / issues / unverifiable), checks_total, checks_unsupported, and an optional correction. null when the turn produced no verdict." },
|
|
22673
|
+
{ name: "usage.tokens", type: "integer | null", description: "Total LLM tokens the turn consumed, for transparency. Not billed per token." },
|
|
22674
|
+
{ name: "usage.credits_charged", type: "integer", description: "The flat charge for this ask: 100 credits." }
|
|
22675
|
+
]
|
|
22676
|
+
},
|
|
22677
|
+
{
|
|
22678
|
+
type: "code",
|
|
22679
|
+
title: "Response (completed)",
|
|
22680
|
+
code: `{
|
|
22681
|
+
"ask_id": "7c2f0a4e-9d31-4b8a-b3e6-2f1c5d9a8e07",
|
|
22682
|
+
"status": "completed",
|
|
22683
|
+
"poll_url": "/v1/ask/7c2f0a4e-9d31-4b8a-b3e6-2f1c5d9a8e07",
|
|
22684
|
+
"answer": "The Acme master services agreement has a total contract value of [EUR 96,000](https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=contract_value) over a [24-month term](https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=contract_term).",
|
|
22685
|
+
"citations": [
|
|
22686
|
+
{
|
|
22687
|
+
"quote": "EUR 96,000",
|
|
22688
|
+
"document_id": "1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
|
|
22689
|
+
"kind": "field",
|
|
22690
|
+
"reference": "contract_value",
|
|
22691
|
+
"app_url": "https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=contract_value"
|
|
22692
|
+
},
|
|
22693
|
+
{
|
|
22694
|
+
"quote": "24-month term",
|
|
22695
|
+
"document_id": "1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
|
|
22696
|
+
"kind": "field",
|
|
22697
|
+
"reference": "contract_term",
|
|
22698
|
+
"app_url": "https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=contract_term"
|
|
22699
|
+
}
|
|
22700
|
+
],
|
|
22701
|
+
"verification": {
|
|
22702
|
+
"verdict": "supported",
|
|
22703
|
+
"checks_total": 3,
|
|
22704
|
+
"checks_unsupported": 0
|
|
22705
|
+
},
|
|
22706
|
+
"usage": {
|
|
22707
|
+
"tokens": 18432,
|
|
22708
|
+
"credits_charged": 100
|
|
22709
|
+
}
|
|
22710
|
+
}`
|
|
22711
|
+
},
|
|
22712
|
+
{ type: "paragraph", text: "The `answer` field is ready to render as-is in any markdown surface: chat UIs, Slack, a support console. Because the inline citation links and the structured `citations` array describe the same evidence, you can also strip the links and render your own citation affordances from the array; the two are guaranteed to agree since the array is parsed from the answer itself." },
|
|
22713
|
+
{ type: "heading", level: 2, id: "ask-results-typescript", text: "A typed client" },
|
|
22714
|
+
{
|
|
22715
|
+
type: "code",
|
|
22716
|
+
title: "TypeScript polling helper",
|
|
22717
|
+
language: "typescript",
|
|
22718
|
+
code: `const BASE = 'https://api.talonic.com';
|
|
22719
|
+
const headers = {
|
|
22720
|
+
Authorization: \`Bearer \${process.env.TALONIC_API_KEY}\`,
|
|
22721
|
+
'Content-Type': 'application/json',
|
|
22722
|
+
};
|
|
22723
|
+
|
|
22724
|
+
interface AskResult {
|
|
22725
|
+
ask_id: string;
|
|
22726
|
+
status: 'processing' | 'completed' | 'error';
|
|
22727
|
+
poll_url: string;
|
|
22728
|
+
answer?: string;
|
|
22729
|
+
citations?: { quote: string; document_id: string; kind: 'field' | 'quote'; reference: string; app_url: string }[];
|
|
22730
|
+
verification?: { verdict: 'supported' | 'issues' | 'unverifiable'; checks_total: number; checks_unsupported: number; correction?: string } | null;
|
|
22731
|
+
usage?: { tokens: number | null; credits_charged: number };
|
|
22732
|
+
error?: string;
|
|
22733
|
+
message?: string;
|
|
22734
|
+
}
|
|
22735
|
+
|
|
22736
|
+
async function ask(question: string): Promise<AskResult> {
|
|
22737
|
+
const submit = await fetch(\`\${BASE}/v1/ask\`, {
|
|
22738
|
+
method: 'POST',
|
|
22739
|
+
headers,
|
|
22740
|
+
body: JSON.stringify({ question }),
|
|
22741
|
+
});
|
|
22742
|
+
if (submit.status === 402) throw new Error('Out of credits: top up and retry.');
|
|
22743
|
+
const { ask_id } = await submit.json();
|
|
22744
|
+
|
|
22745
|
+
while (true) {
|
|
22746
|
+
await new Promise((r) => setTimeout(r, 2000));
|
|
22747
|
+
const res = await fetch(\`\${BASE}/v1/ask/\${ask_id}\`, { headers });
|
|
22748
|
+
const turn: AskResult = await res.json();
|
|
22749
|
+
if (turn.status !== 'processing') return turn;
|
|
22750
|
+
}
|
|
22751
|
+
}
|
|
22752
|
+
|
|
22753
|
+
const result = await ask('Which invoices are overdue as of today?');
|
|
22754
|
+
if (result.status === 'completed') {
|
|
22755
|
+
console.log(result.answer);
|
|
22756
|
+
console.log(\`Verification: \${result.verification?.verdict ?? 'none'}\`);
|
|
22757
|
+
}`
|
|
22758
|
+
},
|
|
22759
|
+
{ type: "heading", level: 2, id: "ask-results-errors", text: "Error turns and error responses" },
|
|
22760
|
+
{ type: "paragraph", text: 'A turn that fails internally settles to an **error turn**, delivered with HTTP 200 and `status: "error"` in the body, because the poll itself succeeded. The body carries `error: "ask_failed"` and a message. The right handling is to submit the question again as a fresh ask: turns are independent, and the failed turn does not poison anything. Distinguish this from HTTP-level errors on the poll request itself, which mean the request never reached a turn.' },
|
|
22761
|
+
{
|
|
22762
|
+
type: "code",
|
|
22763
|
+
title: "Response (error turn)",
|
|
22764
|
+
code: `{
|
|
22765
|
+
"ask_id": "7c2f0a4e-9d31-4b8a-b3e6-2f1c5d9a8e07",
|
|
22766
|
+
"status": "error",
|
|
22767
|
+
"poll_url": "/v1/ask/7c2f0a4e-9d31-4b8a-b3e6-2f1c5d9a8e07",
|
|
22768
|
+
"error": "ask_failed",
|
|
22769
|
+
"message": "The agent turn failed. Ask again; the question was not charged twice."
|
|
22770
|
+
}`
|
|
22771
|
+
},
|
|
22772
|
+
{
|
|
22773
|
+
type: "param-table",
|
|
22774
|
+
title: "HTTP error responses",
|
|
22775
|
+
params: [
|
|
22776
|
+
{ name: "400", type: "validation_error", description: "The id is not a UUID." },
|
|
22777
|
+
{ name: "401", type: "unauthorized", description: "Missing or invalid API key." },
|
|
22778
|
+
{ name: "404", type: "not_found", description: "No ask with this id exists in your workspace. Cross-tenant ids also read as 404." }
|
|
22779
|
+
]
|
|
22780
|
+
},
|
|
22781
|
+
{ type: "callout", variant: "info", text: "There is no result expiry race to worry about: keep the ask_id and fetch the completed payload whenever convenient. The poll is a plain read, so it is safe to poll from multiple consumers." }
|
|
22782
|
+
],
|
|
22783
|
+
related: [
|
|
22784
|
+
{ label: "POST /v1/ask", slug: "post-ask" },
|
|
22785
|
+
{ label: "Citations & Verification", slug: "ask-citations-verification" },
|
|
22786
|
+
{ label: "Rate Limits", slug: "rate-limits" },
|
|
22787
|
+
{ label: "Credits Balance", slug: "credits-balance" }
|
|
22788
|
+
],
|
|
22789
|
+
faq: [
|
|
22790
|
+
{ question: "How often should I poll?", answer: "Roughly every 2 seconds. Turns settle in 10 to 60 seconds, and polling is metered under the general read namespace rather than the ask namespace, so a 2-second loop never touches your daily ask cap." },
|
|
22791
|
+
{ question: "What does an error turn mean and am I charged for it?", answer: 'status "error" with error "ask_failed" means the agent turn failed internally. Submit the question again as a fresh ask. Charging is keyed to the turn and idempotent, so a retry never results in a double bill for the same turn.' },
|
|
22792
|
+
{ question: "Why did my poll return 404?", answer: "Either the id is wrong or the ask belongs to a different workspace: asks are tenant-isolated, and a cross-tenant id is indistinguishable from a nonexistent one by design." },
|
|
22793
|
+
{ question: "Is usage.tokens what I am billed on?", answer: "No. Billing is the flat agent_ask unit reported in usage.credits_charged (100 credits per ask). usage.tokens is informational transparency about how much LLM work the turn did." }
|
|
22794
|
+
],
|
|
22795
|
+
mentions: ["polling", "ask_id", "completed payload", "error turn", "markdown answer", "tenant isolation", "usage"]
|
|
22796
|
+
},
|
|
22797
|
+
{
|
|
22798
|
+
slug: "ask-citations-verification",
|
|
22799
|
+
parentSlug: "ask",
|
|
22800
|
+
title: "Citations & Verification",
|
|
22801
|
+
seoTitle: "Ask Citations, Deep Links, and Verification \u2014 Talonic Docs",
|
|
22802
|
+
description: "Every ask answer carries per-claim citations with exact source spans, app deep links, and a post-answer verification verdict: supported, issues, or unverifiable.",
|
|
22803
|
+
content: [
|
|
22804
|
+
{ type: "paragraph", text: `An answer you cannot check is an answer you cannot ship. Every completed ask therefore carries two trust layers: **citations**, which bind each load-bearing claim in the answer to an exact span in a source document, and **verification**, a post-answer pass that re-checks the answer's claims against the evidence the turn itself collected and ships a verdict alongside the answer. Together they turn "the model said so" into "this document says so, and a second pass agrees".` },
|
|
22805
|
+
{ type: "heading", level: 2, id: "ask-citations-schema", text: "The citations array" },
|
|
22806
|
+
{ type: "paragraph", text: "Citations appear twice in the completed payload, and they always agree: inline in the `answer` markdown as links, and structured in the `citations` array, which is parsed from those same links. Each entry binds one quoted claim to one source document." },
|
|
22807
|
+
{
|
|
22808
|
+
type: "param-table",
|
|
22809
|
+
title: "Citation fields",
|
|
22810
|
+
params: [
|
|
22811
|
+
{ name: "quote", type: "string", description: "The claim text the citation grounds, as it appears in the answer." },
|
|
22812
|
+
{ name: "document_id", type: "uuid", description: "The source document. Resolvable via GET /v1/documents/:id, and its extracted fields via GET /v1/documents/:id/fields." },
|
|
22813
|
+
{ name: "kind", type: "string", description: "field or quote. field cites a captured field's provenance span; quote cites a verbatim passage of document text." },
|
|
22814
|
+
{ name: "reference", type: "string", description: "For kind field: the cited field key. For kind quote: the quoted search text." },
|
|
22815
|
+
{ name: "app_url", type: "string", description: "Absolute deep link into the Talonic app that opens the document with the cited span highlighted." }
|
|
22816
|
+
]
|
|
22817
|
+
},
|
|
22818
|
+
{ type: "paragraph", text: "The two `kind` values reflect the two evidence planes an ask draws from. A `field` citation points at a **captured field**: a value that was extracted at ingestion, bound to a canonical concept in the field registry, and carries provenance back to the exact span it was read from. A `quote` citation points at **verbatim document text** the agent found through the chunk index, for claims that live in prose rather than in a structured value. A well-grounded answer about contract terms typically mixes both: field citations for amounts and dates, quote citations for clause language." },
|
|
22819
|
+
{
|
|
22820
|
+
type: "code",
|
|
22821
|
+
title: "A mixed citations array",
|
|
22822
|
+
code: `"citations": [
|
|
22823
|
+
{
|
|
22824
|
+
"quote": "EUR 96,000",
|
|
22825
|
+
"document_id": "1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
|
|
22826
|
+
"kind": "field",
|
|
22827
|
+
"reference": "contract_value",
|
|
22828
|
+
"app_url": "https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?cite=contract_value"
|
|
22829
|
+
},
|
|
22830
|
+
{
|
|
22831
|
+
"quote": "either party may terminate with ninety (90) days written notice",
|
|
22832
|
+
"document_id": "1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
|
|
22833
|
+
"kind": "quote",
|
|
22834
|
+
"reference": "either party may terminate with ninety (90) days written notice",
|
|
22835
|
+
"app_url": "https://app.talonic.com/documents/1b6f2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d?citeq=either%20party%20may%20terminate%20with%20ninety%20(90)%20days%20written%20notice"
|
|
22836
|
+
}
|
|
22837
|
+
]`
|
|
22838
|
+
},
|
|
22839
|
+
{ type: "paragraph", text: 'The `app_url` is built for human review handoff: opening it lands a reviewer inside the Talonic document viewer with the cited span highlighted, so "check this claim" is one click, not a search. If you are building your own UI, render `quote` as the visible citation text and use `app_url` as its href; users signed in to the workspace get the highlighted source instantly. For programmatic verification, `document_id` plus `reference` lets you re-fetch the same evidence over the API: [`GET /v1/documents/:id/fields`](get-document-fields) returns the captured field with its value and confidence for `field` citations.' },
|
|
22840
|
+
{ type: "heading", level: 2, id: "ask-verification-verdicts", text: "Verification verdicts" },
|
|
22841
|
+
{ type: "paragraph", text: "After the answer is written, a separate verification pass decomposes it into individual claims and re-checks each one against the tool evidence the turn actually gathered: the SQL results, the retrieved spans, the coverage numbers. The result ships as the `verification` object with a three-value `verdict`, the check counts, and, when the pass found a fixable discrepancy, a suggested `correction`." },
|
|
22842
|
+
{
|
|
22843
|
+
type: "param-table",
|
|
22844
|
+
title: "Verification object",
|
|
22845
|
+
params: [
|
|
22846
|
+
{ name: "verdict", type: "string", description: "supported: every checked claim is backed by the turn's evidence. issues: at least one claim did not match the evidence. unverifiable: the claims could not be checked against the gathered evidence." },
|
|
22847
|
+
{ name: "checks_total", type: "integer", description: "How many claims the pass checked." },
|
|
22848
|
+
{ name: "checks_unsupported", type: "integer", description: "How many of them it could not support." },
|
|
22849
|
+
{ name: "correction", type: "string", description: "Present only when the pass produced a corrected statement for the unsupported claims." }
|
|
22850
|
+
]
|
|
22851
|
+
},
|
|
22852
|
+
{ type: "paragraph", text: "Treat the verdict as routing signal, not as ground truth. `supported` means the answer and the evidence agree, which is the normal case and safe to pass through automatically. `issues` is a **review pointer**: it does not prove the answer wrong, it flags that a second reading of the evidence disagreed with at least one claim, so route the answer to a human, show the `correction` if present, and lean on the citation deep links for the check. `unverifiable` usually means the answer is analytic or aggregative in a way the claim-checker could not bind to specific evidence; weigh it by how much your use case tolerates unreviewed synthesis. `verification` can also be `null` when no verdict was produced; treat that like `unverifiable`." },
|
|
22853
|
+
{ type: "callout", variant: "warning", text: "The verification pass checks the answer against the evidence this turn collected, not against the whole corpus from scratch. It catches the model contradicting its own sources, which is the dominant hallucination mode, but it is a safety net, not a substitute for the citations themselves." },
|
|
22854
|
+
{ type: "heading", level: 2, id: "ask-coverage", text: "Coverage statements: evidence-backed absence" },
|
|
22855
|
+
{ type: "paragraph", text: `The hardest answer for a retrieval system is "it is not there": plain RAG cannot distinguish "not in the top-k chunks" from "not in the corpus". Talonic's coverage plane can, because ingestion structures every document. When the agent answers "none of the 421 agreements in the workspace contains an exclusivity clause", the denominator comes from real corpus coverage and the absence claim is checked over the structured plane plus full-text search, not over a retrieval sample. Negative answers therefore arrive with the same confidence machinery as positive ones, and the verification pass checks them the same way.` },
|
|
22856
|
+
{
|
|
22857
|
+
type: "code",
|
|
22858
|
+
title: "Handling verdicts in code",
|
|
22859
|
+
language: "typescript",
|
|
22860
|
+
code: `function routeAnswer(turn: AskResult): 'auto' | 'review' {
|
|
22861
|
+
const v = turn.verification;
|
|
22862
|
+
if (v?.verdict === 'supported') return 'auto';
|
|
22863
|
+
// issues, unverifiable, and null all get a human look.
|
|
22864
|
+
// Surface the correction and the citation deep links to the reviewer.
|
|
22865
|
+
return 'review';
|
|
22866
|
+
}`
|
|
22867
|
+
}
|
|
22868
|
+
],
|
|
22869
|
+
related: [
|
|
22870
|
+
{ label: "POST /v1/ask", slug: "post-ask" },
|
|
22871
|
+
{ label: "Poll & Results", slug: "ask-results" },
|
|
22872
|
+
{ label: "Get Document", slug: "get-document" },
|
|
22873
|
+
{ label: "Get Document Fields", slug: "get-document-fields" }
|
|
22874
|
+
],
|
|
22875
|
+
faq: [
|
|
22876
|
+
{ question: "What is the difference between field and quote citations?", answer: "A field citation grounds a claim in a captured field: a value extracted at ingestion with provenance back to its exact source span, referenced by its field key. A quote citation grounds a claim in verbatim document text found via full-text and semantic search. Both carry a document_id and an app_url deep link that opens the document with the span highlighted." },
|
|
22877
|
+
{ question: "How should I treat a verdict of issues?", answer: "As a review pointer, not a falsification. It means the post-answer pass could not support at least one claim from the turn's own evidence. Route the answer to a human, show the correction field if present, and use the citation deep links to check the flagged claims at the source." },
|
|
22878
|
+
{ question: "Can verification be null?", answer: "Yes. verification is null when the turn produced no verdict. Treat it like unverifiable: fine for exploratory use, route to review where the answer feeds a decision." },
|
|
22879
|
+
{ question: "Do citation links work for people outside my Talonic workspace?", answer: "No. The app_url deep links open the document inside the Talonic app and require a signed-in member of the same workspace. For external consumers, resolve the evidence over the API instead: GET /v1/documents/:id and GET /v1/documents/:id/fields with your API key." }
|
|
22880
|
+
],
|
|
22881
|
+
mentions: ["citations", "provenance spans", "deep links", "verification verdict", "supported", "issues", "unverifiable", "coverage plane", "evidence-backed absence", "hallucination detection"]
|
|
21464
22882
|
}
|
|
21465
22883
|
];
|
|
21466
22884
|
|
|
21467
22885
|
// src/content/api/matching.ts
|
|
21468
|
-
var
|
|
22886
|
+
var sections39 = [
|
|
21469
22887
|
{
|
|
21470
22888
|
slug: "list-matching-configs",
|
|
21471
22889
|
parentSlug: "matching",
|
|
@@ -22800,7 +24218,7 @@ var sections37 = [
|
|
|
22800
24218
|
];
|
|
22801
24219
|
|
|
22802
24220
|
// src/content/api/delivery.ts
|
|
22803
|
-
var
|
|
24221
|
+
var sections40 = [
|
|
22804
24222
|
{
|
|
22805
24223
|
slug: "list-delivery-destinations",
|
|
22806
24224
|
parentSlug: "delivery",
|
|
@@ -24240,7 +25658,7 @@ var sections38 = [
|
|
|
24240
25658
|
];
|
|
24241
25659
|
|
|
24242
25660
|
// src/content/api/batches.ts
|
|
24243
|
-
var
|
|
25661
|
+
var sections41 = [
|
|
24244
25662
|
{
|
|
24245
25663
|
slug: "list-batches",
|
|
24246
25664
|
parentSlug: "batches",
|
|
@@ -24676,7 +26094,7 @@ var sections39 = [
|
|
|
24676
26094
|
];
|
|
24677
26095
|
|
|
24678
26096
|
// src/content/api/cases.ts
|
|
24679
|
-
var
|
|
26097
|
+
var sections42 = [
|
|
24680
26098
|
{
|
|
24681
26099
|
slug: "list-cases",
|
|
24682
26100
|
parentSlug: "cases",
|
|
@@ -25581,7 +26999,7 @@ var sections40 = [
|
|
|
25581
26999
|
];
|
|
25582
27000
|
|
|
25583
27001
|
// src/content/api/review.ts
|
|
25584
|
-
var
|
|
27002
|
+
var sections43 = [
|
|
25585
27003
|
{
|
|
25586
27004
|
slug: "list-review-items",
|
|
25587
27005
|
parentSlug: "review",
|
|
@@ -26085,7 +27503,7 @@ var sections41 = [
|
|
|
26085
27503
|
];
|
|
26086
27504
|
|
|
26087
27505
|
// src/content/api/quality.ts
|
|
26088
|
-
var
|
|
27506
|
+
var sections44 = [
|
|
26089
27507
|
{
|
|
26090
27508
|
slug: "list-quality-datasets",
|
|
26091
27509
|
parentSlug: "quality",
|
|
@@ -26831,7 +28249,7 @@ var sections42 = [
|
|
|
26831
28249
|
];
|
|
26832
28250
|
|
|
26833
28251
|
// src/content/api/routing-rules.ts
|
|
26834
|
-
var
|
|
28252
|
+
var sections45 = [
|
|
26835
28253
|
{
|
|
26836
28254
|
slug: "list-routing-rules",
|
|
26837
28255
|
parentSlug: "routing-rules",
|
|
@@ -27261,7 +28679,7 @@ var sections43 = [
|
|
|
27261
28679
|
];
|
|
27262
28680
|
|
|
27263
28681
|
// src/content/api/billing.ts
|
|
27264
|
-
var
|
|
28682
|
+
var sections46 = [
|
|
27265
28683
|
{
|
|
27266
28684
|
slug: "billing-settings",
|
|
27267
28685
|
parentSlug: "billing",
|
|
@@ -27666,7 +29084,7 @@ X-Talonic-Cells-Resolved-AI: 1`
|
|
|
27666
29084
|
];
|
|
27667
29085
|
|
|
27668
29086
|
// src/content/api/registry.ts
|
|
27669
|
-
var
|
|
29087
|
+
var sections47 = [
|
|
27670
29088
|
{
|
|
27671
29089
|
slug: "registry-query",
|
|
27672
29090
|
parentSlug: "registry",
|
|
@@ -27885,7 +29303,7 @@ var sections45 = [
|
|
|
27885
29303
|
];
|
|
27886
29304
|
|
|
27887
29305
|
// src/content/api/customer-ontologies.ts
|
|
27888
|
-
var
|
|
29306
|
+
var sections48 = [
|
|
27889
29307
|
{
|
|
27890
29308
|
slug: "customer-ontologies-overview",
|
|
27891
29309
|
parentSlug: "customer-ontologies",
|
|
@@ -28204,7 +29622,7 @@ var sections46 = [
|
|
|
28204
29622
|
];
|
|
28205
29623
|
|
|
28206
29624
|
// src/content/api/account.ts
|
|
28207
|
-
var
|
|
29625
|
+
var sections49 = [
|
|
28208
29626
|
{
|
|
28209
29627
|
slug: "get-account",
|
|
28210
29628
|
parentSlug: "account",
|
|
@@ -28370,7 +29788,7 @@ var sections47 = [
|
|
|
28370
29788
|
];
|
|
28371
29789
|
|
|
28372
29790
|
// src/content/api/nodes.ts
|
|
28373
|
-
var
|
|
29791
|
+
var sections50 = [
|
|
28374
29792
|
{
|
|
28375
29793
|
slug: "node-jobs",
|
|
28376
29794
|
parentSlug: "nodes",
|
|
@@ -28577,7 +29995,7 @@ var sections48 = [
|
|
|
28577
29995
|
];
|
|
28578
29996
|
|
|
28579
29997
|
// src/content/api/process.ts
|
|
28580
|
-
var
|
|
29998
|
+
var sections51 = [
|
|
28581
29999
|
{
|
|
28582
30000
|
slug: "submit-process",
|
|
28583
30001
|
parentSlug: "process",
|
|
@@ -28825,7 +30243,7 @@ var sections49 = [
|
|
|
28825
30243
|
];
|
|
28826
30244
|
|
|
28827
30245
|
// src/content/api/run.ts
|
|
28828
|
-
var
|
|
30246
|
+
var sections52 = [
|
|
28829
30247
|
{
|
|
28830
30248
|
slug: "run-spec",
|
|
28831
30249
|
parentSlug: "run",
|
|
@@ -28836,7 +30254,9 @@ var sections50 = [
|
|
|
28836
30254
|
{ type: "paragraph", text: 'The **Run** endpoint, `POST /v1/run`, is the one-call front door for Spec pipelines: send one or more documents together with a `spec_id`, and the platform ingests every input, waits for OCR, compiles the Spec\'s saved rail into a pipeline, and starts it \u2014 extraction, resolution, validation, and delivery exactly as composed in the Spec editor. It replaces the two-step "upload documents, then `POST /v1/pipelines`" flow for integrations that push files as they arrive.' },
|
|
28837
30255
|
{ type: "paragraph", text: "Inputs are flexible: attach up to 20 `files` as multipart parts, pass remote `file_urls` for documents the platform should download, or mix both in one call. At least one input is required. The endpoint always answers `202 Accepted` immediately with a `run_id` and a `poll_url` \u2014 ingestion and the pipeline run continue asynchronously, so the caller never blocks on OCR or LLM work." },
|
|
28838
30256
|
{ type: "paragraph", text: "Two optional tagging fields ride along and are stamped on **every document** the call ingests: `batch_id`, an opaque grouping key for correlating the run with an external job or batch, and `metadata`, a flat key-value object for anything else the caller wants to carry through. Both are echoed back by `GET /v1/run/:id`, and both surface on the ingested documents (`batch_id` / `metadata` on the document reads)." },
|
|
30257
|
+
{ type: "paragraph", text: "For a multi-file call, `file_metadata` tags individual inputs instead of stamping the same bag on every document: a JSON string keyed by each file's uploaded filename (or the exact `file_urls` entry), each value a flat object with the same shape and limits as `metadata`. Per file, its bag is merged over the call-level `metadata` \u2014 per-file wins on a shared key \u2014 and the resolved, per-input EFFECTIVE bag is what actually lands on the document and is echoed back in `documents[].metadata` on both this response and `GET /v1/run/:id`." },
|
|
28839
30258
|
{ type: "paragraph", text: "The 202 response carries a `documents[]` array \u2014 one entry per input, in the order you sent them \u2014 so you always know which platform document each upload became. Each entry has `document_id`, `filename`, `size_bytes`, and `source` (`file` or `file_url`). `document_id` is the **canonical** document: for a byte-identical re-upload it resolves to the existing document already on the platform rather than minting a new one, and the entry additionally carries `deduplicated: true` plus `linked_document_id`, the id of the thin per-upload link row created for this call. A first-time upload carries `deduplicated: false` and no `linked_document_id`." },
|
|
30259
|
+
{ type: "paragraph", text: "The `ingestion_target` field controls how deep ingestion goes after OCR. The default, `ingest`, makes every document **askable**: once a document's OCR markdown is ready, Stage-2 field capture runs asynchronously in the background, extracting every field into the workspace corpus that [`POST /v1/ask`](post-ask) answers over and feeding the field registry. Capture follows the answers, it never delays them: the Spec pipeline starts the moment OCR markdown is ready, without waiting for capture. Pass `extract` to restore markdown-only ingestion: no background capture runs, and the documents do not join the askable corpus." },
|
|
28840
30260
|
{ type: "callout", variant: "info", text: "Unlike POST /v1/process, this endpoint does not deduplicate submissions \u2014 every call starts a fresh run. Byte-identical documents are still content-deduplicated at the ingestion layer (the run reads the canonical document's data)." },
|
|
28841
30261
|
{
|
|
28842
30262
|
type: "endpoint",
|
|
@@ -28854,11 +30274,18 @@ var sections50 = [
|
|
|
28854
30274
|
{ name: "file_urls", type: "string[]", description: "Zero or more remote document URLs the platform downloads (SSRF-guarded)." },
|
|
28855
30275
|
{ name: "name", type: "string", description: "Optional display name for the run (max 200 chars)." },
|
|
28856
30276
|
{ name: "batch_id", type: "string", description: "Optional opaque grouping key (max 200 chars), stamped on every ingested document and echoed by GET /v1/run/:id." },
|
|
28857
|
-
{ name: "metadata", type: "string", description: "Optional JSON string of a FLAT object { key: string | number | boolean | null }. Nested objects/arrays are rejected 400. Limits: \u226450 keys, key \u2264128 chars, string value \u22641024 chars. Persisted on the run and stamped on every ingested document." }
|
|
30277
|
+
{ name: "metadata", type: "string", description: "Optional JSON string of a FLAT object { key: string | number | boolean | null }. Nested objects/arrays are rejected 400. Limits: \u226450 keys, key \u2264128 chars, string value \u22641024 chars. Persisted on the run and stamped on every ingested document." },
|
|
30278
|
+
{ name: "file_metadata", type: "string", description: "Optional JSON string of a map { inputKey: { key: string | number | boolean | null } } for tagging individual files in a multi-file call. inputKey is the file's uploaded filename (matching what documents[] echoes back) or the exact file_urls entry. Per key, the file's bag is merged over the call-level metadata \u2014 per-file wins, and null overrides rather than deletes. A key matching no input 400s as invalid_metadata; a key matching several same-named files applies to all of them. Capped at 20 entries and 64 KB of decoded JSON." },
|
|
30279
|
+
{ name: "pipeline_mode", type: "string", description: `Optional: "new" or "append". Overrides the Spec's configured pipeline mode for this call. append adds the documents to the newest eligible existing pipeline on the Spec instead of creating one, so bulk uploads accumulate into a single growing table. Omitted \u2192 the Spec's own setting (default new).` },
|
|
30280
|
+
{ name: "ingestion_target", type: "string", default: "ingest", description: "ingest (default) or extract. ingest kicks async Stage-2 field capture after OCR so the documents become askable via POST /v1/ask; the Spec pipeline starts on the OCR markdown either way and never waits for capture. extract is markdown-only: no capture, documents are not askable." }
|
|
28858
30281
|
]
|
|
28859
30282
|
}
|
|
28860
30283
|
]
|
|
28861
30284
|
},
|
|
30285
|
+
{ type: "heading", level: 2, id: "run-spec-append", text: "Append mode" },
|
|
30286
|
+
{ type: "paragraph", text: "By default every `/v1/run` call creates its own pipeline. When the Spec's Source stage sets **pipeline mode: append** (or the call passes `pipeline_mode=append`), the platform instead appends the call's documents to the newest eligible existing pipeline for the Spec \u2014 so pushing 1,000 documents over many calls produces one growing table instead of one pipeline per call. A pipeline is eligible while its configuration still matches the Spec (schema fields, policies, validation gates, assembly and review config) and it is under the append size cap; a config edit or a full pipeline simply rotates to a fresh pipeline, which becomes the next calls' append target. No call ever fails because appending was not possible." },
|
|
30287
|
+
{ type: "paragraph", text: "Under append mode, completion is **per request**, not per pipeline: the `run.completed` webhook fires when *this request's own documents* finish (its `structured_data` and `records[]` are scoped to them, and the payload carries the request's `run_id`), and `GET /v1/run/:id` reports status and progress for the request's documents only. The shared pipeline fires no pipeline-level `run.*` webhook of its own. Per-document `document.structured` deliveries are unaffected." },
|
|
30288
|
+
{ type: "callout", variant: "info", text: "Append mode changes only how runs target pipelines \u2014 extraction, resolution, validation, and delivery behave identically. Set it once on the Spec's Source stage for connector-style integrations that push files continuously; use the per-call pipeline_mode override to force a fresh pipeline (e.g. a clean monthly table) without touching the Spec." },
|
|
28862
30289
|
{
|
|
28863
30290
|
type: "code",
|
|
28864
30291
|
title: "curl",
|
|
@@ -28868,6 +30295,7 @@ var sections50 = [
|
|
|
28868
30295
|
-F "spec_id=1fc7807e-e1aa-4504-b796-5709986e78ed" \\
|
|
28869
30296
|
-F "batch_id=ERP-2026-07-14-001" \\
|
|
28870
30297
|
-F 'metadata={"source_system":"sap","priority":1}' \\
|
|
30298
|
+
-F 'file_metadata={"invoice-0847.pdf":{"cost_center":"AP-14"}}' \\
|
|
28871
30299
|
-F "files=@invoice-0847.pdf" \\
|
|
28872
30300
|
-F "file_urls=https://example.com/contracts/msa-2026.pdf"`
|
|
28873
30301
|
},
|
|
@@ -28887,7 +30315,8 @@ var sections50 = [
|
|
|
28887
30315
|
{ name: "documents[].size_bytes", type: "integer | null", description: "File size in bytes." },
|
|
28888
30316
|
{ name: "documents[].source", type: "string", description: '"file" or "file_url" \u2014 which input kind produced this document.' },
|
|
28889
30317
|
{ name: "documents[].deduplicated", type: "boolean", description: "true when this upload content-matched an existing document; document_id then points at that existing (canonical) document." },
|
|
28890
|
-
{ name: "documents[].linked_document_id", type: "uuid", description: "Present only when deduplicated is true \u2014 the id of the thin link row created for this specific upload." }
|
|
30318
|
+
{ name: "documents[].linked_document_id", type: "uuid", description: "Present only when deduplicated is true \u2014 the id of the thin link row created for this specific upload." },
|
|
30319
|
+
{ name: "documents[].metadata", type: "object", description: "This input's EFFECTIVE metadata for this request \u2014 the call-level metadata merged with its file_metadata entry (per-file wins). Present only when set. Under byte-identical dedup this can differ from GET /v1/documents/:id's metadata, which keeps the canonical document's tags from its first submission \u2014 this echo is the authoritative source for what THIS call tagged." }
|
|
28891
30320
|
]
|
|
28892
30321
|
},
|
|
28893
30322
|
{
|
|
@@ -28905,7 +30334,8 @@ var sections50 = [
|
|
|
28905
30334
|
"filename": "invoice-0847.pdf",
|
|
28906
30335
|
"size_bytes": 184320,
|
|
28907
30336
|
"source": "file",
|
|
28908
|
-
"deduplicated": false
|
|
30337
|
+
"deduplicated": false,
|
|
30338
|
+
"metadata": { "source_system": "sap", "priority": 1, "cost_center": "AP-14" }
|
|
28909
30339
|
},
|
|
28910
30340
|
{
|
|
28911
30341
|
"document_id": "9f1e2d3c-4b5a-6789-0123-456789abcdef",
|
|
@@ -28924,7 +30354,7 @@ var sections50 = [
|
|
|
28924
30354
|
type: "param-table",
|
|
28925
30355
|
title: "Error responses",
|
|
28926
30356
|
params: [
|
|
28927
|
-
{ name: "400", type: "missing_spec_id / no_input / invalid_metadata", description: "spec_id absent or malformed, no file or file_url supplied,
|
|
30357
|
+
{ name: "400", type: "missing_spec_id / no_input / invalid_metadata", description: "spec_id absent or malformed, no file or file_url supplied, metadata is not a valid flat JSON object, or file_metadata fails validation (a bad per-file bag, the merged bag exceeding the caps, or a key that matches no file/file_url \u2014 the error names the offending key)." },
|
|
28928
30358
|
{ name: "401", type: "unauthorized", description: "Missing or invalid API key." },
|
|
28929
30359
|
{ name: "402", type: "insufficient_credits", description: "Credit balance too low for the ingest work \u2014 no documents are ingested and no run is created." },
|
|
28930
30360
|
{ name: "413", type: "file_too_large", description: "A file exceeds your tier's per-file size cap." },
|
|
@@ -28935,6 +30365,7 @@ var sections50 = [
|
|
|
28935
30365
|
related: [
|
|
28936
30366
|
{ label: "Poll a Run", slug: "poll-spec-run" },
|
|
28937
30367
|
{ label: "Run a Pipeline (documents already uploaded)", slug: "run-pipeline" },
|
|
30368
|
+
{ label: "Ask Your Documents", slug: "post-ask" },
|
|
28938
30369
|
{ label: "Webhook Events", slug: "webhook-events" },
|
|
28939
30370
|
{ label: "Credits & Usage", slug: "credits-usage" }
|
|
28940
30371
|
],
|
|
@@ -28944,9 +30375,12 @@ var sections50 = [
|
|
|
28944
30375
|
{ question: "What are batch_id and metadata for?", answer: "They are caller-owned tags. batch_id is an opaque grouping key (your ERP job number, import batch, ticket id); metadata is a flat key-value object for anything else. Both are stamped on every document the call ingests and echoed back when polling the run, so you can correlate platform output with your own systems without a lookup table." },
|
|
28945
30376
|
{ question: "Does polling count against my rate limit?", answer: "Polling GET /v1/run/:id is metered under the general read namespace, not the run submission namespace \u2014 frequent polling never burns your daily submission quota." },
|
|
28946
30377
|
{ question: "What happens if I run out of credits?", answer: "The call is rejected up front with 402 insufficient_credits before any document is ingested \u2014 no partial run is created. Top up and resubmit the same call." },
|
|
28947
|
-
{ question: "
|
|
30378
|
+
{ question: "What does ingestion_target do?", answer: "It sets how deep ingestion goes after OCR. The default, ingest, kicks asynchronous Stage-2 field capture once a document's OCR markdown is ready, which puts the document into the corpus POST /v1/ask answers over and feeds the field registry. The Spec pipeline starts on the OCR markdown in both modes and never waits for capture, so the default costs you no run latency. Pass extract for the old markdown-only behavior; those documents will not be askable." },
|
|
30379
|
+
{ question: "How do I match run.completed results back to my uploads?", answer: "Use document_id. Each entry in the submit response's documents[] array carries the canonical document_id for that input, and each row in the run.completed webhook's records[] array carries the same document_id (plus filename) for the output it produced \u2014 join on that field to attribute a structured row back to the file or URL you sent. For a deduplicated upload (deduplicated: true), document_id points at the pre-existing canonical document, and linked_document_id identifies the link row created for this specific call." },
|
|
30380
|
+
{ question: "Should I use append mode for bulk uploads?", answer: "Yes, when you want one accumulated table: with pipeline_mode=append (or the Spec's Source stage set to append) every call adds its documents to the same pipeline, and each request still gets its own run.completed webhook scoped to its own documents. Keep the default (new) when each call should produce an isolated pipeline \u2014 e.g. one pipeline per customer folder." },
|
|
30381
|
+
{ question: "How do I tag individual files differently in one call?", answer: "Use file_metadata instead of (or alongside) metadata: a JSON string mapping each file's filename, or each file_urls entry, to its own flat metadata object. Per file, that bag is merged over the call-level metadata \u2014 per-file wins on a shared key \u2014 and the resolved bag lands on the document and is echoed in documents[].metadata. A key that does not match any file or URL in the call fails the whole request with a 400 naming the bad key, so a typo never silently tags nothing." }
|
|
28948
30382
|
],
|
|
28949
|
-
mentions: ["spec", "pipeline run", "one-call ingest", "batch_id", "client metadata", "multipart upload", "file_urls", "webhook", "documents[]", "deduplication", "linked_document_id"]
|
|
30383
|
+
mentions: ["spec", "pipeline run", "one-call ingest", "batch_id", "client metadata", "file_metadata", "multipart upload", "file_urls", "webhook", "documents[]", "deduplication", "linked_document_id", "pipeline_mode", "append mode"]
|
|
28950
30384
|
},
|
|
28951
30385
|
{
|
|
28952
30386
|
slug: "poll-spec-run",
|
|
@@ -28985,6 +30419,7 @@ var sections50 = [
|
|
|
28985
30419
|
{ name: "spec_id", type: "uuid", description: "The Spec being run." },
|
|
28986
30420
|
{ name: "status", type: "string", description: "processing, completed, or failed. processing covers both the pre-pipeline ingestion/OCR wait and the pipeline actually executing." },
|
|
28987
30421
|
{ name: "pipeline_id", type: "uuid | null", description: "The compiled pipeline, once it exists." },
|
|
30422
|
+
{ name: "pipeline_mode", type: "string", description: "Present only when recorded: the effective mode the run resolved to (new or append). Under append the pipeline is shared across requests, and status/progress are scoped to THIS request's own documents." },
|
|
28988
30423
|
{ name: "input_count", type: "integer", description: "Total inputs accepted at submission." },
|
|
28989
30424
|
{ name: "batch_id", type: "string | null", description: "The caller grouping key supplied on submission, echoed back." },
|
|
28990
30425
|
{ name: "metadata", type: "object | null", description: "The validated flat metadata object supplied on submission, echoed back." },
|
|
@@ -28992,6 +30427,7 @@ var sections50 = [
|
|
|
28992
30427
|
{ name: "progress", type: "object | null", description: "Present once the pipeline has started: total_documents, completed_documents, error_documents." },
|
|
28993
30428
|
{ name: "documents[]", type: "array", description: "The submit-time documents[] array, each entry augmented with a per-document status. Omitted for runs submitted before this field existed." },
|
|
28994
30429
|
{ name: "documents[].status", type: "string", description: "processing, completed, or failed for this specific document." },
|
|
30430
|
+
{ name: "documents[].metadata", type: "object", description: "This input's EFFECTIVE per-request metadata (call-level metadata merged with its file_metadata entry, per-file wins), echoed from submission. Present only when set." },
|
|
28995
30431
|
{ name: "created_at", type: "string", description: "ISO 8601 submission timestamp." },
|
|
28996
30432
|
{ name: "updated_at", type: "string", description: "ISO 8601 last-transition timestamp." }
|
|
28997
30433
|
]
|
|
@@ -29019,6 +30455,7 @@ var sections50 = [
|
|
|
29019
30455
|
"size_bytes": 184320,
|
|
29020
30456
|
"source": "file",
|
|
29021
30457
|
"deduplicated": false,
|
|
30458
|
+
"metadata": { "source_system": "sap", "priority": 1, "cost_center": "AP-14" },
|
|
29022
30459
|
"status": "completed"
|
|
29023
30460
|
}
|
|
29024
30461
|
],
|
|
@@ -29045,14 +30482,15 @@ var sections50 = [
|
|
|
29045
30482
|
{ question: "What do the three statuses mean?", answer: "processing = the run is in flight \u2014 either ingestion/OCR before a pipeline exists, or the Spec's compiled pipeline actually executing (both fold to the same word); completed = the run finished with usable output; failed = no usable output (every document errored, or ingestion itself failed \u2014 see error_message)." },
|
|
29046
30483
|
{ question: "When does a run count as failed?", answer: "Only when every document errored. A partially successful run \u2014 some documents completed, some errored \u2014 reports completed, with the error count in progress.error_documents, and the failing documents visible on the pipeline." },
|
|
29047
30484
|
{ question: "Where is the structured output?", answer: "Per document, at your delivery destinations: configure a binding on the document.structured signal (pipeline.capture deliverable) and each document's structured fields are pushed as a payload when it finishes. Alternatively read the pipeline's data product or record set via pipeline_id, or subscribe to run.completed and read its records[] array." },
|
|
29048
|
-
{ question: "What does the per-document status in documents[] tell me?", answer: "Whether that specific input has finished, independent of the overall run: processing, completed, or failed. This lets you show progress for individual uploads in a multi-file run instead of waiting for every document to settle. It is derived from live pipeline-document state, so it can complete before the top-level run status does." }
|
|
30485
|
+
{ question: "What does the per-document status in documents[] tell me?", answer: "Whether that specific input has finished, independent of the overall run: processing, completed, or failed. This lets you show progress for individual uploads in a multi-file run instead of waiting for every document to settle. It is derived from live pipeline-document state, so it can complete before the top-level run status does." },
|
|
30486
|
+
{ question: "What changes when pipeline_mode is append?", answer: "The pipeline behind the run is shared by many requests, so the poll reports YOUR request: status folds over this request's own documents (completed once they are all terminal, failed only when they all errored), and progress counts them \u2014 not the whole shared pipeline. The run.completed webhook is scoped the same way and carries this run_id." }
|
|
29049
30487
|
],
|
|
29050
|
-
mentions: ["run status", "polling", "pipeline progress", "batch_id", "metadata echo", "run.completed webhook", "documents[] status"]
|
|
30488
|
+
mentions: ["run status", "polling", "pipeline progress", "batch_id", "metadata echo", "file_metadata", "run.completed webhook", "documents[] status"]
|
|
29051
30489
|
}
|
|
29052
30490
|
];
|
|
29053
30491
|
|
|
29054
30492
|
// src/content/api/reference-data.ts
|
|
29055
|
-
var
|
|
30493
|
+
var sections53 = [
|
|
29056
30494
|
{
|
|
29057
30495
|
slug: "list-reference-data",
|
|
29058
30496
|
parentSlug: "reference-data",
|
|
@@ -29486,7 +30924,7 @@ V003,Initech Ltd,DE,DE987654321`
|
|
|
29486
30924
|
];
|
|
29487
30925
|
|
|
29488
30926
|
// src/content/api/errors-rate-limits.ts
|
|
29489
|
-
var
|
|
30927
|
+
var sections54 = [
|
|
29490
30928
|
{
|
|
29491
30929
|
slug: "error-format",
|
|
29492
30930
|
parentSlug: "errors-rate-limits",
|
|
@@ -29657,7 +31095,7 @@ X-RateLimit-Reset: 2026-04-26T00:00:00.000Z`
|
|
|
29657
31095
|
];
|
|
29658
31096
|
|
|
29659
31097
|
// src/content/api/usage.ts
|
|
29660
|
-
var
|
|
31098
|
+
var sections55 = [
|
|
29661
31099
|
{
|
|
29662
31100
|
slug: "usage-overview",
|
|
29663
31101
|
parentSlug: "usage",
|
|
@@ -29931,7 +31369,7 @@ var sections53 = [
|
|
|
29931
31369
|
];
|
|
29932
31370
|
|
|
29933
31371
|
// src/content/api/pricing.ts
|
|
29934
|
-
var
|
|
31372
|
+
var sections56 = [
|
|
29935
31373
|
{
|
|
29936
31374
|
slug: "pricing-overview",
|
|
29937
31375
|
parentSlug: "pricing",
|
|
@@ -30044,7 +31482,7 @@ console.log(\`Batch: \${batchCredits} credits (\${batchCredits / pricing.cred
|
|
|
30044
31482
|
];
|
|
30045
31483
|
|
|
30046
31484
|
// src/content/api/document-types.ts
|
|
30047
|
-
var
|
|
31485
|
+
var sections57 = [
|
|
30048
31486
|
{
|
|
30049
31487
|
slug: "list-document-types",
|
|
30050
31488
|
parentSlug: "document-types",
|
|
@@ -30210,7 +31648,7 @@ var sections55 = [
|
|
|
30210
31648
|
];
|
|
30211
31649
|
|
|
30212
31650
|
// src/content/api/dialects.ts
|
|
30213
|
-
var
|
|
31651
|
+
var sections58 = [
|
|
30214
31652
|
{
|
|
30215
31653
|
slug: "list-dialects",
|
|
30216
31654
|
parentSlug: "dialects",
|
|
@@ -30758,7 +32196,7 @@ var sections56 = [
|
|
|
30758
32196
|
];
|
|
30759
32197
|
|
|
30760
32198
|
// src/content/api/fields.ts
|
|
30761
|
-
var
|
|
32199
|
+
var sections59 = [
|
|
30762
32200
|
{
|
|
30763
32201
|
slug: "list-fields",
|
|
30764
32202
|
parentSlug: "fields",
|
|
@@ -31207,7 +32645,7 @@ var sections57 = [
|
|
|
31207
32645
|
];
|
|
31208
32646
|
|
|
31209
32647
|
// src/content/api/data-products.ts
|
|
31210
|
-
var
|
|
32648
|
+
var sections60 = [
|
|
31211
32649
|
{
|
|
31212
32650
|
slug: "list-data-products",
|
|
31213
32651
|
parentSlug: "data-products",
|
|
@@ -31862,7 +33300,7 @@ curl -s https://api.talonic.com/v1/data-products/6ecb46fa-24ba-4b5d-93ee-b8b6c6b
|
|
|
31862
33300
|
];
|
|
31863
33301
|
|
|
31864
33302
|
// src/content/api/data-policies.ts
|
|
31865
|
-
var
|
|
33303
|
+
var sections61 = [
|
|
31866
33304
|
{
|
|
31867
33305
|
slug: "list-data-policies",
|
|
31868
33306
|
parentSlug: "data-policies",
|
|
@@ -32667,7 +34105,7 @@ var sections59 = [
|
|
|
32667
34105
|
];
|
|
32668
34106
|
|
|
32669
34107
|
// src/content/api/record-sets.ts
|
|
32670
|
-
var
|
|
34108
|
+
var sections62 = [
|
|
32671
34109
|
{
|
|
32672
34110
|
slug: "list-record-sets",
|
|
32673
34111
|
parentSlug: "record-sets",
|
|
@@ -33187,7 +34625,7 @@ var sections60 = [
|
|
|
33187
34625
|
];
|
|
33188
34626
|
|
|
33189
34627
|
// src/content/api/pipelines.ts
|
|
33190
|
-
var
|
|
34628
|
+
var sections63 = [
|
|
33191
34629
|
{
|
|
33192
34630
|
slug: "run-pipeline",
|
|
33193
34631
|
parentSlug: "pipelines",
|
|
@@ -33813,7 +35251,7 @@ var sections61 = [
|
|
|
33813
35251
|
];
|
|
33814
35252
|
|
|
33815
35253
|
// src/content/api/field-reviews.ts
|
|
33816
|
-
var
|
|
35254
|
+
var sections64 = [
|
|
33817
35255
|
{
|
|
33818
35256
|
slug: "list-field-reviews",
|
|
33819
35257
|
parentSlug: "field-reviews",
|
|
@@ -34693,7 +36131,7 @@ dec_uuid_1,a1b2c3d4-e5f6-7890-abcd-ef1234567890,lease_oct.pdf,total_amount,gate,
|
|
|
34693
36131
|
];
|
|
34694
36132
|
|
|
34695
36133
|
// src/content/api/spec-config.ts
|
|
34696
|
-
var
|
|
36134
|
+
var sections65 = [
|
|
34697
36135
|
{
|
|
34698
36136
|
slug: "get-spec-rail",
|
|
34699
36137
|
parentSlug: "spec-config",
|
|
@@ -35705,7 +37143,7 @@ var sections63 = [
|
|
|
35705
37143
|
];
|
|
35706
37144
|
|
|
35707
37145
|
// src/content/api/reconciliation.ts
|
|
35708
|
-
var
|
|
37146
|
+
var sections66 = [
|
|
35709
37147
|
{
|
|
35710
37148
|
slug: "analyze-reconciliation",
|
|
35711
37149
|
parentSlug: "reconciliation",
|
|
@@ -36296,7 +37734,7 @@ var sections64 = [
|
|
|
36296
37734
|
];
|
|
36297
37735
|
|
|
36298
37736
|
// src/content/api/matching-packages.ts
|
|
36299
|
-
var
|
|
37737
|
+
var sections67 = [
|
|
36300
37738
|
{
|
|
36301
37739
|
slug: "create-matching-package-config",
|
|
36302
37740
|
parentSlug: "matching-packages",
|
|
@@ -37242,7 +38680,7 @@ talonic --help` }
|
|
|
37242
38680
|
];
|
|
37243
38681
|
|
|
37244
38682
|
// src/content/sdk/index.ts
|
|
37245
|
-
var
|
|
38683
|
+
var sections68 = sections_default;
|
|
37246
38684
|
|
|
37247
38685
|
// src/content/mcp/sections.json
|
|
37248
38686
|
var sections_default2 = [
|
|
@@ -39737,7 +41175,7 @@ var sections_default2 = [
|
|
|
39737
41175
|
];
|
|
39738
41176
|
|
|
39739
41177
|
// src/content/mcp/index.ts
|
|
39740
|
-
var
|
|
41178
|
+
var sections69 = sections_default2;
|
|
39741
41179
|
|
|
39742
41180
|
// src/content/index.ts
|
|
39743
41181
|
var ALL_PLATFORM_RAW = [
|
|
@@ -39758,10 +41196,10 @@ var ALL_PLATFORM_RAW = [
|
|
|
39758
41196
|
...sections15,
|
|
39759
41197
|
...sections16,
|
|
39760
41198
|
...sections17,
|
|
39761
|
-
...sections18
|
|
41199
|
+
...sections18,
|
|
41200
|
+
...sections19
|
|
39762
41201
|
];
|
|
39763
41202
|
var ALL_API_RAW = [
|
|
39764
|
-
...sections19,
|
|
39765
41203
|
...sections20,
|
|
39766
41204
|
...sections21,
|
|
39767
41205
|
...sections22,
|
|
@@ -39794,8 +41232,8 @@ var ALL_API_RAW = [
|
|
|
39794
41232
|
...sections49,
|
|
39795
41233
|
...sections50,
|
|
39796
41234
|
...sections51,
|
|
41235
|
+
...sections52,
|
|
39797
41236
|
...sections53,
|
|
39798
|
-
...sections54,
|
|
39799
41237
|
...sections55,
|
|
39800
41238
|
...sections56,
|
|
39801
41239
|
...sections57,
|
|
@@ -39807,10 +41245,12 @@ var ALL_API_RAW = [
|
|
|
39807
41245
|
...sections63,
|
|
39808
41246
|
...sections64,
|
|
39809
41247
|
...sections65,
|
|
39810
|
-
...
|
|
41248
|
+
...sections66,
|
|
41249
|
+
...sections67,
|
|
41250
|
+
...sections54
|
|
39811
41251
|
];
|
|
39812
|
-
var ALL_SDK_RAW = [...
|
|
39813
|
-
var ALL_MCP_RAW = [...
|
|
41252
|
+
var ALL_SDK_RAW = [...sections68];
|
|
41253
|
+
var ALL_MCP_RAW = [...sections69];
|
|
39814
41254
|
function enrich(raw, navSections, domain) {
|
|
39815
41255
|
return raw.map((r) => {
|
|
39816
41256
|
const { prev, next } = derivePrevNext(navSections, r.slug);
|