XISUITEDokumentation

Automation Runs

7 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1

List paginated run history#

GET/automations/{id}/runsToken

Returns runs for the automation ordered by `created_at` descending. Defaults: `page=1`, `limit=20`. Maximum `limit` is 100. If `spaceId` is provided it is validated against the automation's actual space.

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring

Automation UUID

spaceIdQuerystring

Space UUID — validated against the automation if provided

pageQuerynumber

Page number (default: 1)

limitQuerynumber

Items per page (default: 20, max: 100)

Antworten

  • 200Array of automation runs
  • 400spaceId does not match this automation
  • 401Not authenticated
  • 404Automation not found
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/{id}/runs" \
  -H "Authorization: Bearer $XISUITE_TOKEN"

Get run details with all steps#

GET/automations/{id}/runs/{runId}Token

Returns the full run record alongside all its execution steps ordered by `step_index`. Each step includes `input`, `output`, `error_message`, and timing fields. If `spaceId` is provided it is validated against the automation's actual space.

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring

Automation UUID

runIdPflichtPfadstring

Run UUID

spaceIdQuerystring

Space UUID — validated against the automation if provided

Antworten

  • 200`{ run: IAutomationRun, steps: IAutomationRunStep[] }`
  • 400spaceId does not match this automation
  • 401Not authenticated
  • 404Automation or run not found
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/{id}/runs/{runId}" \
  -H "Authorization: Bearer $XISUITE_TOKEN"

Cancel an in-progress run#

POST/automations/{id}/runs/{runId}/cancelToken

Stops a `running` or `queued` run. Sets all `pending` and `running` steps to `cancelled` with an error message indicating who cancelled it. Returns 409 if the run is already in a terminal state (`succeeded`, `failed`, `cancelled`). `spaceId` in the body must match the automation's actual space.

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring

Automation UUID

runIdPflichtPfadstring

Run UUID

Request-Bodyapplication/jsonRunActionDto

NameTypBeschreibung
spaceIdPflichtstring

Space ID the automation belongs to

Antworten

  • 200`{ runId }` of the cancelled run
  • 400spaceId required or does not match this automation
  • 401Not authenticated
  • 403Insufficient space permissions
  • 404Automation or run not found
  • 409Run is already in a terminal state
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/runs/{runId}/cancel" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"spaceId":"…"}'

Retry a failed run with the same payload#

POST/automations/{id}/runs/{runId}/retryToken

Creates a new run using the same `trigger_payload` and `automation_version_id` as the original run. Seeds the first actionable step nodes (non-trigger nodes with no incoming edges) as `pending`. Returns 201 with the new `runId`. `spaceId` in the body must match the automation's actual space.

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring

Automation UUID

runIdPflichtPfadstring

Original run UUID to retry

Request-Bodyapplication/jsonRunActionDto

NameTypBeschreibung
spaceIdPflichtstring

Space ID the automation belongs to

Antworten

  • 201`{ runId }` of the newly created retry run
  • 400spaceId required or does not match this automation
  • 401Not authenticated
  • 403Insufficient space permissions
  • 404Automation or original run not found
  • 500Failed to create retry run
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/runs/{runId}/retry" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"spaceId":"…"}'

Continue a paused step (resume from debug breakpoint)#

POST/automations/{id}/runs/{runId}/steps/{stepId}/continueToken

Resets a `paused` step back to `pending` so the worker executes it on the next cycle. Also re-opens the parent run if it is not already `running`.

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring

Automation UUID

runIdPflichtPfadstring

Run UUID

stepIdPflichtPfadstring

Step UUID

Request-Bodyapplication/json

NameTypBeschreibung
spaceIdPflichtstring (uuid)–

Antworten

  • 200Step resumed — status set to pending
  • 400Step is not paused or spaceId mismatch
  • 404Step not found
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/runs/{runId}/steps/{stepId}/continue" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"spaceId":"…"}'

Replay a failed step#

POST/automations/{id}/runs/{runId}/steps/{stepId}/replayToken

Resets a `failed` step back to `pending` so the worker picks it up on the next cycle. Optionally accepts a custom `payload` to replace the step input. Re-opens the parent run if it is in a terminal state.

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring

Automation UUID

runIdPflichtPfadstring

Run UUID

stepIdPflichtPfadstring

Step UUID

Request-Bodyapplication/json

NameTypBeschreibung
spaceIdPflichtstring (uuid)–
payloadany

Optional custom input to replace the step input

Antworten

  • 200Step reset to pending
  • 400Step is not in failed state or spaceId mismatch
  • 404Step not found
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/runs/{runId}/steps/{stepId}/replay" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"spaceId":"…"}'

Stream live run status via Server-Sent Events#

GET/automations/{id}/runs/{runId}/streamToken

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring

Automation UUID

runIdPflichtPfadstring

Run UUID

Antworten

  • 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/{id}/runs/{runId}/stream" \
  -H "Authorization: Bearer $XISUITE_TOKEN"
Stand: 25. Oktober 2026© 2026 XISUITE · AmberTech Solutions