Return a contract-shaped surfacing response for the current turn.
Errors:
400 budget_too_small: max_tokens too small to fit the
smallest mandatory item.
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
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request body for POST /memory/context. Mirrors contract request section.
Response Body
application/json
application/json
curl -X POST "https://example.com/memory/context" \ -H "Content-Type: application/json" \ -d '{ "session_id": "string", "query": "string" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Worker Queues
Return summary for all worker streams + consumer liveness. Superadmin only.
Get Workspace Access
Read one Workspace's Team grants and direct user grants. Same authority as share and revoke: a tenant admin or a caller whose effective permission on the Workspace is ``admin``. Another tenant's or an unknown Workspace id answers 404, never 403.