Admin Endpoints
Admin Endpoints
Section titled “Admin Endpoints”These endpoints are available on the Control Plane and require operator-level authentication.
Authentication
Section titled “Authentication”All admin endpoints require a valid JWT with operator role. Include in the Authorization: Bearer <token> header.
Tenant Management
Section titled “Tenant Management”GET /api/admin/organizations
Section titled “GET /api/admin/organizations”List all organizations with summary stats.
GET /api/admin/organizations/{org_id}
Section titled “GET /api/admin/organizations/{org_id}”Get detailed organization info including workspaces, users, and billing status.
GET /api/admin/organizations/{org_id}/workspaces
Section titled “GET /api/admin/organizations/{org_id}/workspaces”List workspaces for an organization.
System Health
Section titled “System Health”GET /api/admin/health
Section titled “GET /api/admin/health”System-wide health check — database, Redis, external dependencies.
GET /api/admin/agents
Section titled “GET /api/admin/agents”List all connected agents with status, version, and capabilities.
GET /api/admin/audit-logs
Section titled “GET /api/admin/audit-logs”Query the system-wide audit trail. Supports filtering by organization, action type, and date range.
Query Parameters:
organization_id(optional) — filter by orgaction(optional) — filter by action typesince(optional) — ISO 8601 timestamplimit(optional, default 50) — max results