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.

ResourceEndpointsDescription
Authentication6Session, login, logout, CLI auth, OAuth
Organizations6Manage orgs and members
Projects3Create and list projects
Applications10CRUD, scaling, deploy, pipeline status
Images4Build and inspect container images
Releases5Create releases and trigger deploys
Deployments2Inspect deployment status and logs
Configuration6Manage environment variables

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