{"openapi": "3.1.0", "info": {"title": "Zanii Agents", "version": "0.16.1", "description": "Rentable, receipted agents: the client console (session), the A2A JSON-RPC surface (Bearer) and the extensions. Every error body is {\"error\": {\"code\", \"message\"}}."}, "servers": [{"url": "https://agents.zanii.agency"}], "tags": [{"name": "Auth"}, {"name": "Console"}, {"name": "Engagements"}, {"name": "Releases"}, {"name": "Tasks"}, {"name": "Agents"}, {"name": "Tokens"}, {"name": "Static"}, {"name": "A2A"}, {"name": "MarketExtension"}, {"name": "market"}, {"name": "TaskOps"}, {"name": "Webhooks"}, {"name": "Finance"}, {"name": "Assurance"}, {"name": "DataRoom"}, {"name": "atrest"}, {"name": "Lifecycle"}, {"name": "Teams"}, {"name": "I18n"}, {"name": "Durable"}, {"name": "Access"}, {"name": "StepUp"}, {"name": "Operators"}, {"name": "WebTools"}, {"name": "ZaniiIdEvents"}, {"name": "Connect"}, {"name": "Egress"}, {"name": "Models"}, {"name": "Walls"}, {"name": "Provenance"}, {"name": "Sentinel"}, {"name": "Admin"}, {"name": "Plans"}, {"name": "AuditChain"}, {"name": "Backup"}, {"name": "Notify"}, {"name": "OpenApi"}, {"name": "web"}, {"name": "Web"}, {"name": "Slo"}, {"name": "TenantOps"}], "paths": {"/auth/login": {"get": {"summary": "Start the Zanii ID code flow (302 to the issuer, PKCE S256)", "tags": ["Auth"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/auth/callback": {"get": {"summary": "Finish the code flow: iss + state checked, one token exchange, session cookie", "tags": ["Auth"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/auth/logout": {"post": {"summary": "End the session", "tags": ["Auth"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": []}]}}, "/api/me": {"get": {"summary": "The signed-in client, its CSRF token and the ledger URL", "tags": ["Console"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/jobs": {"get": {"summary": "Catalogue: profiles x outcomes, AED prices, serving agents", "tags": ["Console"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements": {"get": {"summary": "The client's engagements", "tags": ["Engagements"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "Hire: {job_id, agent_did, client_did?} -> pending engagement + the package to sign", "tags": ["Engagements"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}": {"get": {"summary": "One engagement with its SLA and offer package", "tags": ["Engagements"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/signatures": {"post": {"summary": "{sla_signature?, escrow_signatures?}: activate / open escrows; forgery is 400", "tags": ["Engagements"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/releases/pending": {"get": {"summary": "Escrows to sign and release requests to verify", "tags": ["Releases"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/releases": {"post": {"summary": "{escrow_hash, instruction}: the client-signed release; paid over the rail once", "tags": ["Releases"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/tasks": {"post": {"summary": "{engagement_id, text, async?} -> the task and the escrow body to sign", "tags": ["Tasks"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "Page the client's tasks (limit <= 100, offset)", "tags": ["Tasks"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/tasks/{id}": {"get": {"summary": "One task (state, receipt, output while cached)", "tags": ["Tasks"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/agents/{did}/cv": {"get": {"summary": "The signed AgentCV and its verification", "tags": ["Agents"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/agents/{did}/evidence": {"get": {"summary": "Evidence pack (?framework=&format=md|json)", "tags": ["Agents"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/agents/{did}/receipts": {"get": {"summary": "The client's slice of the agent's ledger receipts", "tags": ["Agents"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/agents/{did}/revoke": {"post": {"summary": "Kill switch: {reason}; audited", "tags": ["Agents"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/tokens": {"post": {"summary": "Issue an agt_ API token ({label}); plaintext shown once", "tags": ["Tokens"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "list tokens", "tags": ["Access"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/tokens/{id}": {"delete": {"summary": "Revoke an API token", "tags": ["Tokens"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/.well-known/agent.json": {"get": {"summary": "The A2A agent card", "tags": ["A2A"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/healthz": {"get": {"summary": "Liveness", "tags": ["A2A"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/readyz": {"get": {"summary": "Readiness (503 while draining or when the DB ping fails)", "tags": ["A2A"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/api/market/listings": {"get": {"summary": "search listings", "tags": ["MarketExtension"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "publish listing", "tags": ["MarketExtension"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/market/listings/{id}": {"get": {"summary": "get listing", "tags": ["MarketExtension"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/market/listings/external": {"post": {"summary": "publish external", "tags": ["MarketExtension"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/market/listings/{id}/availability": {"post": {"summary": "set availability", "tags": ["MarketExtension"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/market": {"get": {"summary": "public market", "tags": ["MarketExtension"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/api/trials": {"post": {"summary": "create trial", "tags": ["MarketExtension"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "list trials", "tags": ["MarketExtension"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/trials/{id}": {"get": {"summary": "get trial", "tags": ["MarketExtension"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/trials/{id}/tasks": {"post": {"summary": "trial task", "tags": ["MarketExtension"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/trials/{id}/convert": {"post": {"summary": "convert trial", "tags": ["MarketExtension"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/onboarding/kyb": {"post": {"summary": "submit kyb", "tags": ["market"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/onboarding": {"get": {"summary": "onboarding status", "tags": ["market"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/onboarding/kya/{agent_did}": {"post": {"summary": "kya", "tags": ["MarketExtension"], "parameters": [{"name": "agent_did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/onboarding/kyb/{id}/review": {"post": {"summary": "kyb review", "tags": ["MarketExtension"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/org/members": {"get": {"summary": "list members", "tags": ["market"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "invite member", "tags": ["market"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/org/members/{id}": {"delete": {"summary": "remove member", "tags": ["market"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/org/members/{id}/role": {"post": {"summary": "set member role", "tags": ["market"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/config": {"get": {"summary": "get config", "tags": ["MarketExtension"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "put config", "tags": ["MarketExtension"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/approvals": {"get": {"summary": "list approvals", "tags": ["TaskOps"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/approvals/{id}": {"get": {"summary": "get approval", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/approvals/{id}/approve": {"post": {"summary": "approve", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/approvals/{id}/reject": {"post": {"summary": "reject", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/tasks/{id}/cancel": {"post": {"summary": "cancel", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/tasks/{id}/events": {"get": {"summary": "Polled SSE. `after=N` continues after the task's N-th trace line: the Observability", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/schedules": {"post": {"summary": "create schedule", "tags": ["TaskOps"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "list schedules", "tags": ["TaskOps"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/schedules/{id}": {"get": {"summary": "get schedule", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "delete": {"summary": "delete schedule", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/schedules/{id}/pause": {"post": {"summary": "pause schedule", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/schedules/{id}/resume": {"post": {"summary": "resume schedule", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/batches": {"post": {"summary": "create batch", "tags": ["TaskOps"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/batches/{id}": {"get": {"summary": "get batch", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/batches/{id}/export": {"get": {"summary": "export batch", "tags": ["TaskOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/webhooks": {"post": {"summary": "create", "tags": ["Webhooks"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "list", "tags": ["Webhooks"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/webhooks/{id}": {"delete": {"summary": "delete", "tags": ["Webhooks"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/webhooks/{id}/test": {"post": {"summary": "test", "tags": ["Webhooks"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/webhooks/{id}/deliveries": {"get": {"summary": "list deliveries", "tags": ["Webhooks"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/budgets": {"post": {"summary": "post budget", "tags": ["Finance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "get budgets", "tags": ["Finance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/budgets/{id}": {"post": {"summary": "update budget", "tags": ["Finance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "delete": {"summary": "delete budget", "tags": ["Finance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/statements": {"get": {"summary": "get statement", "tags": ["Finance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/invoices": {"post": {"summary": "post invoice", "tags": ["Finance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "get invoices", "tags": ["Finance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/invoices/{id}": {"get": {"summary": "get invoice", "tags": ["Finance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/invoices/{id}/paid": {"post": {"summary": "invoice paid", "tags": ["Finance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/refunds": {"get": {"summary": "get refunds", "tags": ["Finance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "A goodwill refund request by the client; the operator approves (signs) or rejects it.", "tags": ["Finance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/refunds/{id}/accept": {"post": {"summary": "refund accept", "tags": ["Finance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/refunds/{id}/approve": {"post": {"summary": "Operator: sign the client's goodwill request with the provider key and settle it.", "tags": ["Finance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/refunds/{id}/reject": {"post": {"summary": "refund reject", "tags": ["Finance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/disputes": {"post": {"summary": "post dispute", "tags": ["Assurance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "get disputes", "tags": ["Assurance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/disputes/{id}": {"get": {"summary": "get dispute", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/disputes/{id}/respond": {"post": {"summary": "respond", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/disputes/{id}/resolve": {"post": {"summary": "resolve", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/disputes/{id}/withdraw": {"post": {"summary": "withdraw", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/sla": {"get": {"summary": "get sla", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/sla/events": {"get": {"summary": "get sla events", "tags": ["Assurance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/insurance": {"post": {"summary": "post insurance", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "get insurance", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/insurance/claims": {"post": {"summary": "post claim", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/tasks/{id}/rating": {"post": {"summary": "post rating", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/reference": {"get": {"summary": "get reference body", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "post reference", "tags": ["Assurance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/agents/{did}/ratings": {"get": {"summary": "get agent ratings", "tags": ["Assurance"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/agents/{did}/references": {"get": {"summary": "get agent references", "tags": ["Assurance"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/files": {"post": {"summary": "upload", "tags": ["DataRoom"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "list", "tags": ["DataRoom"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/files/{id}": {"get": {"summary": "download", "tags": ["atrest"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "delete": {"summary": "delete", "tags": ["DataRoom"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/retention": {"get": {"summary": "get retention", "tags": ["Lifecycle"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "post retention", "tags": ["Lifecycle"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/retention/hold": {"post": {"summary": "post hold", "tags": ["Lifecycle"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/end": {"post": {"summary": "end engagement", "tags": ["Lifecycle"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/export": {"get": {"summary": "export", "tags": ["Lifecycle"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/clients/erase": {"post": {"summary": "erase", "tags": ["Lifecycle"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/agents/{did}/versions": {"post": {"summary": "release version", "tags": ["Lifecycle"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/version": {"get": {"summary": "get version", "tags": ["Lifecycle"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/version/accept": {"post": {"summary": "accept version", "tags": ["Lifecycle"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/incidents": {"get": {"summary": "list incidents", "tags": ["Lifecycle"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "report incident", "tags": ["Lifecycle"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/incidents/{id}": {"get": {"summary": "get incident", "tags": ["Lifecycle"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/incidents/{id}/note": {"post": {"summary": "note incident", "tags": ["Lifecycle"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/incidents/{id}/resolve": {"post": {"summary": "resolve incident", "tags": ["Lifecycle"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/status": {"get": {"summary": "status json", "tags": ["Lifecycle"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/status.html": {"get": {"summary": "status html", "tags": ["Lifecycle"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/api/engagements/{id}/capacity": {"get": {"summary": "get capacity", "tags": ["Lifecycle"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "post capacity", "tags": ["Lifecycle"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/teams": {"post": {"summary": "create", "tags": ["Teams"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "list", "tags": ["Teams"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/teams/{id}": {"get": {"summary": "get", "tags": ["Teams"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/teams/{id}/hire": {"post": {"summary": "console_api._create_engagement on the lead, with terms.team bound into the SLA body", "tags": ["Teams"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/teams/{id}/tasks": {"post": {"summary": "task", "tags": ["Teams"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/teams/{id}/tasks/{task_id}/chain": {"get": {"summary": "get chain", "tags": ["Teams"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "task_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/teams/{id}/end": {"post": {"summary": "end", "tags": ["Teams"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/i18n/{lang}": {"get": {"summary": "get catalog", "tags": ["I18n"], "parameters": [{"name": "lang", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/api/i18n.js": {"get": {"summary": "get js", "tags": ["I18n"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/api/locale": {"get": {"summary": "get locale", "tags": ["I18n"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "set locale", "tags": ["I18n"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/tasks/{id}/runs": {"get": {"summary": "The attempt counters; `runs` is null for a task that never failed or was re-queued.", "tags": ["Durable"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/tasks/{id}/retry": {"post": {"summary": "post retry", "tags": ["Durable"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/tokens/{id}/policy": {"post": {"summary": "set policy", "tags": ["Access"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/tokens/{id}/rotate": {"post": {"summary": "rotate", "tags": ["Access"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/auth/step-up": {"get": {"summary": "A fresh PKCE login (the console's pre-session mechanics) asking the IdP for `acr_values`", "tags": ["StepUp"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/operators": {"get": {"summary": "list operators", "tags": ["Operators"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/web": {"get": {"summary": "get policy", "tags": ["WebTools"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "set policy", "tags": ["WebTools"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/webhooks/zanii-id": {"post": {"summary": "receive", "tags": ["ZaniiIdEvents"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/api/engagements/{id}/connect": {"post": {"summary": "bind", "tags": ["Connect"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "get", "tags": ["Connect"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "delete": {"summary": "revoke", "tags": ["Connect"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/connect/preview": {"post": {"summary": "Validate a key without storing it and list what it can do (the console's allowlist picker).", "tags": ["Connect"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/connect/connections": {"get": {"summary": "connections", "tags": ["Connect"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/connect/tools": {"get": {"summary": "tools", "tags": ["Connect"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/connect/actions": {"get": {"summary": "actions route", "tags": ["Connect"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/connect/approvals": {"get": {"summary": "approvals", "tags": ["Connect"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/connect/actions/{id}/refresh": {"post": {"summary": "refresh route", "tags": ["Connect"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/engagements/{id}/egress": {"get": {"summary": "get", "tags": ["Egress"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "set", "tags": ["Egress"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/models": {"get": {"summary": "list models", "tags": ["Models"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/engagements/{id}/model": {"get": {"summary": "get policy", "tags": ["Models"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "post policy", "tags": ["Models"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/agents/{did}/build": {"get": {"summary": "get build", "tags": ["Models"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/tasks/{id}/model": {"get": {"summary": "get task model", "tags": ["Models"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/tasks/{id}/wall": {"get": {"summary": "get task", "tags": ["Walls"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/agents/{did}/wall": {"get": {"summary": "get agent", "tags": ["Walls"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/tasks/{id}/credential": {"get": {"summary": "get task", "tags": ["Provenance"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/verify/credential": {"get": {"summary": "No session: the recipient of a document checks who signed it. Nothing about the client.", "tags": ["Provenance"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/api/agents/{did}/sentinel": {"get": {"summary": "get agent", "tags": ["Sentinel"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/agents/{did}/sentinel/rebaseline": {"post": {"summary": "post rebaseline", "tags": ["Sentinel"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/sentinel/findings/{id}/ack": {"post": {"summary": "post ack", "tags": ["Sentinel"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/admin/clients": {"get": {"summary": "list clients", "tags": ["Admin"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/clients/{id}": {"get": {"summary": "get client", "tags": ["Admin"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/clients/{id}/suspend": {"post": {"summary": "suspend", "tags": ["Admin"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/admin/clients/{id}/reactivate": {"post": {"summary": "reactivate", "tags": ["Admin"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/admin/agents/{did}/halt": {"post": {"summary": "halt agent", "tags": ["Admin"], "parameters": [{"name": "did", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/admin/queues": {"get": {"summary": "get queues", "tags": ["Admin"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/queues/{name}/act": {"post": {"summary": "act queue", "tags": ["Admin"], "parameters": [{"name": "name", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/admin/audit": {"get": {"summary": "get audit", "tags": ["Admin"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/metrics": {"get": {"summary": "get metrics", "tags": ["Admin"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/maintenance": {"post": {"summary": "post maintenance", "tags": ["Admin"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "get maintenance", "tags": ["Admin"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/health": {"get": {"summary": "get health", "tags": ["Admin"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/drain": {"post": {"summary": "post drain", "tags": ["Admin"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}, "get": {"summary": "get drain", "tags": ["Admin"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/plans": {"get": {"summary": "get catalogue", "tags": ["Plans"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/api/plan": {"get": {"summary": "get plan", "tags": ["Plans"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/usage": {"get": {"summary": "get usage", "tags": ["Plans"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/clients/{id}/plan": {"post": {"summary": "post client plan", "tags": ["Plans"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/admin/usage": {"get": {"summary": "get admin usage", "tags": ["Plans"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/audit/verify": {"get": {"summary": "get verify", "tags": ["AuditChain"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/audit/export": {"get": {"summary": "JSON lines from `from` to `to` (default: the head), at most EXPORT_MAX_ROWS per reply:", "tags": ["AuditChain"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/audit/anchor": {"post": {"summary": "post anchor", "tags": ["AuditChain"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/admin/audit/anchors": {"get": {"summary": "get anchors", "tags": ["AuditChain"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/backup": {"post": {"summary": "202 with a job id. The run happens on a thread; when it finishes within `wait_s`", "tags": ["Backup"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/admin/backups": {"get": {"summary": "route list", "tags": ["Backup"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/backup/drill": {"post": {"summary": "route drill", "tags": ["Backup"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/events": {"get": {"summary": "list events", "tags": ["Notify"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/webhooks/{id}/replay": {"post": {"summary": "replay", "tags": ["Notify"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/notifications": {"get": {"summary": "get prefs", "tags": ["Notify"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}, "post": {"summary": "set prefs", "tags": ["Notify"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/notifications/test": {"post": {"summary": "test", "tags": ["Notify"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/openapi.json": {"get": {"summary": "The OpenAPI 3.1 document for this deployment.", "tags": ["OpenApi"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/docs": {"get": {"summary": "Human-readable route list rendered from the OpenAPI document.", "tags": ["OpenApi"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/how-it-works": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/industries": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/for": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/pricing": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/security": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/about": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/contact": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/privacy": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/terms": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/industries/{id}": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/for/{type}": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [{"name": "type", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/404": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/how-it-works": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/industries": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/for": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/pricing": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/security": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/about": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/contact": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/privacy": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/terms": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/industries/{id}": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/for/{type}": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [{"name": "type", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/ar/404": {"get": {"summary": "<lambda>", "tags": ["web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/robots.txt": {"get": {"summary": "robots", "tags": ["Web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/sitemap.xml": {"get": {"summary": "sitemap", "tags": ["Web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/llms.txt": {"get": {"summary": "llms", "tags": ["Web"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/assets/{name}": {"get": {"summary": "asset", "tags": ["Web"], "parameters": [{"name": "name", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/api/slo": {"get": {"summary": "The signed-in client's SLO numbers per window.", "tags": ["Slo"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/slo": {"get": {"summary": "Every client's SLO numbers (operator).", "tags": ["TenantOps"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": [{"session": []}]}}, "/api/admin/clients/{id}/export": {"post": {"summary": "Operator: the whole tenant as a zip (rows, refs, files, manifest).", "tags": ["TenantOps"], "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/api/admin/clients/import": {"post": {"summary": "Operator: {path (a zip on the server), new_client_id?} -> the import report.", "tags": ["TenantOps"], "parameters": [], "responses": {"200": {"description": "OK"}, "4XX": {"description": "error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"content": {"application/json": {"schema": {"type": "object"}}}}, "security": [{"session": [], "csrf": []}]}}, "/v1/": {"post": {"summary": "JSON-RPC 2.0: message/send, tasks/get, tasks/list", "tags": ["A2A"], "security": [{"apiToken": []}, {"zaniiId": []}], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RpcRequest"}}}}, "responses": {"200": {"description": "result or error object", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RpcResponse"}}}}, "401": {"description": "unauthorized (-32003)"}, "413": {"description": "body too large (-32011)"}, "429": {"description": "rate limited (-32029)"}, "503": {"description": "shutting down (-32000)"}}, "x-methods": {"message/send": "params.message.parts[].text, params.agent (did), params.async -> the task", "tasks/get": "params.id -> the task (another tenant's id is -32001)", "tasks/list": "params.limit (1..200), params.offset -> {tasks, limit, offset}"}, "x-errors": [{"code": -32700, "message": "parse error", "http": 200}, {"code": -32602, "message": "invalid params", "http": 200}, {"code": -32601, "message": "method not found", "http": 200}, {"code": -32600, "message": "invalid request", "http": 200}, {"code": -32029, "message": "rate limited", "http": 429}, {"code": -32011, "message": "body too large", "http": 413}, {"code": -32010, "message": "agent halted", "http": 200}, {"code": -32003, "message": "unauthorized", "http": 401}, {"code": -32001, "message": "task not found", "http": 200}, {"code": -32000, "message": "shutting down", "http": 503}]}}}, "components": {"securitySchemes": {"session": {"type": "apiKey", "in": "cookie", "name": "zanii_console", "description": "HttpOnly session set by /auth/callback"}, "csrf": {"type": "apiKey", "in": "header", "name": "X-CSRF-Token", "description": "from GET /api/me, on every write"}, "apiToken": {"type": "http", "scheme": "bearer", "description": "agt_ token from POST /api/tokens"}, "zaniiId": {"type": "http", "scheme": "bearer", "bearerFormat": "JWT", "description": "Zanii ID id token"}}, "schemas": {"Error": {"type": "object", "required": ["error"], "properties": {"error": {"type": "object", "required": ["code", "message"], "properties": {"code": {"type": "string"}, "message": {"type": "string"}}}}}, "RpcRequest": {"type": "object", "required": ["jsonrpc", "method"], "properties": {"jsonrpc": {"const": "2.0"}, "id": {}, "method": {"type": "string", "enum": ["message/send", "tasks/get", "tasks/list"]}, "params": {"type": "object"}}}, "RpcResponse": {"type": "object", "properties": {"jsonrpc": {"const": "2.0"}, "id": {}, "result": {"type": "object"}, "error": {"type": "object", "properties": {"code": {"type": "integer"}, "message": {"type": "string"}}}}}}}}