APIIntroduction
An authenticated GET request reaches the Akua API and branches into three response shapes: a single object, a paginated data list with next cursor, or an error with a code

The Akua API is a RESTful API that lets you manage workspaces, clusters, products, offers, and installs programmatically. It powers the dashboard and the Akua CLI, and you can use it to build custom integrations.

Soft-launch availability

Use the guides to deploy your application, share it with a customer, or install an app you received. The reference also lists hosted Sandbox and dedicated OpenCode Server APIs. Those features are not available in the soft launch. A listed API operation does not mean that the feature is available.

Base URL

All API requests are made to:

https://api.akua.dev/v1

An illustrative request:

curl https://api.akua.dev/v1/workspaces \
  -H "Authorization: Bearer $AKUA_API_TOKEN"

Workspace-scoped endpoints resolve the workspace from your credential. A workspace API token already belongs to a workspace, so you can omit any workspace header entirely. With a broad credential (dashboard session or multi-workspace token), select the workspace with the optional Akua-Context header:

curl https://api.akua.dev/v1/installs \
  -H "Authorization: Bearer $AKUA_API_TOKEN" \
  -H "Akua-Context: ws_xxx"

Authentication guide

Learn how to create tokens, scope requests, and use JWTs.

Conventions

The API uses snake_case for all field names. This keeps responses consistent regardless of the client language and matches the format you see in curl, logs, and debugging tools.

Response format

Single objects are returned directly (no wrapper). Timestamps are Unix seconds:

{
	"id": "ws_j572abc123def4",
	"name": "my-workspace",
	"created_at": 1734567890
}

List responses return data with flat pagination fields:

{
	"data": [{ "id": "ws_j572abc123def4", "name": "my-workspace", "created_at": 1734567890 }],
	"has_more": true,
	"next_cursor": "opaque..."
}

Error responses use one envelope for every failure. errors always has at least one entry; path and metadata appear when they apply:

{
	"_tag": "NotFound",
	"success": false,
	"errors": [{ "code": 7002, "message": "Install not found" }],
	"result": {}
}

Pagination

List endpoints support cursor-based pagination with two query parameters:

ParameterTypeDefaultDescription
limitinteger50Items per page (1–100)
cursorstring(none)Value of next_cursor from a previous response

Error codes

_tag names the error and errors[].code is the stable machine-readable code. Branch on the HTTP status or _tag, and show message to people.

HTTP status_tagcodeMeaning
400Validation7001The request is malformed
401Unauthorized7003Missing, invalid, or expired credential
403Forbidden7004The credential may not act in this workspace
404NotFound7002Resource does not exist
409Conflict7006Conflicts with the current state
409PreconditionFailed7006The If-Match etag is stale; metadata.current_etag has the current one
410Gone7013The resource is gone
422Unprocessable7007The request is well formed but cannot be processed
429TooManyRequests7008Rate limit reached
500InternalServerError7009Unexpected server error
502ExternalServiceError7010An upstream service failed
503ServiceUnavailable7011Temporarily unavailable
504GatewayTimeout7012An upstream service timed out

Idempotency-key reuse with a different request returns 409 IdempotencyConflict (code 7015).

OpenAPI spec

The spec for the public API is served as raw OpenAPI 3.1 JSON:

OpenAPI spec

Raw OpenAPI 3.1 specification (JSON).