# API reference

Base URL `https://flashbox.app`. Send `Authorization: Bearer fbx_...` on every call except the public ones. Bodies and responses are JSON unless noted.

| Method | Path | Auth |
| --- | --- | --- |
| `GET` | `/health` | none |
| `GET` | `/v1/pricing` | none |
| `GET` | `/auth/github` | none |
| `GET` | `/auth/github/callback` | none |
| `POST` | `/auth/dev-login` | none |
| `POST` | `/auth/logout` | dashboard session |
| `GET` | `/v1/me` | API key |
| `GET` | `/v1/keys` | dashboard session |
| `POST` | `/v1/keys` | dashboard session |
| `DELETE` | `/v1/keys/{key}` | dashboard session |
| `GET` | `/v1/usage` | API key |
| `POST` | `/v1/sandboxes` | API key |
| `GET` | `/v1/sandboxes` | API key |
| `GET` | `/v1/sandboxes/{sandbox}` | API key |
| `DELETE` | `/v1/sandboxes/{sandbox}` | API key |
| `POST` | `/v1/sandboxes/{sandbox}/hibernate` | API key |
| `POST` | `/v1/sandboxes/{sandbox}/commands` | API key |
| `GET` | `/v1/sandboxes/{sandbox}/files` | API key |
| `GET` | `/v1/sandboxes/{sandbox}/files/content` | API key |
| `PUT` | `/v1/sandboxes/{sandbox}/files/content` | API key |
| `POST` | `/v1/sandboxes/{sandbox}/processes` | API key |
| `GET` | `/v1/sandboxes/{sandbox}/processes` | API key |
| `GET` | `/v1/sandboxes/{sandbox}/processes/{process}/logs` | API key |
| `POST` | `/v1/sandboxes/{sandbox}/processes/{process}/kill` | API key |
| `GET` | `/v1/sandboxes/{sandbox}/checkpoints` | API key |
| `POST` | `/v1/sandboxes/{sandbox}/rollback` | API key |
| `GET` | `/v1/checkpoints/{checkpoint}` | API key |
| `POST` | `/v1/checkpoints/{checkpoint}/fork` | API key |
| `POST` | `/v1/checkpoints/{checkpoint}/pin` | API key |
| `DELETE` | `/v1/checkpoints/{checkpoint}/pin` | API key |
| `GET` | `/v1/sandboxes/{sandbox}/workspace.tar.zst` | API key |
| `POST` | `/mcp` | API key |
| `GET` | `/mcp` | none |

Keys are managed from the dashboard (a signed-in session), not with an API key, so a leaked key cannot make more keys.
