Skip to main content
POST
/
order_drafts
/
{id}
:createWorkerBootstrap
Create order draft worker bootstrap
curl --request POST \
  --url https://api.akua.dev/v1/order_drafts/{id}:createWorkerBootstrap \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'if-match: <if-match>' \
  --data '
{
  "ttl_seconds": 43230
}
'
{
  "token": "<string>",
  "expires_at": 1,
  "command": "<string>",
  "cloud_init": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://akua-1dce587a.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens

Headers

if-match
string
required

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"

Path Parameters

id
string
required

Order draft ID

Required string length: 1 - 55
Example:

"odft_j572abc..."

Body

application/json
ttl_seconds
integer
Required range: 60 <= x <= 86400

Response

Worker bootstrap data

token
string
required

Short-lived worker join token (one-time view).

expires_at
integer
required

Token expiry time (unix seconds).

Required range: x >= 0
command
string
required

Bash bootstrap command with the token already substituted, ready to run on a worker node.

cloud_init
string
required

Cloud-init YAML with the token already substituted, ready to use as worker-node user-data.