EndpointsRedeem order draft

Order Drafts

Redeem order draft

Checks the draft and the sensitive values together (422 names what is missing or wrong, and nothing changes), then redeems the Offer into the Workspace and creates the Install with the Offer's pinned Package version. The answer is installing with install_id and operation_id. A retry resumes the same redemption and Install whatever its Idempotency-Key; resend the sensitive values with it (an Install already created keeps the ones it was created with).

POST/order_drafts/{id}:redeem
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

if-matchstringrequired

The etag of the resource version the client last read. Required on writes when the resource exposes an etag field. Mismatch returns 409 ABORTED with the current etag in the error metadata.

Required string length: 1 - 256

Example: "42"

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

idstringrequired

Order draft ID

Required string length: 1 - 55

Example: "odft_j572abc..."

Body

application/json

The sensitive configuration values, as a values object holding only those fields. They go to the Install and its vault and are never stored on the draft.

Response

application/json

Offer redeemed and Install started

idstringrequired

Order draft ID

Required string length: 1 - 55

Example: "odft_j572abc..."

offer_idstringrequired

The Offer this draft redeems

statusenum<string>required

draft: editable. redeeming: fields frozen while the Offer is redeemed and the Install created; :redeem again resumes it. installing: the Install exists (install_id, operation_id). failed: the Offer redeemed but the Install could not be created (condition install-failed). cancelled: ended by the customer.

Available options: draft, redeeming, installing, cancelled, failed

workspace_idstring | nullrequired
cluster_idstring | nullrequired
valuesobjectrequired

The customer's configuration values, without the Offer's values and without sensitive values.

missingobject[]required
child attributes
missing.kindenum<string>required

Available options: workspace

problemsobject[]required
child attributes
problems.kindenum<string>required

Available options: offer

problems.reasonenum<string>required

Available options: not_found, not_for_you, unavailable, exhausted

problems.messagestringrequired

Why, for the customer to read

install_idstring | nullrequired
operation_idstring | nullrequired

The Install's create Operation; poll /v1/operations

conditionsobject[]required

What needs attention now; empty when nothing does. Reasons:

  • install-failed (error): the Offer was redeemed but the Install could not be created; the draft is failed.

Maximum array length: 32 elements

child attributes
conditions.reasonstringrequired

Kebab-case reason; the resource documents the reasons it reports.

Maximum string length: 64

Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$

Example: "agent-offline"

conditions.severityenum<string>required

error: the resource failed; the condition says why. warning: it is limited or held until the person acts or it recovers. info: worth knowing, nothing to do.

Available options: error, warning, info

conditions.messagestringrequired

Safe to show the person as is.

Maximum string length: 512

conditions.remedyobject | nullrequired

What the person can do; null when nothing they do helps.

conditions.remedy.kindenum<string>required

Available options: free-capacity

conditions.remedy.metricenum<string>required

Available options: kaas/clusters, compute/machines, compute/cpu, compute/memory, compute/machines_concurrency, compute/managed_vm_trial, agents/turns_concurrency, agents/sandboxes, agents/sandboxes_running, agents/retained_filesystem_lifetime, codemode/executions, api/secrets_access, api/secrets_write, domain_routing/preview_hostnames, domain_routing/custom_domains, source_control/repositories

Maximum string length: 256

Unix timestamp (seconds) when this condition last changed.

Required range: x >= 0

redeemed_atinteger | nullrequired

Unix timestamp (seconds)

Required range: x >= 0

created_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

updated_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

expires_atintegerrequired

Unix timestamp (seconds). After this time a draft can no longer change or redeem.

Required range: x >= 0

etagstringrequired