The codemix API is a normal HTTP API for scripts, internal tools and integrations.
This page is the quick version. The complete interactive reference is at Swagger.
Base URL
Use the production API at:
https://codemix.com
Most endpoints live under:
/api/v1
Open Swagger for the exact paths, methods, request bodies and response shapes.
Authentication
Create an API key in Settings > API Keys.
Send it as a bearer token:
curl https://codemix.com/api/v1/me \
-H "Authorization: Bearer $CODEMIX_API_KEY"
Keep keys out of source control and shared prompts. Use environment variables in local scripts and CI.
Typical use
Use the API when you want to:
- query codemix from internal tools
- connect codemix to CI or automation
- inspect account, organization, project or task data
- build a workflow that should not depend on the web UI
For terminal-first work, the CLI is usually faster. For AI clients, the MCP server is usually the better interface.
Errors
Common responses:
401: missing or invalid API key403: the key does not have access to that organization or project404: the resource does not exist in the selected scope429: the request was rate limited
Check Swagger for endpoint-specific status codes.
Full reference
Use Swagger for the full API docs.
It includes the current OpenAPI schema, endpoint list, parameter details and response examples. That is the source of truth for request shape.