Skip to main content
The fact must be declared first. Candidates are the nodes carrying that fact_key that were known at as_of (and, with valid_at, in force then). The declared policy picks one. When it cannot, the answer says so and attaches every candidate.

Request

string
required
The fact_key.
timestamp or date
required
timestamp
timestamp
Apply the declaration that was in force at this instant instead of at as_of. Declarations are time-aware, so a fact declared today is undeclared_fact for a 2024 as_of unless you pass rules_as_of. When given, it is recorded in the certificate.

Response

Always 200.
string
answered or no_answer.
any
The chosen fact_value, when answered.
string
When no_answer: undeclared_fact (no declaration at that instant), no_data (no node carries this key), not_yet (values exist but none was known at as_of), no_value_at (none in force at valid_at), unresolved_conflict (the policy cannot choose; all candidates attached).
string
The policy applied.
object[]
Every candidate considered, with its value and times.
object
Scoped to this fact. Carries rules_as_of when it was given.
Add "valid_at": "2024-06-01" to the first request to ask “what was in force in June, as known in October”: the answer is up.