{"components":{"schemas":{"Approval":{"properties":{"args":{"type":"object"},"context":{"type":"string"},"decided_at":{"format":"date-time","type":"string"},"decided_by":{"type":"string"},"decision_reason":{"type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"node_id":{"type":"string"},"policy_name":{"type":"string"},"requested_at":{"format":"date-time","type":"string"},"session_id":{"type":"string"},"status":{"enum":["pending","approved","denied","timeout","expired"],"type":"string"},"tool_name":{"type":"string"}},"type":"object"},"Error":{"properties":{"error":{"type":"string"}},"required":["error"],"type":"object"}},"securitySchemes":{"bearerAuth":{"description":"Either an OpenClaw gateway token (local OSS install) or a ClawMetry cm_\u2026 key (cloud). Token can be passed in the Authorization header (`Bearer <token>`) or for cloud endpoints as `?token=<value>` query string.","scheme":"bearer","type":"http"}}},"info":{"contact":{"name":"ClawMetry","url":"https://clawmetry.com"},"description":"ClawMetry \u2014 real-time observability + control plane for OpenClaw AI agents.\n\nEvery UI tab is backed by these endpoints. Build custom dashboards, integrate with KiloCode/Clawnify/internal tooling, or feed the data into your own analytics stack.\n\nAuth: Bearer token in `Authorization` header (cm_\u2026 key for cloud, gateway token for local OSS), or `?token=<value>` query string on cloud-flavored routes.","license":{"name":"MIT"},"title":"ClawMetry API","version":"0.10.9"},"openapi":"3.1.0","paths":{"/api/v1/":{"get":{"description":"","operationId":"get_api_v1_v1_index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_index","tags":["Other"]}},"/api/v1/account":{"get":{"description":"","operationId":"get_api_v1_v1_account","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_account","tags":["Account"]}},"/api/v1/activity":{"get":{"description":"Public v1 activity feed.\n\n    Events-table read removed (epic #1032 \u2014 events reads dead). Activity\n    feed will switch to the heartbeat-piggyback / DuckDB relay path; until\n    then we return an empty page so existing public-API clients keep\n    working without breaking the contract shape.","operationId":"get_api_v1_v1_activity","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Public v1 activity feed.","tags":["Activity"]}},"/api/v1/approvals":{"get":{"description":"","operationId":"get_api_v1_v1_approvals","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_approvals","tags":["Approvals"]}},"/api/v1/approvals/{approval_id}/decide":{"post":{"description":"","operationId":"post_api_v1_v1_approval_decide","parameters":[{"in":"path","name":"approval_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_approval_decide","tags":["Approvals"]}},"/api/v1/brain":{"get":{"description":"","operationId":"get_api_v1_v1_brain","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_brain","tags":["Other"]}},"/api/v1/console":{"get":{"description":"Self-contained key-management console (HTML). Public page; the API calls\n    it makes carry the user's Bearer token from localStorage.","operationId":"get_api_v1_v1_console","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Self-contained key-management console (HTML). Public page; the API calls","tags":["Other"]}},"/api/v1/docs":{"get":{"description":"Interactive API reference (Scalar, served from CDN). No auth: the page\n    is just the renderer; calls from it still require a Bearer token.","operationId":"get_api_v1_v1_docs","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Interactive API reference (Scalar, served from CDN). No auth: the page","tags":["Other"]}},"/api/v1/engines":{"delete":{"description":"","operationId":"delete_runtime_ingest_engines_stub","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_stub","tags":["Other"]},"get":{"description":"","operationId":"get_runtime_ingest_engines_stub","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_stub","tags":["Other"]},"patch":{"description":"","operationId":"patch_runtime_ingest_engines_stub","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_stub","tags":["Other"]},"post":{"description":"","operationId":"post_runtime_ingest_engines_stub","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_stub","tags":["Other"]},"put":{"description":"","operationId":"put_runtime_ingest_engines_stub","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_stub","tags":["Other"]}},"/api/v1/engines/{subpath}":{"delete":{"description":"","operationId":"delete_runtime_ingest_engines_subpath_stub","parameters":[{"in":"path","name":"subpath","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_subpath_stub","tags":["Other"]},"get":{"description":"","operationId":"get_runtime_ingest_engines_subpath_stub","parameters":[{"in":"path","name":"subpath","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_subpath_stub","tags":["Other"]},"patch":{"description":"","operationId":"patch_runtime_ingest_engines_subpath_stub","parameters":[{"in":"path","name":"subpath","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_subpath_stub","tags":["Other"]},"post":{"description":"","operationId":"post_runtime_ingest_engines_subpath_stub","parameters":[{"in":"path","name":"subpath","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_subpath_stub","tags":["Other"]},"put":{"description":"","operationId":"put_runtime_ingest_engines_subpath_stub","parameters":[{"in":"path","name":"subpath","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.engines_subpath_stub","tags":["Other"]}},"/api/v1/integrations":{"get":{"description":"","operationId":"get_api_v1_v1_integrations","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_integrations","tags":["Approvals"]},"post":{"description":"","operationId":"post_api_v1_v1_integrations_upsert","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_integrations_upsert","tags":["Approvals"]}},"/api/v1/keys":{"get":{"description":"","operationId":"get_api_v1_v1_keys_list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_keys_list","tags":["Other"]},"post":{"description":"","operationId":"post_api_v1_v1_keys_create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_keys_create","tags":["Other"]}},"/api/v1/keys/{key_id}":{"delete":{"description":"","operationId":"delete_api_v1_v1_keys_revoke","parameters":[{"in":"path","name":"key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_keys_revoke","tags":["Other"]}},"/api/v1/keys/{key_id}/rotate":{"post":{"description":"","operationId":"post_api_v1_v1_keys_rotate","parameters":[{"in":"path","name":"key_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_keys_rotate","tags":["Other"]}},"/api/v1/nodes":{"get":{"description":"","operationId":"get_api_v1_v1_nodes","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_nodes","tags":["Nodes"]}},"/api/v1/nodes/{node_id}":{"get":{"description":"","operationId":"get_api_v1_v1_node_detail","parameters":[{"in":"path","name":"node_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_node_detail","tags":["Nodes"]}},"/api/v1/nodes/{node_id}/runtimes":{"get":{"description":"Per-runtime index for a node, across ALL runtimes present on it.\n\n    Plaintext (server-side) \u2014 derived from the session_id prefix, the same\n    discriminator the dashboard's runtime switcher uses. No decryption needed,\n    so a mobile/web client can populate a runtime switcher from one cheap call.\n\n    Node-scoped on purpose: the flat ``/api/v1/runtimes`` path is owned by the\n    OSS custom-runtime ingest API (runtime_ingest blueprint), so we nest under\n    the node to avoid any collision and keep the route-policy audit clean.","operationId":"get_api_v1_v1_node_runtimes","parameters":[{"in":"path","name":"node_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"Per-runtime index for a node, across ALL runtimes present on it.","tags":["Nodes"]}},"/api/v1/openapi.json":{"get":{"description":"","operationId":"get_api_v1_v1_openapi","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_openapi","tags":["Other"]}},"/api/v1/policies":{"get":{"description":"","operationId":"get_api_v1_v1_policies","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_policies","tags":["Approvals"]},"post":{"description":"","operationId":"post_api_v1_v1_policies_create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_policies_create","tags":["Approvals"]}},"/api/v1/policies/{policy_id}":{"delete":{"description":"","operationId":"delete_api_v1_v1_policies_delete","parameters":[{"in":"path","name":"policy_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_policies_delete","tags":["Approvals"]}},"/api/v1/runs":{"post":{"description":"","operationId":"post_runtime_ingest_start_run_stub","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.start_run_stub","tags":["Other"]}},"/api/v1/runs/{run_id}":{"get":{"description":"","operationId":"get_runtime_ingest_get_run_stub","parameters":[{"in":"path","name":"run_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.get_run_stub","tags":["Other"]}},"/api/v1/runs/{run_id}/end":{"post":{"description":"","operationId":"post_runtime_ingest_end_run_stub","parameters":[{"in":"path","name":"run_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.end_run_stub","tags":["Other"]}},"/api/v1/runs/{run_id}/events":{"post":{"description":"","operationId":"post_runtime_ingest_append_events_stub","parameters":[{"in":"path","name":"run_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"runtime_ingest.append_events_stub","tags":["Other"]}},"/api/v1/runtimes":{"get":{"description":"List runtimes ClawMetry knows about. Free. Same data the runtime\n    switcher in the header reads. Useful for SDK clients introspecting\n    what they can push to before they hit the paid write routes.","operationId":"get_runtime_ingest_list_runtimes","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"List runtimes ClawMetry knows about. Free. Same data the runtime","tags":["Other"]}},"/api/v1/security":{"get":{"description":"","operationId":"get_api_v1_v1_security","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_security","tags":["Security"]}},"/api/v1/sessions":{"get":{"description":"","operationId":"get_api_v1_v1_sessions","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_sessions","tags":["Sessions"]}},"/api/v1/sessions/{session_id}":{"get":{"description":"","operationId":"get_api_v1_v1_session_detail","parameters":[{"in":"path","name":"session_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_session_detail","tags":["Sessions"]}},"/api/v1/snapshot":{"get":{"description":"","operationId":"get_api_v1_v1_snapshot","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_snapshot","tags":["Other"]}},"/api/v1/usage":{"get":{"description":"","operationId":"get_api_v1_v1_usage","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server error"}},"security":[{"bearerAuth":[]}],"summary":"api_v1.v1_usage","tags":["Usage"]}}},"servers":[{"description":"ClawMetry Cloud (production)","url":"https://app.clawmetry.com"},{"description":"Local OSS install","url":"http://localhost:8900"}],"tags":[{"description":"Top-level dashboard data.","name":"overview"},{"description":"Session transcripts + sub-agent tree + spawn events.","name":"sessions"},{"description":"Unified activity stream (THINK/AGENT/EXEC/READ/WRITE/SPAWN\u2026).","name":"brain"},{"description":"Tokens, cost, billing-mode hints.","name":"usage"},{"description":"Cron CRUD + run history.","name":"crons"},{"description":"Agent memory file explorer.","name":"memory"},{"description":"Posture scan + threat detection + signature catalog.","name":"security"},{"description":"Cloud-mediated human-in-the-loop approval queue.","name":"approvals"},{"description":"Alert rules + active alerts + history.","name":"alerts"},{"description":"Cloud-only endpoints: per-account fleet + node detail.","name":"cloud"},{"description":"Sync-daemon ingest (heartbeat, sessions, events, logs).","name":"ingest"},{"description":"NeMo Guardrails governance + sandbox approval queue.","name":"nemoclaw"},{"description":"Multi-node fleet view.","name":"fleet"},{"description":"Time-series collector (SQLite).","name":"history"},{"description":"Internal/system endpoints (cron triggers, etc.).","name":"internal"}]}
