Hecaton developer documentation
Drive workspaces from a script, a CI pipeline or the agent on your computer.
Get started
- In Hecaton, add the repository as a project and note its project ID. The CLI can list the projects you can access.
- On your computer, use the local agent guide to sign in through your browser. For unattended jobs, create a project-scoped API token and store it as a secret.
- Choose the CLI, the TypeScript SDK or direct requests to
https://api.hecaton.io/v1. The REST API reference lists the operations and links to the OpenAPI contract.
Integration guides
- GitHub Actions — start a workspace on a pull request branch and wait for its result.
- GitLab CI — do the same from a trusted merge request pipeline.
- Local agent — delegate from the CLI or connect the public MCP server.
- Webhooks — verify a delivery signature before processing the event.
REST conventions
- Send
Authorization: Bearer <token>on every authenticated request.GET /v1/openapi.jsonis public. - List responses use an opaque
nextCursor. Pass it back ascursorwhile it is present. Uselimitfrom 1 to 100 (20 by default). - For endpoints that require
Idempotency-Key, send one key per operation. Retry with the same key and payload for 24 hours. Reusing the key with a different request returns 409idempotency_key_reused. - Errors use
{ error: { code, message, details }, requestId }. Keep the request ID for support. When a request is rate limited (429), checkRetry-After,RateLimitandRateLimit-Policy. Each token can make 600 reads, 60 writes and 10 workspace creations per minute, with up to 5 open streams. - To resume a workspace event stream, send its last processed event ID as
Last-Event-ID. Retained events expire after 24 hours. When the API returns 410event_cursor_expired, read the current workspace and turn state before resuming the stream.