REST API

Auto-generated from OpenAPI. Bearer token auth, 60+ endpoints.

Phase 8 will replace this with an OpenAPI snapshot + Redoc embed. Overview only for now.

Auth

Terminal
curl -H "Authorization: Bearer $AX_TOKEN" \
  https://api.axhub.dev/v1/deployments

Issue a PAT from Dashboard → Settings → Tokens.

Resources

  • /v1/deployments
  • /v1/domains
  • /v1/members
  • /v1/secrets
  • /v1/logs
  • /v1/cost

Pagination

?cursor=eyJp...&limit=50

Responses include a next_cursor field.

Error shape

response.json
{
  "error": {
    "code": "INSUFFICIENT_SCOPE",
    "message": "PAT requires write:deploy scope",
    "docs_url": "/docs/mcp/auth#scopes"
  }
}