Read the Object Model
Compute the workspace object model on request: group documents by Spec or type, filter by tag, and read types, edges, wanted claims, and totals in one call.
GET /v1/object-model computes the model of the workspace on each request. group chooses how documents become types. With spec (the default), a document sits under the Spec whose latest completed, non-preview run captured it, and a document captured by several Specs counts once, under the newest run. With document_type, documents are grouped by their classified document type, and each type lists in sources the Specs that captured documents of it. tag keeps only documents carrying that tag; records and reference tables are unaffected, and claims from other documents count as claims_outside.
The response lists types, edges and wanted, the totals, the tag the model was filtered to, and tags, the workspace's document tags most used first (at most 30), so a client can offer the filter without a second call. generated_at is the time the model was computed. Nothing is cached, so each call reflects the current documents, claims and bindings.
/v1/object-modelQuery parameters
specResponse fields
Type fields (types[])
Totals (totals)
cURL: Group by document type, one cohort
curl "https://api.talonic.com/v1/object-model?group=document_type&tag=2026-renewal" \
-H "Authorization: Bearer $TALONIC_API_KEY"Errors
A group outside spec and document_type, or a tag longer than 100 characters, is refused with 400. A key that is not scoped to a concrete workspace cannot be given a model: the master view is not valid for this read and answers 422. A missing or invalid key answers 401, a key without the read scope or an app service key answers 403, and too many requests answer 429.
truncated: true; treat their counts as lower bounds.