SmartMemory
GET
/memory/decisions/{decision_id}

Retrieve a decision by ID. With as_of, as it stood then (404 if it did not exist yet).

Authorization

AuthorizationBearer <token>

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

decision_id*Decision Id

Query Parameters

business_scope?|

JSON exact site qualifier

valid_at?|

Business validity datetime

as_of?|

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
  }
}