---
title: "The workspace's object types and the links between them"
method: GET
path: "/v1/object-model"
tags: ["Object Model"]
---

# The workspace's object types and the links between them

`GET /v1/object-model`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/object-model`
- Auth: HTTP bearer

Computes the object model of the workspace on each request. `group` chooses how documents become types: `spec` puts a document under the Spec whose latest completed non-preview run captured it (a document captured by several Specs counts once, under the newest run); `document_type` groups by classified document type. `tag` keeps only documents carrying that tag; claims from other documents count as `claims_outside`, and records and reference tables are unaffected. Documents hidden from the key's minting user by Sources IAM are left out of the types, edges and wanted list.

## Query parameters

- `group` 'spec' | 'document_type'
- `tag` string

## Response `200`

The object model.

- ObjectModel
  - `generated_at` string, date-time
  - `grouping` 'spec' | 'document_type'
  - `types` ObjectModelType[]
    - `id` string: Stable id: `master:<domain>`, `spec:<schema id>`, `doctype:<name>`, `table:<reference data id>`.
    - `kind` 'master' | 'spec' | 'document_type' | 'table': `master` a Master Records domain, `spec` documents captured by one Spec, `document_type` documents of one classified type, `table` a reference table.
    - `label` string, nullable: Domain key, Spec name, classified type name or table name; null for unclassified documents.
    - `count` integer: Golden records, documents or table rows of this type.
    - `sources` string[]: Systems the records come from (`master`), or the Specs that captured documents of this type (`document_type`).
    - `ref` string, nullable: The Spec, reference table or domain the node points at.
  - `edges` ObjectModelEdge[]
    - `id` string
    - `source` string: Id of the source type.
    - `target` string: Id of the target type.
    - `relation` string: A claim's `relation_type`, or `evidences`, `names_party`, `keyed_to`, `shares_key`.
    - `key` string, nullable: For `shared_key`, the canonical key field joined on; for `party_*` methods, the party field.
    - `origin` 'structured' | 'document_text': `structured` for a deterministic join on keys; `document_text` for a relation read from a document's text.
    - `method` 'relation_claim' | 'claim_record' | 'master_evidence' | 'party_name' | 'party_crosswalk' | 'shared_key'
    - `links` integer: Links on the edge: resolved claims, attached documents, matched rows, shared key values.
    - `from_items` integer: Distinct source-side documents or rows carrying a link.
    - `unlinked` integer, nullable: Source-side items checked that found no link; null when not meaningful.
    - `truncated` boolean: True when a source was read only up to the configured row cap.
    - `example` ObjectModelEdgeExample, nullable: One link instance shown as an edge''s example.
      - `quote` string, nullable: The quoted words that carry the link.
      - `document_id` string, nullable
      - `filename` string, nullable
      - `page` integer, nullable
      - `target_document_id` string, nullable
      - `target_label` string, nullable
  - `wanted` ObjectModelWantedGroup[]
    - `source` string
    - `relation` string
    - `key_type` string: Primary key type the claims cite, for example `contract_no`, `order_no`.
    - `claims` integer
    - `documents` integer
    - `identifiers` integer: Distinct cited identifiers.
    - `example` object, nullable
      - `raw` string, nullable
      - `quote` string, nullable
      - `document_id` string
      - `filename` string, nullable
      - `page` integer, nullable
  - `totals` object
    - `documents` integer
    - `claims` integer
    - `claims_resolved` integer
    - `claims_unresolved` integer: Open claims that cite nothing on file (the wanted list's pool).
    - `claims_on_record` integer: Open claims whose cited identifier is a golden record's id in a system of record.
    - `claims_outside` integer: Resolved claims with an end at a document outside the model (deleted, hidden from the viewer, or excluded by `tag`).
  - `tag` string, nullable: The document tag the model was filtered to.
  - `tags` object[]: The workspace's document tags, most used first, for the filter (top 30).
    - `tag` string
    - `documents` integer

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `422`: The request is well-formed but violates the declared task contract.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/object-model/get.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
