Core endpoints
Base URL: https://api.callvault.dev. Curated summary for day-one integration, not a substitute for GET /v1/ops/openapi.json with an operator session.
Operator routes always use both Authorization (Auth0) and X-Broker-Tenant-Id. Control-key and broker-JWT routes use Bearer only.
| Method | Path | Auth | Summary |
|---|---|---|---|
| GET | /health | Public | Liveness check; returns { ok, service }. |
| POST | /v1/broker/token | Control key (bk_*), scope broker:token | Mint short-lived broker JWT for an agent_app_id and env. |
| POST | /v1/tools/execute | Broker JWT | Hero route: run a registered tool against a connected_account_id. |
| POST | /v1/tools/invocations/:id/continue | Broker JWT | Resume after operator approval for high-risk invocations. |
| POST | /v1/tools/bootstrap-github-smoke | Auth0 + X-Broker-Tenant-Id | Idempotent GitHub smoke tools + policies (github.get_authenticated_user, github.create_issue). |
| GET | /v1/agents | Auth0 + X-Broker-Tenant-Id | List agent apps (agent_app_id for JWT mint). |
| POST | /v1/agents | Auth0 + X-Broker-Tenant-Id (owner/admin) | Register a new agent app. |
| GET | /v1/api-keys | Auth0 + X-Broker-Tenant-Id | List control keys (prefix only). |
| POST | /v1/api-keys | Auth0 + X-Broker-Tenant-Id (owner/admin) | Create bk_test_* / bk_live_* key; secret reveal-once. |
| POST | /v1/connections/oauth/start | Auth0 + X-Broker-Tenant-Id | Begin GitHub OAuth; body provider github, return_url on app host. |
| GET | /v1/connections | Auth0 + X-Broker-Tenant-Id | List connection handles (connected_account_id) for the user. |
| GET | /v1/ops/openapi.json | Auth0 + X-Broker-Tenant-Id | Full OpenAPI document (production-safe; not public /openapi.json). |
Rate limits
Tool execute and token mint routes are rate limited per tenant/IP. Expect 429 rate_limited when exceeding configured thresholds.
Vault fail-closed
If encryption vault is unavailable, execute returns 503 vault_unavailable without calling upstream SaaS APIs.