Developers
API reference
Every capability is available over a token-authenticated REST API. Mint a token from your dashboard and send it as a Bearer header. Full reference docs are expanding — here are the core endpoints.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/repos | List repositories connected to your account. |
| GET | /api/repos/:id/context | Fetch the decision context an agent should read before acting. |
| POST | /api/repos/:id/can-i | Ask whether a proposed change is allowed under your rules and prior decisions. |
| POST | /api/cli/preflight | Run the pre-commit gate on a diff and get a pass/fail with reasons. |
| GET | /api/repos/:id/decisions | List the decisions in the repository's engineering memory. |
Authenticate with Authorization: Bearer <token>. See the docs to get set up.