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
/v1/relation-claims/casesQuery parameters
true 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
/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
/v1/relation-claims/cases/{caseKey}Body
true 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
Write the case narrative
/v1/relation-claims/cases/{caseKey}/narrateBody
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
/v1/relation-claims/graphErrors
Error responses
cases:write, or the person behind it may not make this change. The reason field says which.Idempotency-Key is still running. Retry shortly to receive its result.Idempotency-Key was already used for a different request.Frequently asked questions
Which case key do I use?+
case_key from GET /v1/relation-claims/cases. These keys are separate from the ids of GET /v1/cases.