Skip to content
中文

List run waits

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

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

Authentication

Authorization: Bearer $PRAXIS_API_KEY

Request fields

Parameter Type Description
path: run_id string required; Run ID (run_).
query: limit integer optional; Page size: integer 1–100, default 50. minimum: 1; maximum: 100
query: cursor string optional; 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.com/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.com',
  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

Field Type Description
data object[] required; Wait points, current and historical on this page, ordered by created_at descending, then id descending.
data[].id string required; Wait point id, prefixed wait_; use it as wait_id when completing an event wait.
data[].run_id string required; 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; Deprecated, read status, which holds the same value. 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[].task null / object required; The workflow step {reference, name} that produced the wait; null when there is no such step.
data[].task (variant 2).reference string required; JSON Pointer of the step, for example /do/2/wait_payment.
data[].task (variant 2).name string required; Step name, the key in the workflow YAML.
data[].resume_at null / string required; For kind=timer, the instant the run resumes (RFC 3339 UTC); null for other kinds.
data[].event_type null / string required; For kind=event, the event type being awaited; null for other kinds.
data[].child_run_id null / string required; For kind=child, the id of the child run being awaited; null for other kinds.
data[].created_at string required; Time the wait point was created (RFC 3339 UTC).
data[].expires_at null / string required; Time the wait point expires (RFC 3339 UTC), or null if it has no deadline.
data[].resolved_at null / string required; Time the wait point was resolved (RFC 3339 UTC), or null if still open.
data[].status "cancelled" / "open" / "resolved" / "expired" required; Wait point status. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
next_cursor null / string required; 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-c06c2de24a35fcab7ef8c6451e48092c5195be9bad5191b4618f5c97ddf25cbc",
      "run_id": "run_00mvoxmwjzff0773d6c5a90811cfc2a1a2386d82fea8ebc2ed20fe05f5d7c63847de0dffdc",
      "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-26T07:25:53.267Z",
      "expires_at": "2026-10-27T07:25:46.703Z",
      "resolved_at": null
    }
  ],
  "next_cursor": null
}

Errors

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

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