Authentication
Bearer token for machine-to-machine calls, OAuth 2.0 Authorization Code for user-context calls.
Authorization: Bearer sk_live_xxxx
Base URL
https://api.suryatool.io
Rate limits
Default: 600 requests / minute / workspace. Burst: 60 / second. Headers: X-RateLimit-Remaining, X-RateLimit-Reset.
Key endpoints
GET /api/clients— list clients in the workspaceGET /api/clients/:id/metrics— aggregated MTD metricsGET /api/change-proposals?status=pending— pending proposalsPOST /api/change-proposals/:id/approve— approve a proposalGET /api/reports/:id— monthly reportPOST /api/agents/:role/run— run an agent on demand
OpenAPI spec
Full spec: openapi.json. Generated from the router, always up to date.
Webhooks
Subscribe to: proposal.created, proposal.approved, proposal.executed, report.published, alert.triggered. HMAC-SHA256 signature in X-Surya-Signature header.