Skip to main content

Contract Party Management Endpoint Reference

Reference for 15 Contract Party Management endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.

Keeps every party behind the workspace's contracts as one entity (a person, a married couple, a company or an owners' association) with its details and the roles it holds on each contract, each role with its period and the evidence it rests on. A contract is a row of an assembled data product; parties come from the row's mapped fields, the fields captured from its documents, the Contracts app's filing and the contract register, and Talonic reads a contract's documents only on request. Every source only suggests: a role a person confirmed or rejected is never overwritten. These endpoints belong to the Contract Party Management app (catalog slug parties); they return 404 in a workspace that has not added the app — GET /v1/apps lists a workspace's apps by slug.

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

GET/v1/parties/{id}/contracts

Required scope: read

Path parameters

id*string (uuid)

Query parameters

product_idstring (uuid)Restrict the contracts to one data product.
limitintegerRows per page. Default: 50
offsetintegerWhere the page starts; wins over page.
pageintegerThe page number, limit rows each.

curl

curl -X GET 'https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/contracts' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/contracts", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The page.

{
  "total": 1,
  "offset": 1,
  "limit": 1,
  "data": [
    {
      "row": {
        "data_product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "product_name": "string",
        "row_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "label": "string",
        "document_ids": [],
        "read": "pending"
      },
      "roles": [
        {}
      ],
      "others": [
        {}
      ],
      "view": {
        "on": "2026-01-15",
        "partner": {},
        "manager": {},
        "tenant": {},
        "previous_owner": {},
        "new_owner": {},
        "effective_partner": {},
        "addressee": {},
        "owner_addressee": {},
        "contacts": [],
        "state": "confirmed"
      },
      "issues": [
        {}
      ]
    }
  ]
}
  • 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.
GET/v1/parties/{id}/documents

Required scope: read

Path parameters

id*string (uuid)

Query parameters

product_idstring (uuid)Restrict to one data product.
limitintegerRows per page. Default: 50
offsetintegerWhere the page starts; wins over page.
pageintegerThe page number, limit rows each.

curl

curl -X GET 'https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/documents' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/documents", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The page.

{
  "total": 1,
  "offset": 1,
  "limit": 1,
  "data": [
    {
      "document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "filename": "string",
      "row_label": "string",
      "quotes": [
        "string"
      ]
    }
  ]
}
  • 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.
GET/v1/parties/{id}/history

Required scope: read

Path parameters

id*string (uuid)

Query parameters

product_idstring (uuid)Restrict to one data product.
limitintegerRows per page. Default: 50
offsetintegerWhere the page starts; wins over page.
pageintegerThe page number, limit rows each.

curl

curl -X GET 'https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/history' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/history", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The page.

{
  "total": 1,
  "offset": 1,
  "limit": 1,
  "data": [
    {
      "at": "string",
      "kind": "former_name",
      "source": "string",
      "params": {}
    }
  ]
}
  • 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.
POST/v1/parties/{id}/directory-link

Required scope: write

Path parameters

id*string (uuid)

Request body (application/json)

external_idstringThe entry's id in the CRM; null unlinks.
kindstring ("company", "contact")The kind of entry; a person links to a contact and every other party to a company when omitted.

curl

curl -X POST 'https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/directory-link' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "external_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "kind": "company"
}'

Node.js (18+)

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

Response 201 — The party's link.

{
  "state": "linked",
  "kind": "company",
  "external_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "how": "exact",
  "candidates": [
    "string"
  ],
  "odd_address": true,
  "address_choice": "crm",
  "at": "2026-01-15T09:30:00Z",
  "by": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The party was not found, or no such entry is in the active directory.
POST/v1/parties/{id}/address-choice

Required scope: write

Path parameters

id*string (uuid)

Request body (application/json)

choice*string ("crm", "document")

curl

curl -X POST 'https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/address-choice' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "choice": "crm"
}'

Node.js (18+)

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

Response 201 — The party's link.

{
  "state": "linked",
  "kind": "company",
  "external_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "how": "exact",
  "candidates": [
    "string"
  ],
  "odd_address": true,
  "address_choice": "crm",
  "at": "2026-01-15T09:30:00Z",
  "by": "string"
}
  • 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.
  • 409 — The party is not linked to the directory.
POST/v1/parties/{id}/names

Required scope: write

Path parameters

id*string (uuid)

Request body (application/json)

name*string
kind*string ("alias", "former")
valid_tostring (date)For a former name: the day it ended.
notestring

curl

curl -X POST 'https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/names' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "kind": "alias",
  "valid_to": "2026-01-15",
  "note": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/3fa85f64-5717-4562-b3fc-2c963f66afa6/names", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "string",
    "kind": "alias",
    "valid_to": "2026-01-15",
    "note": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The name.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "party_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "string",
  "name_key": "string",
  "kind": "alias",
  "valid_to": "2026-01-15",
  "source": "string",
  "evidence": [
    {}
  ],
  "state": "suggested",
  "decided_by": "string",
  "decided_at": "2026-01-15T09:30:00Z",
  "created_at": "2026-01-15T09:30:00Z"
}
  • 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.
DELETE/v1/parties/names/{nameId}

Required scope: write

Path parameters

nameId*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/parties/names/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/names/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Removed.

