SmartMemory
GET
/memory/okf/export

Export the caller's workspace memories as a compressed OKF bundle.

Requires the spine authority's export_all (a workspace admin grant, and an API key also needs export:memories), 403 otherwise. One export audit row per call (WS-MGMT-18). That authority is the route's only workspace-grant decision in both sm2_identity_grant_gate arms (fix r1, review F1: the G80 _GRANT_ADMIN dependency answered first with the gate ON, so a refusal left no audit row and a paired Team's admin never reached the paired-Team rule). Authentication and the router's read:memories scope ceiling stay.

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

Query Parameters

memory_type?string|null
limit?Limit

Response Body

application/json

application/json

curl -X GET "https://example.com/memory/okf/export"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}