Get Deployment Stats
Get aggregated deployment statistics. Returns total count and breakdown by status.
AuthorizationBearer <token>
API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Query Parameters
workspace?string
Workspace name or ID. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must identify the key's workspace.
Match
^(?:ws_[0-9a-zA-Z]{24}|(?!ws[-_])[a-z0-9](-?[a-z0-9])*)$Length
4 <= length <= 100project?string
Filter by project ID or name.
Length
length <= 100deploymentGroup?string
Filter by deployment group ID or name
managerId?string
Filter by manager ID
purpose?string
Filter by deployment purpose
Value in
- "application"
- "encryption"
- "ai"
- "storage"
- "container-registry"
- "sandbox"
environment?array<>
Filter deployments by effective environment
status?array<>
Filter deployments by status
search?string
Search deployments by name or deployment group name
Length
length <= 256Response Body
application/json
application/json
curl -X GET "https://example.com/v1/deployments/stats?project=my-project"{ "total": 0, "byStatus": { "property1": 0, "property2": 0 }, "byPlatform": { "property1": 0, "property2": 0 }, "byCurrentRelease": { "property1": 0, "property2": 0 }, "byPinnedRelease": { "property1": 0, "property2": 0 }, "byOrigin": { "framework": 0, "remoteOperator": 0 }}