Skip to main content

Cases from Linking

List cases: groups of two or more documents Talonic links through a shared transaction or reference value, such as one PO number, with counts and labels.

A case is a group of two or more documents that share a transaction or reference value. An invoice, a purchase order and a delivery note with the same PO number form one case. Talonic builds cases on its own as documents are linked, so you get one view of everything that belongs together without walking the individual links.

List cases to build case lists, dashboards or review queues. Each case carries a document_count, a stable UUID id for detail lookups, and a case_key derived from its member documents. label holds a readable name when one has been generated, otherwise null; links.self points to the case detail.

Each document belongs to at most one case. Documents connected only by identity values, such as the same vendor ID, form entity groups in the full link view but are not returned here.

Use the case graph to see how the documents of one case connect, and the document-case map for a flat lookup by document. Cases are rebuilt during a backfill; after you change link keys, run a backfill so case membership is up to date.

  • Each case has a stable UUID (id) and a case key (case_key) derived from its document IDs.
  • Cases are built as documents are processed and again during a backfill.
  • Documents connected only by identity values form entity groups, not cases.
GET/v1/cases

Request

curl https://api.talonic.com/v1/cases \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Response

Response fields

dataarrayCase objects.
data[].idstringCase UUID, the stable ID used in API paths.
data[].case_keystringCase key derived from the member documents; not the same as id.
data[].labelstring | nullReadable name of the case.
data[].document_countintegerNumber of documents in the case.
data[].created_atstring | nullISO 8601 timestamp of the last time the case was built.
data[].links.selfstringURL of the case detail.

Response

{
  "data": [
    {
      "id": "5c7fa78c-4d92-4613-9f42-9fe74458d8a9",
      "case_key": "a1b2c3d4e5f6a7b8",
      "label": "Acme Corp Q4 Invoices",
      "document_count": 4,
      "created_at": "2024-09-14T10:32:00.000Z",
      "links": {
        "self": "/v1/cases/5c7fa78c-4d92-4613-9f42-9fe74458d8a9"
      }
    }
  ]
}

Errors

Error responses

401unauthorizedMissing or invalid API key.
429rate_limitedToo many requests. Retry after the period in the Retry-After header.

Frequently asked questions

How are cases different from entity groups?+
A case needs at least one shared transaction or reference value, such as a PO number. Documents that share only identity values, such as a vendor ID, form an entity group and not a case.
Can a document belong to more than one case?+
No. Each document belongs to at most one case. case_key is derived from the documents in the group, while id is a stable UUID that stays the same when the case is rebuilt.
Which identifier do I use to get case detail?+
The UUID id, for example GET /v1/cases/5c7fa78c-4d92-4613-9f42-9fe74458d8a9. The case_key is a fingerprint of the member documents, carried for reference, not a path parameter.