Control Cloudexa from your own tools.
Read repositories, hosted projects, deployments and databases through a versioned JSON API using revocable bearer tokens.
{
"status": "operational",
"database": "operational",
"version": "v1",
"latency_ms": 3
}
Small, versioned and JSON-first.
API v1 exposes read-only Cloudexa resources and API-token management without exposing shell execution, Docker commands or arbitrary deployment commands.
Available API routes
/api/v1
Public
/api/v1/health
Public
/api/v1/me
Token
/api/v1/repositories
Token
/api/v1/hosting/projects
Token
/api/v1/hosting/projects/:id
Token
/api/v1/deployments
Token
/api/v1/databases
Token
/api/v1/tokens
Session
/api/v1/tokens
Session
/api/v1/tokens/:id
Session
Authenticate with a bearer token.
API tokens begin with clx_api_. Cloudexa stores only a SHA-256 hash of the full token.
curl https://cloudexa.dev/api/v1/me \
-H "Authorization: Bearer clx_api_YOUR_TOKEN"
{
"id": 1,
"username": "example",
"plan": "normal",
"authentication": "token"
}
Read your hosted projects.
curl https://cloudexa.dev/api/v1/hosting/projects \
-H "Authorization: Bearer clx_api_YOUR_TOKEN"
const response =
await fetch(
"https://cloudexa.dev/api/v1/hosting/projects",
{
headers: {
Authorization:
"Bearer " +
process.env.CLOUDEXA_TOKEN
}
}
);
const data =
await response.json();
console.log(
data.projects
);
Intentionally limited.
API v1 starts with the operations needed for integrations without directly exposing dangerous infrastructure controls.
Start using API v1.
Create a token and connect your tools directly to Cloudexa.