Every route Forkbase serves. Keys: A anon key, U a signed-in person's token, S service key, G agent
token fba_, R run token fbr_, J job token fbj_, M MCP token fbm_, — none.
Send the API key as apikey: <key>; send tokens (and the service key, outside /rest, /auth, /storage) as
Authorization: Bearer <token>. Bodies are JSON unless said.
#Server
| Method | Path | Key | |
|---|
| GET | / | — | name, version, mode, API prefixes |
| GET | /health | — | 200 ok, 503 degraded |
| GET | /metrics | — | Prometheus text |
| GET | /skills/index.json | — | the skill pack: skills and their files |
| GET | /skills/{skill}/{path} | — | one file of the pack |
| GET | /skills/install.sh | — | downloads the pack into .claude/skills (or sh -s -- <folder>) |
| GET | /skill/SKILL.md, /skill/setup.md | — | the forkbase-agent and forkbase-setup skills |
| GET | /llms.txt, /llms-full.txt | — | these docs for language models |
| GET | /dashboard/... | — | the dashboard's pages |
#/auth/v1
| Method | Path | Key |
|---|
| GET | /settings | A |
| POST | /signup | A |
| POST | /token?grant_type=password|refresh_token|email_code|pkce | A |
| POST | /otp | A |
| GET, POST | /verify | — (from an emailed link) |
| GET | /authorize?provider= | — |
| GET | /callback/{provider} | — (from the provider) |
| POST | /recover, /reset, /resend | A |
| GET, PUT | /user | U |
| POST | /logout?scope= | U |
| GET | /.well-known/jwks.json | — |
| GET, POST | /admin/users | S |
| GET, PUT, DELETE | /admin/users/{id} | S |
| GET | /admin/users/{id}/sessions | S |
| POST | /admin/users/{id}/logout | S |
| POST | /admin/invite | S |
| GET | /admin/events | S |
| GET | /admin/keys | S |
| POST | /admin/keys/rotate, /admin/keys/{kid}/retire | S |
#/rest/v1
| Method | Path | Key |
|---|
| GET | / | A, U, S |
| GET, POST, PATCH, DELETE | /{table} | A, U, S (as RLS allows) |
#/realtime/v1
| Method | Path | Key |
|---|
| GET (WebSocket) | /websocket?apikey=&vsn=1.0.0 | A, U, S |
| GET, POST | /tables | S |
| DELETE | /tables/{schema.table} | S |
| GET | /inspect | S |
#/storage/v1
| Method | Path | Key |
|---|
| GET, POST | /bucket | A, U, S (as RLS allows) |
| GET, PUT, DELETE | /bucket/{id} | ditto |
| POST | /bucket/{id}/empty | ditto |
| POST, PUT, GET, DELETE | /object/{bucket}/{path} | ditto |
| DELETE | /object/{bucket} | ditto |
| GET | /object/authenticated/{bucket}/{path} | ditto |
| GET | /object/public/{bucket}/{path}, /object/info/public/{bucket}/{path} | — (public buckets) |
| GET | /object/info/{bucket}/{path}, /object/info/authenticated/{bucket}/{path} | A, U, S |
| POST | /object/list/{bucket} | A, U, S |
| POST | /object/move, /object/copy | A, U, S |
| POST | /object/sign/{bucket}, /object/sign/{bucket}/{path} | A, U, S |
| GET | /object/sign/{bucket}/{path}?token= | — (a signed URL) |
| POST | /object/upload/sign/{bucket}/{path} | A, U, S |
| PUT | /object/upload/sign/{bucket}/{path}?token= | — (a signed upload URL) |
#/agents/v1
| Method | Path | Key |
|---|
| POST, GET | /agents | S |
| DELETE | /agents/{name} | S |
| POST | /runs | S, G |
| GET | /runs | S, G |
| GET | /runs/{id} | S, G, R |
| POST | /runs/{id}/sql | S, G, R |
| GET | /runs/{id}/changes?view=rows|summary|sql&limit= | S, G, R |
| GET | /runs/{id}/ledger?after=&limit=&format=jsonl | S, G, R |
| POST | /runs/{id}/propose, /runs/{id}/discard | S, G, R |
| POST | /runs/{id}/approve, /runs/{id}/reject, /runs/{id}/undo | S |
| GET, POST | /approvals/{token} | — (a signed approval link) |
| POST, GET | /webhooks | S |
| DELETE | /webhooks/{id} | S |
| GET | /events | S |
| GET | /policies | S |
| PUT, DELETE | /policies/{name} | S |
| POST | /policies/check | S |
#/jobs/v1
| Method | Path | Key |
|---|
| GET | /runtimes | S |
| POST, GET | /functions | S |
| GET, PATCH, DELETE | /functions/{name} | S |
| POST | /functions/{name}/invoke?wait= | S |
| GET | /jobs?function=&status=&before=&limit= | S |
| GET | /jobs/{id} | S |
| POST | /jobs/{id}/cancel, /jobs/{id}/retry | S |
| POST, GET | /schedules | S |
| GET, PATCH, DELETE | /schedules/{id} | S |
| POST | /schedules/{id}/run | S |
| POST, GET | /triggers | S |
| PATCH, DELETE | /triggers/{id} | S |
| GET | /self | J |
| GET, PUT | /self/steps/{name} | J |
#MCP and OAuth
| Method | Path | Key |
|---|
| POST | /mcp | M, G |
| GET | /.well-known/oauth-protected-resource, /.well-known/oauth-protected-resource/mcp | — |
| GET | /.well-known/oauth-authorization-server | — |
| POST | /oauth/register, /oauth/token, /oauth/revoke | — |
| GET | /oauth/authorize | — |
| GET | /oauth/request, POST /oauth/consent | S (the consent page) |
| GET | /oauth/grants | S |
| DELETE | /oauth/grants/{id} | S |
| Method | Path | Key |
|---|
| GET | /project, /tables, /logs, /stats?range=1h|24h|7d, /me | S, T |
| POST | /sql | S, T admin |
| GET | /database?schema=, /connection, /backups | S, T |
| POST | /backups, /backups/checkpoints, /backups/restore (chronos mode) | S, T admin |
| GET | /backups/dump (postgres mode) | S, T admin |
| GET, POST | /members | S, T admin |
| PATCH, DELETE | /members/{id} | S, T admin |
| POST | /members/{id}/key | S, T admin |
| GET | /audit?limit=&before=&actor= | S, T |
T is a team member's key (fbtm_): viewers read, operators also decide runs and jobs, admins do
everything S does.
#Errors
| Where | Shape |
|---|
/rest/v1 | {"code", "message", "details", "hint"} (PostgREST's; Postgres SQLSTATE or PGRST...) |
/auth/v1 | {"error", "message"} |
/storage/v1 | {"statusCode", "error", "message"} (Supabase Storage's) |
/agents/v1, /jobs/v1, /platform/v1 | {"code", "message", ...}; a conflict adds conflicts |
/mcp | JSON-RPC errors; a tool's failure is a result with isError: true |
| HTTP | Means |
|---|
| 400 | the request is wrong; message says how |
| 401 | no key or token, or it's invalid or expired |
| 403 | the key is valid but may not do this (e.g. needs the service key) |
| 404 | no such thing |
| 409 | a conflict: a run's rows changed, a run isn't in the state the call needs |
| 429 | too many sign-in attempts or emails |
| 503 | the database or the engine isn't answering |
Something wrong or missing? Edit this page on GitHub or open an issue.