Skip to content

API Reference

The Ancla API is a REST API at https://ancla.dev/api/v1. All endpoints return JSON and require authentication via API key or session.

https://ancla.dev/api/v1

Include your API key in the X-API-Key header:

Terminal window
curl -H "X-API-Key: ancla_your_key_here" https://ancla.dev/api/v1/auth/session

Or use session-based auth via the login endpoint.

ResourceDescription
AuthenticationSession, login, logout, CLI auth, OAuth
WorkspacesManage workspaces, members, and workspace-level config
ProjectsCreate and manage projects within workspaces
EnvironmentsDeployment targets (production, staging, preview)
ServicesDeployable units within environments
BuildsBuild container images for services
DeploysDeploy builds and inspect deploy status and logs
Config VarsManage environment variables at every scope (workspace, project, env, service)
PipelinePipeline status, metrics, deploy, rollback
PromotionsPromote builds between environments
ObservabilityCPU, memory, and pod metrics
TeamsTeam management and team-scoped config
IntegrationsDocker auth, GitHub webhooks, signing certs

All errors return a JSON body:

{
"status": 404,
"message": "not found"
}
StatusMeaning
401Not authenticated — run ancla login or provide an API key
403Permission denied — you don’t have access to this resource
404Resource not found
422Validation error — check the request body
500Server error