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.
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
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": {}
}
]
}Explain Memory
The complete audit answer for one memory in a single call. Composes identity/origin tier, the transaction-time version audit (with chain hashes), both supersession directions, lineage roots, decision provenance, and live chain verification, in the explain-contract shape. Absent and no-access are both 404 (masked per house auth style).
Export Ontology
Export the full ontology as a portable dict for backup/migration.