Skip to main content

Linking Endpoint Reference

Reference for 1 Linking endpoint of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.

Document linking — link keys, document links, linked identifiers, classification, and backfill operations.

Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.

PATCH/v1/linking/link-keys/{fieldId}

Required scope: records:write

Path parameters

fieldId*string (uuid)The field id (from GET /v1/fields).

Request body (application/json)

link_key*boolean
link_key_categorystring ("identity", "transaction", "reference")What the value identifies: a party (identity), a business event (transaction) or a document reference.

curl

curl -X PATCH 'https://api.talonic.com/v1/linking/link-keys/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "link_key": true,
  "link_key_category": "identity"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/linking/link-keys/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "link_key": true,
    "link_key_category": "identity"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — OK

{
  "field_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "link_key": true,
  "link_key_category": "string",
  "backfill_triggered": true
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.