Create package version
Registers an immutable version for an existing Package. OCI-backed Packages verify the supplied version metadata against the published artifact before durable registration. Hosted Packages publish the immutable version from an authored repository while preserving the Package, Products, Offers, and existing Installs.
Authorizations
workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens
Headers
Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.
1 - 53"ws_j572abc123def456"
Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.
1 - 64"create-prod-2026-05-07"
Path Parameters
Package ID
1 - 54"pkg_j572abc123def456"
Body
- Option 1
- Option 2
1 - 128^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$"1.2.3"
Immutable package content reference. For OCI-backed packages this is normally the digest returned by akua publish; Akua verifies it against the published artifact before registering the version.
1 - 512JSON Schema exported from the Akua package version. Used to render future install forms; Akua verifies it against the published artifact before registering the version.
Response
Package version created
1 - 551 - 541 - 128^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$Unix timestamp (seconds)
x >= 0Unix timestamp (seconds)
x >= 0