Skip to main content
GET
Facts as recorded, with provenance: by subject, quantity, scenario and as-of date. Compute figures with POST /figures/query.

Authorizations

Authorization
string
header
required

An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's security lists the scopes it needs; several entries mean any one of them will do. A person field (ref(user), ref_list(user)) holds a user id: look people up by email or id with GET /v1/users, outside this API, with a key that also has users:read.

Scopes

object_model:facts:read

Query Parameters

subject_ids
string[]

The subjects by id. With neither these nor records, a read covers the organization's whole scope.

world_id
string

The scenario to read; what it does not override comes from its parent scenarios. Leave it out to read outside any scenario.

known_as_of
string<date-time>

Read only what was recorded by this time (RFC 3339). Leave it out to read everything recorded.

quantity_ids
string[]

The quantities to read.

include_superseded
boolean

Every revision of each fact, not only the current one.

include_retracted
boolean

Also return retracted facts, each marked retracted.

newest_first
boolean

Order facts newest first, by the date they are about. Default oldest first.

offset
integer<int32>

Facts to skip, per quantity.

Required range: x >= 0
limit
integer<int32>

Facts per page, per quantity.

Required range: x >= 0

Response

Answered.

attribute_sources
object[]
buckets
object[]
excluded_group_keys
string[]
exclusion_role_totals
object[]
exclusions
object[]
facts
object[]
figures
object[]
matched_records

With context.records: how many records the selection matched — the subjects read. 0 is an empty selection, answered without reading.

narrowed_to_reader
boolean
per_quantity
object[]
revisions
object[]
snapshot_id
string
total_dates
total_facts
total_figures
what_ifs
object[]