API reference
13 endpoints, all JSON
Create projects, watch tasks and git logs, inspect agents and export results. Copy any snippet or press Try it to call the endpoint right from this page.
Before you start
Conventions
Format
Requests and responses are JSON. Inputs are validated with Zod; invalid input returns 400 with an error list.
Auth
The hosted app uses Clerk sessions. In demo mode all routes are open and backed by mock data.
Static demo
The GitHub Pages build has no API, so Try it shows a friendly message there. Run locally for live responses.
{ "error": "Validation failed", "issues": [{ "path": ["name"], "message": "Too short" }] }Reference
Endpoints
/api/projectsList all projects.
curl "https://YOUR_HOST/api/projects"[{ "id": "p_1", "name": "Acme CRM", "status": "building", "stack": ["Next.js","Clerk"], "createdAt": "2026-10-01T09:00:00Z" }]/api/projectsCreate a project. Body is validated with Zod (name 2-60, brief 10-2000, stack 1-20).
curl -X POST "https://YOUR_HOST/api/projects" \
-H "Content-Type: application/json" \
-d '{"name":"Acme CRM","brief":"A CRM for small agencies with pipelines","stack":["Next.js","Drizzle"]}'{ "id": "p_2", "name": "Acme CRM", "status": "planning", "createdAt": "2026-11-01T10:00:00Z" }Try it is available for GET endpoints only.
/api/projects/:idProject detail with tasks, git log and agent states.
curl "https://YOUR_HOST/api/projects/demo"{ "id": "p_1", "name": "Acme CRM", "tasks": [...], "gitlog": [...], "agents": [...] }/api/projects/:id/tasksTasks for a project.
curl "https://YOUR_HOST/api/projects/demo/tasks"[{ "id": "t_1", "title": "Create schema", "module": "Data", "agent": "Backend", "status": "running", "progress": 60 }]/api/projects/:id/gitlogCommit stream written by agents.
curl "https://YOUR_HOST/api/projects/demo/gitlog"[{ "hash": "a1f3c9d", "message": "feat(api): projects routes", "agent": "Backend", "files": 4 }]/api/projects/:id/export?format=json|mdExport a project as JSON or Markdown.
curl "https://YOUR_HOST/api/projects/demo/export?format=json"{ "project": {...}, "tasks": [...], "gitlog": [...] }/api/projects/:id/runStart or advance the agent run for a project.
curl -X POST "https://YOUR_HOST/api/projects/:id/run" \
-H "Content-Type: application/json" \
-d '{}'{ "ok": true, "status": "building" }Try it is available for GET endpoints only.
/api/agentsAll eight agents with their live status.
curl "https://YOUR_HOST/api/agents"[{ "name": "Architect", "status": "done", "currentTask": null }]/api/agents/:nameOne agent: codename, tools, sub-agents and state.
curl "https://YOUR_HOST/api/agents/Architect"{ "name": "Architect", "codename": "ATLAS", "tools": ["Mermaid","ADR","OpenAPI"] }/api/statsCounts of projects, tasks, commits and agents.
curl "https://YOUR_HOST/api/stats"{ "projects": 3, "tasks": 24, "commits": 57, "agentsWorking": 2 }/api/stackSupported stack options.
curl "https://YOUR_HOST/api/stack"{ "frontend": ["Next.js"], "database": ["libSQL"], "auth": ["Clerk"] }/api/openapiOpenAPI 3 document describing this API.
curl "https://YOUR_HOST/api/openapi"{ "openapi": "3.0.3", "info": { "title": "Ghost AI" }, "paths": {...} }/api/healthLiveness probe.
curl "https://YOUR_HOST/api/health"{ "ok": true }Next
Related
New here? Start with the Quick start, learn the agents, or read security practices.
See the crew work on your own brief
Open the live dashboard, describe a SaaS idea and watch eight agents build it.