Skip to main content
POST
Facts as recorded, with every filter: period window, scenario, as-of date, axis filters, and superseded and retracted revisions. 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

Body

application/json

What POST /facts/query takes. Takes only the parameters listed here; any other is refused (400 unsupported_parameter).

context
object

What to compute over: which records (subject_ids, or a selection in records), the time window, and the scenario (world_id).

include_retracted
boolean

Also return retracted facts, each marked retracted.

include_superseded
boolean

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

limit
integer

Facts per page, per quantity.

newest_first
boolean

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

offset
integer

Facts to skip, per quantity.

quantity_ids
string[]

The quantities to read.

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[]