Export the full ontology as a portable dict for backup/migration.
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
Response Body
application/json
curl -X GET "https://example.com/memory/ontology/export"nullExport Okf Bundle
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.
Export Registry Snapshot
Export a registry snapshot. Requires authentication and validates registry ownership.