/ unless you configure baseUrl.
All endpoints require a valid Bearer token unless noted as public. Obtain a token through the MCP OAuth 2.1 flow or by creating an agent with
kavach.agent.create().Agent endpoints
Create agent
201 Created
List agents
Response
200 OK - Array of agent objects.
Get agent
200 OK - Agent object. 404 when not found.
Update agent
200 OK - Updated agent object.
Revoke agent
204 No Content
Rotate agent token
200 OK - Agent object with a new token value.
Authorization endpoints
Authorize a request
200 OK
Delegation endpoints
Create delegation
201 Created
List delegations
Response
200 OK - Array of delegation objects.
Revoke delegation
204 No Content
Audit endpoints
Query audit log
Response
200 OK
Export audit log
Response
200 OK - File download with Content-Disposition: attachment.
MCP endpoints
These endpoints implement the MCP OAuth 2.1 specification.Authorization Server Metadata
Protected Resource Metadata
Dynamic Client Registration
201 Created - Client credentials including client_id and client_secret.
Authorization request
code_challenge + code_challenge_method=S256). Redirects to loginPage if the user is not authenticated, or to consentPage for scope approval.
Token exchange
application/x-www-form-urlencoded)
For authorization_code grant:
refresh_token grant:
200 OK
Dashboard endpoints
Stats overview
200 OK
Related
Adapters overview
Framework adapters that mount these endpoints on your server.
Agent identity
Core concepts behind the agent endpoints and token lifecycle.
Audit
Querying and exporting audit logs via the REST API.
Errors
Error codes and HTTP status reference for all endpoints.