Retrieve a decision by ID. With as_of, as it stood then (404 if it did not exist yet).
Send Authorization: Bearer <token>. The token is either a Clerk session JWT or a SmartMemory API key (prefix sm_live_, sm_test_, or legacy sk_).
In: header
Path Parameters
Query Parameters
JSON exact site qualifier
Business validity datetime
ISO 8601 instant (SM-ASOF-DECISIONS-1). Answer as of then: the decisions held at that instant (supersession and retraction honoured), each labelled as_of_resolution. Absent = now. An unparseable value is a 400.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/memory/decisions/string"{
"recorded_by": "string",
"recorded_for": "string",
"created_at": "string",
"created_at_source": "recorded",
"recorded_later": false,
"replaces": [
{
"decision_id": "string",
"visible": true,
"at": "string",
"by": "string",
"reason": "string"
}
],
"replaced": {
"decision_id": "string",
"visible": true,
"at": "string",
"by": "string",
"reason": "string",
"how": "direct",
"proposed_by": "string",
"approved_by": "string",
"review_id": "string"
},
"pending_review": {
"review_id": "string",
"trigger": "string",
"proposed_by": "string",
"proposed_at": "string"
},
"auto_change": {
"change_id": "string",
"status": "unchecked"
},
"display_status": "string"
}{
"detail": {
"code": "invalid_scoped_validity",
"message": "string",
"retryable": false
}
}{
"detail": {
"code": "invalid_scoped_validity",
"message": "string",
"retryable": false
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"detail": {
"code": "invalid_scoped_validity",
"message": "string",
"retryable": false
}
}Get Decision History
A decision's dated history, newest first: versions, replacements, retract and restore, review answers and evidence links, each with who and why (N5, N6, N8). 404 when unknown or not readable (N21).
Get Decision Provenance
Get full provenance chain for a decision. With ``as_of``, as it stood then (no later successor).