API Reference

Full REST API with 80+ endpoints covering agents, brain documents, connectors, billing, and more. All authenticated endpoints require a Bearer token from Supabase Auth.

Base URL: https://api.keely.aiAuth: Bearer <jwt>Tenant prefix: /api/v1/t/:tenantSlug/

Health & Metrics

Service health checks, system metrics, and alerting — no authentication required.

GET/health
GET/health/detailed
GET/health/metrics
GET/health/metrics/raw
GET/health/alerts

Authentication

Sync Supabase Auth users and manage profiles.

POST/api/v1/auth/sync
GET/api/v1/auth/me
PATCH/api/v1/auth/me

Workspaces

Create and manage multi-tenant workspaces.

GET/api/v1/tenants
POST/api/v1/tenants
GET/api/v1/tenants/:slug
PATCH/api/v1/tenants/:slug

Brain Documents

Company knowledge base — 13 document types that power agent context.

GET/api/v1/t/:slug/brain
GET/api/v1/t/:slug/brain/:docType
PUT/api/v1/t/:slug/brain/:docType
GET/api/v1/t/:slug/brain/:docType/history

Agents

AI agent configuration — enable/disable, override prompts, and manage tool allowlists.

GET/api/v1/t/:slug/agents
PATCH/api/v1/t/:slug/agents/:key

Agent Runs

Execute AI agent workflows and track execution history.

POST/api/v1/t/:slug/runs
GET/api/v1/t/:slug/runs
GET/api/v1/t/:slug/runs/:runId
GET/api/v1/t/:slug/runs/:runId/steps
POST/api/v1/t/:slug/runs/:runId/cancel
POST/api/v1/t/:slug/runs/:runId/replay
GET/api/v1/t/:slug/runs/diagnostics/stuck

Approvals

Human-in-the-loop approval workflow for agent actions.

GET/api/v1/t/:slug/approvals
GET/api/v1/t/:slug/approvals/:id
POST/api/v1/t/:slug/approvals/:id/decide
GET/api/v1/t/:slug/approvals/policies/list
PUT/api/v1/t/:slug/approvals/policies

Connectors

Manage tool integrations — connect GitHub, Stripe, Slack, and more via OAuth or API key.

GET/api/v1/t/:slug/connectors
POST/api/v1/t/:slug/connectors
DELETE/api/v1/t/:slug/connectors/:id
POST/api/v1/t/:slug/connectors/:id/oauth/start
GET/api/v1/t/:slug/connectors/freshness
POST/api/v1/t/:slug/connectors/:id/sync

Billing & Credits

Subscriptions, credit balances, add-on packs, and Stripe checkout.

GET/api/v1/t/:slug/billing
GET/api/v1/t/:slug/billing/plans
POST/api/v1/t/:slug/billing/checkout
POST/api/v1/t/:slug/billing/portal
POST/api/v1/t/:slug/billing/addon
GET/api/v1/t/:slug/billing/usage
GET/api/v1/t/:slug/billing/credits

Artifacts

Files and reports generated by agent runs.

GET/api/v1/t/:slug/artifacts
GET/api/v1/t/:slug/artifacts/:id

Memory

Long-term, episodic, and working memory with vector search.

GET/api/v1/t/:slug/memory
POST/api/v1/t/:slug/memory
POST/api/v1/t/:slug/memory/search
DELETE/api/v1/t/:slug/memory/:id
GET/api/v1/t/:slug/memory/stats
GET/api/v1/t/:slug/memory/episodic
GET/api/v1/t/:slug/memory/working
PUT/api/v1/t/:slug/memory/working

Tasks

Async task submission with SSE progress streaming.

POST/api/v1/t/:slug/tasks
GET/api/v1/t/:slug/tasks
GET/api/v1/t/:slug/tasks/:id
POST/api/v1/t/:slug/tasks/:id/cancel
GET/api/v1/t/:slug/tasks/:id/stream

Sandbox

Isolated code execution sessions with Docker/Fargate containers.

GET/api/v1/t/:slug/sandbox/sessions
GET/api/v1/t/:slug/sandbox/sessions/:id
GET/api/v1/t/:slug/sandbox/sessions/:id/logs
DELETE/api/v1/t/:slug/sandbox/sessions/:id

Strategy Hub

Aggregated strategy data — health scores, risks, milestones, and AI insights.

GET/api/v1/t/:slug/strategy

Evidence

Execution evidence — screenshots, code outputs, and file artifacts.

GET/api/v1/t/:slug/evidence
GET/api/v1/t/:slug/evidence/:id
GET/api/v1/t/:slug/evidence/:id/download

Team

Invitations, members, and role management.

POST/api/v1/t/:slug/invitations
GET/api/v1/t/:slug/invitations
DELETE/api/v1/t/:slug/invitations/:id
POST/api/v1/invitations/:token/accept
GET/api/v1/t/:slug/members
PATCH/api/v1/t/:slug/members/:id
DELETE/api/v1/t/:slug/members/:id
POST/api/v1/t/:slug/members/leave

Activity

Audit log of workspace events.

GET/api/v1/t/:slug/activity

Notifications

Notification preferences and inbox.

GET/api/v1/t/:slug/notifications/preferences
PUT/api/v1/t/:slug/notifications/preferences
GET/api/v1/t/:slug/notifications
POST/api/v1/t/:slug/notifications/:id/read

Onboarding

Guided setup flow with business-type-specific brain templates.

POST/api/v1/t/:slug/onboarding/business-type
GET/api/v1/t/:slug/onboarding/templates
GET/api/v1/t/:slug/onboarding/business-types

Webhooks

External webhook receivers — no authentication (uses provider signatures).

POST/webhooks/stripe

Waitlist

Pre-launch waitlist sign-up — no authentication required.

POST/api/v1/waitlist

Interactive API Explorer

Try requests directly in the browser with our Swagger UI interface.

Open Swagger UI →

MCP Server

Connect from Claude Desktop or any MCP client at http://localhost:3003/sse

7 tools · 14 resources · 6 prompts