Wait for an operation to reach a terminal state
Long-polls server-side until the operation reaches a terminal state (SUCCEEDED, FAILED, CANCELLED) or the timeout elapses. Returns the latest Operation either way — check done to distinguish.
Server-side this is a live subscription on the operation row, not a polling loop, so the response fires within milliseconds of the workflow reaching its terminal state.
State for in-flight operations is eventually consistent — may lag actual execution by a few seconds. State for completed operations (done: true) is immutable.
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
workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens
Path Parameters
Operation ID. Prefixed form op_<id> is canonical; bare IDs accepted during transition.
1 - 53"op_j572abc..."
Query Parameters
Max seconds to wait for the operation to reach a terminal state. Default 30, max 60.
1 <= x <= 60Response
Operation in its latest known state (terminal or still running on timeout)
1 - 531 - 531 - 54Domain entity collection the operation acts on.
install, repository_change_request, repository, workspace, machine, cluster, package Prefixed ID of the entity this operation acts on. Prefix matches owner_type (ws_, mch_, clu_, pkg_, inst_, rcr_, repo_).
ID of the chained parent operation, when present.
1 - 53Lifecycle state. Past-participle terminal states per AIP-216.
RUNNING, SUCCEEDED, FAILED, CANCELLED True iff state is a terminal value.
Deep link to the dashboard view of this operation.
"https://app.akua.dev/dashboard/installs/inst_j572abc...?tab=operations"
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
Populated only when done && state === "SUCCEEDED". Discriminated by type.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
Populated when state is FAILED or CANCELLED.
Latest error from any failed step. Populated even mid-flight; cleared when the step succeeds on retry.
Unix timestamp (seconds)
x >= 0Unix timestamp (seconds)
x >= 0