Automation

List run waits

List current and historical waits in ledger order.

List current and historical waits in ledger order. Wait types include event, timer and child.

GET /automation/v1/runs/{id}/waits

Authentication

Authorization: Bearer $PRAXIS_API_KEY

Request fields

ParameterTypeDescription
path: idstringrequired; Run ID (run_).
query: limitintegeroptional; Page size: integer 1–100, default 50. minimum: 1; maximum: 100
query: cursorstringoptional; Opaque next_cursor from the previous page; keep the original filters when paging.

Examples

Set these environment variables to your own resources:

: "${RUN_ID:?Set RUN_ID}"
curl --fail-with-body -X GET "https://api.deepraxis.ai/automation/v1/runs/${RUN_ID}/waits" \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
import { createAutomationClient } from '@deepraxis/sdk/automation';

function env(name: string): string {
  const value = process.env[name];
  if (!value) throw new Error(`Set ${name}`);
  return value;
}
const automation = createAutomationClient({
  apiKey: env('PRAXIS_API_KEY'),
  baseUrl: 'https://api.deepraxis.ai',
  maxRetries: 0,
  timeoutMs: 90_000,
});
const result = await automation.runs.waits.list({
  "path": {
    "id": env("RUN_ID")
  }
});
console.log(result);

Response

HTTP 200

Success

application/json

FieldTypeDescription
dataobject[]required; Wait points, current and historical on this page, ordered by created_at descending, then id descending.
data[].idstringrequired; Wait point id, prefixed wait_; use it as wait_id when completing an event wait.
data[].run_idstringrequired; Id (run_) of the run this wait belongs to.
data[].kind"event" / "timer" / "child"required; Wait kind. event waits for an external event that can be submitted with runs.completeWait; timer waits until resume_at; child waits for a child run to finish.
data[].state"cancelled" / "open" / "resolved" / "expired"required; Wait point state. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
data[].tasknull / objectrequired; The workflow step {reference, name} that produced the wait; null when there is no such step.
data[].task (variant 2).referencestringrequired; JSON Pointer of the step, for example /do/2/wait_payment.
data[].task (variant 2).namestringrequired; Step name, the key in the workflow YAML.
data[].resume_atnull / stringrequired; For kind=timer, the instant the run resumes (RFC 3339 UTC); null for other kinds.
data[].event_typenull / stringrequired; For kind=event, the event type being awaited; null for other kinds.
data[].child_run_idnull / stringrequired; For kind=child, the id of the child run being awaited; null for other kinds.
data[].created_atstringrequired; Time the wait point was created (RFC 3339 UTC).
data[].expires_atnull / stringrequired; Time the wait point expires (RFC 3339 UTC), or null if it has no deadline.
data[].resolved_atnull / stringrequired; Time the wait point was resolved (RFC 3339 UTC), or null if still open.
next_cursornull / stringrequired; Cursor for the next page: pass it unchanged as cursor with the same filters; null when there are no more pages. No total is returned.

Measured response

HTTP 200

{
  "data": [
    {
      "id": "wait_wf-eebc9ef34869206fa1bcc1e2ae6375990a7ab34c5ad485ac98a4f189c4b37346",
      "run_id": "run_00mv67mkw52c7fa90cc9649b1053e66fd836b071f289acb667ff8ca853e65bc4608e9a45bd",
      "kind": "event",
      "state": "open",
      "task": {
        "reference": "/do/0/ready",
        "name": "ready"
      },
      "resume_at": null,
      "event_type": "ready",
      "child_run_id": null,
      "created_at": "2026-10-13T04:57:56.982Z",
      "expires_at": "2026-10-14T04:57:50.405Z",
      "resolved_at": null
    }
  ],
  "next_cursor": null
}

Errors

HTTPCodes and description
400INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
404RUN_NOT_FOUND: The run does not exist or is not visible to this tenant.
defaultRFC 9457 automation problem. 429 includes Retry-After.

Authentication and common errors · Retain the X-Request-Id response header for troubleshooting.

Export

On this page