Import an OKF bundle into the caller's workspace without re-ingestion.
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/memory/okf/import" \ -F file="string"{
"property1": 0,
"property2": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Idp Drift Status
Return the latest IdP drift sweep report. SEC-HARDENING-1 M3: superadmin-gated. This endpoint exposes cross-tenant sweep counts (users checked, drift detected, tokens revoked across every Clerk-linked user); the router's ``ScopePolicy.system`` bypasses tenant context, so without an explicit role gate any authenticated caller could read it. ``require_superadmin`` restricts it to platform operators. Response shape: { "sweep_enabled": bool, "status": "no_sweep_run" | "ok", "last_run_at": datetime | null, "users_checked": int, "drift_detected": int, "tokens_revoked": int }
Import Ontology
Import OntologyIR data to seed or migrate the ontology. Accepts a dict with OntologyIR format. Creates entity types and patterns.