{
  "deleted": 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.
  • 409 — The name came from the data; reject it instead.
PATCH/v1/parties/names/{nameId}

Required scope: write

Path parameters

nameId*string (uuid)

Request body (application/json)

state*string ("confirmed", "rejected")

curl

curl -X PATCH 'https://api.talonic.com/v1/parties/names/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "state": "confirmed"
}'

Node.js (18+)

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

Response 200 — The name.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "party_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "string",
  "name_key": "string",
  "kind": "alias",
  "valid_to": "2026-01-15",
  "source": "string",
  "evidence": [
    {}
  ],
  "state": "suggested",
  "decided_by": "string",
  "decided_at": "2026-01-15T09:30:00Z",
  "created_at": "2026-01-15T09:30:00Z"
}
  • 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.
GET/v1/parties/directory

Required scope: read

curl

curl -X GET 'https://api.talonic.com/v1/parties/directory' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/directory", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The directory.

{
  "active": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "label": "string",
    "source": "string",
    "activated_at": "2026-01-15T09:30:00Z",
    "companies": 1,
    "contacts": 1
  },
  "imports": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "label": "string",
      "status": "loading",
      "error": "string",
      "created_at": "2026-01-15T09:30:00Z",
      "counts": {},
      "stale": true
    }
  ]
}
  • 401 — Missing or invalid API key.
  • 403 — The key lacks the read scope, or its person is not a member with the ingest permission.
  • 404 — The requested resource was not found.
GET/v1/parties/directory/search

Required scope: read

Query parameters

q*string
kindstring ("company", "contact")
limitinteger Default: 20

curl

curl -X GET 'https://api.talonic.com/v1/parties/directory/search?q=string' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/directory/search?q=string", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The entries.

[
  {
    "external_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "kind": "company",
    "display_name": "string",
    "company_name": "string",
    "street": "string",
    "postcode": "string",
    "town": "string"
  }
]
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The key lacks the read scope, or its person is not a member of the workspace.
  • 404 — The requested resource was not found.
GET/v1/parties/directory/imports

Required scope: read

curl

curl -X GET 'https://api.talonic.com/v1/parties/directory/imports' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/directory/imports", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The imports.

[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "label": "string",
    "source": "string",
    "status": "loading",
    "error": "string",
    "counts": {},
    "created_at": "2026-01-15T09:30:00Z",
    "activated_at": "2026-01-15T09:30:00Z"
  }
]
  • 401 — Missing or invalid API key.
  • 403 — The key lacks the read scope, or its person is not a member with the ingest permission.
  • 404 — The requested resource was not found.
POST/v1/parties/directory/imports

Required scope: write

Request body (application/json)

sourcestring ("crm") Default: "crm"
label*string

curl

curl -X POST 'https://api.talonic.com/v1/parties/directory/imports' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "source": "crm",
  "label": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/directory/imports", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "source": "crm",
    "label": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The import.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The key lacks the write scope, or its person lacks the ingest permission.
  • 404 — The requested resource was not found.
  • 409 — A directory is being loaded already; wait for it to finish, or delete it.
DELETE/v1/parties/directory/imports/{id}

Required scope: write

Path parameters

id*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/parties/directory/imports/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/directory/imports/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Deleted.

{
  "deleted": true
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The key lacks the write scope, or its person lacks the ingest permission.
  • 404 — The requested resource was not found.
  • 409 — The import is the active directory.
POST/v1/parties/directory/imports/{id}/rows

Required scope: write

Path parameters

id*string (uuid)

Request body (application/json)

kind*string ("company", "contact")
rows*object[]
mapobjectEntry field to export column header.

curl

curl -X POST 'https://api.talonic.com/v1/parties/directory/imports/3fa85f64-5717-4562-b3fc-2c963f66afa6/rows' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "company",
  "rows": [
    {}
  ],
  "map": {
    "external_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "display_name": "string",
    "name2": "string",
    "first_name": "string",
    "last_name": "string",
    "position": "string",
    "company_name": "string",
    "street": "string",
    "postcode": "string",
    "town": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "website": "string"
  }
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/directory/imports/3fa85f64-5717-4562-b3fc-2c963f66afa6/rows", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "kind": "company",
    "rows": [
      {}
    ],
    "map": {
      "external_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "display_name": "string",
      "name2": "string",
      "first_name": "string",
      "last_name": "string",
      "position": "string",
      "company_name": "string",
      "street": "string",
      "postcode": "string",
      "town": "string",
      "country": "string",
      "phone": "string",
      "email": "string",
      "website": "string"
    }
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — What was stored and skipped.

{
  "stored": 1,
  "skipped": {
    "no_id": 1,
    "no_name": 1,
    "email_as_name": 1,
    "not_a_name": 1,
    "duplicate": 1
  }
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The key lacks the write scope, or its person lacks the ingest permission.
  • 404 — The requested resource was not found.
  • 409 — The import is no longer loading (active, replaced or failed).
POST/v1/parties/directory/imports/{id}/activate

Required scope: write

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/parties/directory/imports/3fa85f64-5717-4562-b3fc-2c963f66afa6/activate' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/parties/directory/imports/3fa85f64-5717-4562-b3fc-2c963f66afa6/activate", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The active directory.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "companies": 1,
  "contacts": 1
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The key lacks the write scope, or its person lacks the ingest permission.
  • 404 — The requested resource was not found.
  • 409 — The import is no longer loading, holds no company and no contact, or another directory was activated at the same moment.