Session cookies — For the web app (set automatically on login)
API keys — For programmatic access (prefix: revops_)
Terminal window
# API key authentication
Authorization:Bearerrevops_YOUR_API_KEY
Create API keys in Workspace settings → API Keys. The same page surfaces your Workspace ID (the value to substitute for :wid / :workspaceId / WORKSPACE_ID below) with a copy button.
These endpoints manage connections to user databases (PostgreSQL, MySQL, MongoDB, BigQuery, ClickHouse, Redshift, SQLite, Cloudflare D1/KV) that Mako queries on the user’s behalf. For SaaS data-source connectors (Stripe, Close, PostHog, GraphQL, REST, BigQuery sync), see SaaS Connectors.
Method
Endpoint
Description
GET
/api/workspaces/:wid/databases
List database connections
POST
/api/workspaces/:wid/databases
Add a database connection
GET
/api/workspaces/:wid/databases/:id
Get a single database connection (passwords masked)
For MongoDB connections, collection and view management is exposed under the same workspace-scoped database routes. The legacy unauthenticated /api/database/* routes were removed in #408 — all callers must use the endpoints below.
Create or update a saved console schedule (admin only)
DELETE
/api/workspaces/:wid/consoles/:id/schedule
Remove a saved console schedule (admin only)
POST
/api/workspaces/:wid/consoles/:id/schedule/run
Trigger a scheduled console immediately (admin only)
GET
/api/workspaces/:wid/consoles/:id/schedule/runs
List scheduled run history (admin only)
GET
/api/workspaces/:wid/scheduled-queries
List scheduled consoles in the workspace (admin only)
See Console for full API documentation with examples. Scheduled query endpoints require workspace admin access and use the same session/API-key authentication as other workspace endpoints.
Returns a map of CDC entity name to destination row count. Mako batches BigQuery and PostgreSQL counts into one metadata query and may return 0 for configured entities whose destination table does not exist yet.
Accepts an optional ?entity=<name> query parameter to scope the check to a single entity. Drift is auto-corrected on the next CDC merge — see Schema Evolution.
Send a test notification (saved rule by ruleId or ad-hoc channel).
Webhook deliveries include an X-Mako-Signature HMAC-SHA256 header. The signing secret is returned once as signingSecretOnce on create or rotation and is not retrievable later.
Workspace skills — named playbooks the agent can author and load on demand. See Skills for the conceptual model.
Method
Endpoint
Description
GET
/api/workspaces/:wid/skills
List every skill in the workspace
GET
/api/workspaces/:wid/skills/:id
Get a single skill with full body
PUT
/api/workspaces/:wid/skills/:id
Edit loadWhen, body, or entities
POST
/api/workspaces/:wid/skills/:id/suppress
Toggle the suppressed flag
DELETE
/api/workspaces/:wid/skills/:id
Permanently delete a skill
All endpoints require authentication and workspace access. Agent-side CRUD is available through the save_skill, delete_skill, load_skill, and search_skills tools — see AI Agent.
Subscription management endpoints. All require workspace membership. When BILLING_ENABLED is false (self-hosted default), all endpoints return { "billingEnabled": false }.
Method
Endpoint
Description
GET
/api/workspaces/:wid/billing/status
Get plan, usage quota, and subscription status
POST
/api/workspaces/:wid/billing/checkout
Create a Stripe Checkout session (returns { url })
POST
/api/workspaces/:wid/billing/portal
Create a Stripe Customer Portal session (returns { url })