Skip to main content

Cases From Document References

Read the cases Talonic builds from the references your documents make to each other, with their evidence; rename them, mark them resolved, and get a short narrative.

Talonic reads the references each document makes to others (an invoice citing its order number, a delivery note citing its invoice) and groups the documents that reference each other into one case. Each relation carries the passage that states it, so you can check why two documents belong together. These are the cases on the Cases page of the app.

Every read shows only documents you can see. A case whose documents are all hidden from you is left out of the list and answers 404 on its own, exactly like a case that does not exist.

List cases

GET/v1/relation-claims/cases

Query parameters

limitintegerPage size, 1 to 200. Default 50.
offsetintegerRows to skip. Default 0.
resolvedbooleantrue lists resolved cases instead of open ones. Default false.

curl

curl -s "https://api.talonic.com/v1/relation-claims/cases?limit=20" \
  -H "Authorization: Bearer tlnc_your_api_key"

Get a case and its evidence

GET/v1/relation-claims/cases/{caseKey}

curl

curl -s https://api.talonic.com/v1/relation-claims/cases/0f8b6c2e-1d4a-4b6e-9a51-3c2d7e8f9a10 \
  -H "Authorization: Bearer tlnc_your_api_key"

Rename or resolve a case

PATCH/v1/relation-claims/cases/{caseKey}

Body

display_namestringNew name, up to 200 characters. An empty string clears the name.
resolvedbooleantrue marks the case resolved; false reopens it.

curl

curl -s -X PATCH https://api.talonic.com/v1/relation-claims/cases/0f8b6c2e-1d4a-4b6e-9a51-3c2d7e8f9a10 \
  -H "Authorization: Bearer tlnc_your_api_key" \
  -H "Idempotency-Key: rename-4711" \
  -H "Content-Type: application/json" \
  -d '{"display_name": "Order 4711", "resolved": true}'

Response fields

case_keystringThe case key.
display_namestring | nullThe stored name.
resolvedbooleanWhether the case is resolved.
resolved_atstring | nullWhen it was marked resolved (ISO 8601).

Write the case narrative

POST/v1/relation-claims/cases/{caseKey}/narrate

Body

langstringLanguage of the text, for example de. Default en.

curl

curl -s -X POST https://api.talonic.com/v1/relation-claims/cases/0f8b6c2e-1d4a-4b6e-9a51-3c2d7e8f9a10/narrate \
  -H "Authorization: Bearer tlnc_your_api_key" \
  -H "Content-Type: application/json" -d '{"lang": "en"}'

Case map

GET/v1/relation-claims/graph

Errors

Error responses

400bad_requestInvalid parameters, or no specific workspace selected.
401unauthorizedMissing or invalid API key or token.
403insufficient_scope / insufficient_roleThe credential lacks cases:write, or the person behind it may not make this change. The reason field says which.
404not_foundThe case does not exist or none of its documents are visible to you.
409idempotency_request_in_progressA request with the same Idempotency-Key is still running. Retry shortly to receive its result.
422idempotency_key_reusedThe Idempotency-Key was already used for a different request.
429rate_limitedToo many requests. Retry after the period in the Retry-After header.

Frequently asked questions

Which case key do I use?+
The case_key from GET /v1/relation-claims/cases. These keys are separate from the ids of GET /v1/cases.
Does narrating cost credits every time?+
No. The narrative is stored per case and language and is written again only after the case changes.