Skip to content

Workflows

Execute workflow

Run the active deployment, set `run: { source: "deployment", version }` to run an earlier deployment version, or set `run.source: "draft"` to run the saved draft. Deployed execution requires workspace read access and OAuth `api:write` scope or a full-access API key; public deployments also allow anonymous synchronous or streamed runs. Running a chosen version requires workspace write access and a full-access API key or OAuth `api:write` scope; an unknown version returns `404`. Draft runs require a full-access personal API key or OAuth `api:write` scope, and workspace write access; workspace API keys are refused, and draft runs cannot be async. Use `async: true` for a queue receipt, or `stream: true` for SSE. For a synchronous run with both flags false, send `Accept: application/x-ndjson` for heartbeat frames and a final frame containing `data`. With `waitTimeoutSeconds`, a synchronous run still going when the wait elapses continues in the background and answers with its run receipt instead: `202` on a JSON response, or a closing `detached` frame on an NDJSON stream, which keeps its `200`. Timeouts return `200` with `status: "failed"` and `error.code: "TIMEOUT"`; inspect run status. See [Streaming](/workflows/deployment/api#streaming) for event formats. Input descriptions specify compatible modes; invalid combinations return `400`. Supply `X-Run-Id` to prevent duplicate execution. Reuse returns `409`, without replaying results. A `503` with `error.details.code: "ASYNC_ENQUEUE_AMBIGUOUS"` omits `Retry-After` because the run may already have started. Reconcile using the returned run ID; do not start another run with a new or omitted ID. OAuth scope: `api:write`.

POST/api/v2/workflows/{workflowId}/execute

Run the active deployment, set run: { source: "deployment", version } to run an earlier deployment version, or set run.source: "draft" to run the saved draft. Deployed execution requires workspace read access and OAuth api:write scope or a full-access API key; public deployments also allow anonymous synchronous or streamed runs. Running a chosen version requires workspace write access and a full-access API key or OAuth api:write scope; an unknown version returns 404. Draft runs require a full-access personal API key or OAuth api:write scope, and workspace write access; workspace API keys are refused, and draft runs cannot be async.

Use async: true for a queue receipt, or stream: true for SSE. For a synchronous run with both flags false, send Accept: application/x-ndjson for heartbeat frames and a final frame containing data. With waitTimeoutSeconds, a synchronous run still going when the wait elapses continues in the background and answers with its run receipt instead: 202 on a JSON response, or a closing detached frame on an NDJSON stream, which keeps its 200. Timeouts return 200 with status: "failed" and error.code: "TIMEOUT"; inspect run status. See Streaming for event formats. Input descriptions specify compatible modes; invalid combinations return 400.

Supply X-Run-Id to prevent duplicate execution. Reuse returns 409, without replaying results. A 503 with error.details.code: "ASYNC_ENQUEUE_AMBIGUOUS" omits Retry-After because the run may already have started. Reconcile using the returned run ID; do not start another run with a new or omitted ID.

OAuth scope: api:write.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:write

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

Alternatively

Anonymous access is permitted.

OAuth scope: api:write.

Path parameters

workflowIdstringRequired

Unique workflow identifier.

minLength
1

Header parameters

x-run-idstring

Run ID for API-key or OAuth callers; ignored for anonymous requests. Reuse it after an uncertain response: a claimed ID returns 409 with RUN_ID_CONFLICT, without replaying results. Check Get workflow run, but 404 can persist while the ID remains claimed and does not establish whether execution started. Do not automatically restart with a fresh or omitted ID; either can start another run.

minLength
1
maxLength
128
pattern
^[A-Za-z0-9._:-]+$
x-sim-viastring

Comma-separated workflow identifiers naming the workflow-to-workflow call chain that led to this request. Each hop appends its own workflow id, and Sim sets it automatically; supply it yourself only when relaying an existing chain. A chain at the maximum depth is rejected with 409 and error.details.code: "CALL_CHAIN_DEPTH_EXCEEDED".

Request body

Required

Input, workflow-state selection, and execution-mode options. Input descriptions specify compatible modes; invalid combinations return 400.

object

Input, workflow-state selection, and execution-mode options. Input descriptions specify compatible modes; invalid combinations return 400.

11 fields
inputobject

Workflow input keyed by the selected trigger input-field name.

Schema details
Additional propertiesvalue

Value supplied for one workflow input field.

runvalue

Workflow state and entry point to execute. Omit for the active deployment; source: "deployment" with version runs that deployment version, and source: "draft" the saved draft. A draft run requires OAuth or personal-key write access and supports synchronous or streamed runs only; waitTimeoutSeconds lets a synchronous one continue in the background.

Schema details

Exactly one of

Option 1object
2 fields
sourcestringRequired

Execute a deployed workflow version.

const
deployment
versioninteger

Deployment version to execute instead of the active one. Requires a full-access API key or an OAuth access token with api:write, plus workspace write access, and the workflow must be deployed. An unknown version returns 404.

minimum
1
maximum
2147483647

Additional properties are not allowed.

Option 2object
7 fields
sourcestringRequired

Run the saved draft. manual is a deprecated name of draft.

enum
["draft","manual"]
entryvalue

Where the draft run enters. Omit to enter through the workflow trigger; a block entry requires an exact source run.

Schema details

Exactly one of

Option 1object
4 fields
typestringRequired

Enter the draft run through a runnable trigger.

const
trigger
blockIdstring

Runnable trigger block to enter through. Omit only when the saved workflow has exactly one runnable trigger.

minLength
1
sampleboolean

Run with the selected trigger's sample payload, which the server derives from the trigger, instead of input. Its writes are sent unless dry. Cannot be combined with input.

useMockPayloadbooleanDeprecated

Deprecated name of sample, accepted with the same meaning. Send sample; a request that sends both with different values is refused.

Additional properties are not allowed.

Option 2object
3 fields
typestringRequired

Start the draft run at a block, using persisted upstream state.

const
block
blockIdstringRequired

Saved workflow block at which the draft run starts: its id, display name or reference key (the name lowercased, whitespace and dots removed).

minLength
1
sourceRunIdstringRequired

Run in this workflow whose persisted execution state supplies upstream block results. Missing or expired state returns 404. A test run (a dry run, or a workflow test) holds placeholders for the writes it did not send, so it is the source only of a dry run.

minLength
1

Additional properties are not allowed.

stopAfterBlockIdstring

Saved workflow block after which the run stops (its id, display name or reference key); downstream blocks do not execute. Must not be inside a loop or parallel. If a router, condition, or untaken error path routes the run away from the block, the run fails as soon as that is decided; no further block starts, though blocks already running finish. With a block entry naming the same block, re-runs only that block against the source run.

minLength
1
dryboolean

Dry run: a call that could change something outside the run (a tool call not declared read, every MCP call, an HTTP request other than a GET, HEAD or OPTIONS without a method-override header) is not sent but answered with a correctly shaped placeholder, and the run returns what it held back in sideEffects, each list described there. Reads, model calls, credential resolution and code run for real. Child workflows inherit it; custom, Mothership, Pi, Human in the loop and Wait blocks are answered whole, so the run never pauses. Agents read their memory but write none, and nothing else beyond the run's own log is kept: it raises no workspace event, does not count as a run of the workflow, and is logged under the test trigger. Synchronous only: cannot be combined with stream or waitTimeoutSeconds.

allowarray

Blocks whose writes a dry run sends for real, listed in sideEffects.allowed. Requires dry. Name a block of this workflow by id, display name or reference key, or a block of a workflow it calls as <workflow>.<block> (the workflow's id or name, then the block's id, name or key), at most 256 characters. A selector holding a dot names a block of this workflow only by its exact id or display name; otherwise its workflow part is matched against the workflows its Workflow blocks call at any depth, then, for a child chosen as the run goes, a workflow of this workspace by id or exact name. A selector matching several blocks is refused with them. A child's entry applies wherever that workflow runs, at every depth. A Human in the loop or Wait block, a block that runs another workflow (a Workflow or custom block), a loop or parallel, a disabled block, or a block of a workflow reached only as a custom block's cannot be allowed. Allowing an Agent sends only its own tool calls: a workflow or custom block it calls stays stubbed. An entry the run never reaches is listed in sideEffects.unreached.

maxItems
50
Schema details
Array itemstring
minLength
1
maxLength
256
mocksobject

Blocks answered with this output object instead of running, to steer branches or give a stubbed write a realistic result, keyed like allow entries (a block of this workflow, or <workflow>.<block> of a workflow it calls). Requires dry. A locked block (or one inside a locked loop or parallel), a loop or parallel, and a disabled block cannot be mocked; a block of a locked workflow, or of one in a locked folder, returns 423. A mock is data: it cannot set a field the run’s execution, trace or billing reads (cost, tokens, model, providerTiming, toolCalls, executionData, childTraceSpans, childWorkflowId, childWorkflowSnapshotId, childDeploymentVersionId, or any field starting with _), nor hold a large-value reference (an object with __simLargeValueRef). A field the block does not declare is listed in sideEffects.mockFields, not refused. The run records only which blocks were mocked, so a rerun passes the outputs again; its log shows a mocked block’s output like any other block’s.

maxProperties
50
Schema details
Additional propertiesobject

Output object that answers the block instead of its handler.

Schema details
Additional propertiesvalue

Output field.

mocksFromobject

Answer blocks with their outputs in an earlier run of this workflow. Requires dry. The run records the source run and blocks, so a rerun names them again.

2 fields
runIdstringRequired

Run of this workflow whose recorded block outputs answer the blocks. An unknown or expired run returns 404; one still running, or whose log is not written yet, 409; reading it needs what reading the run does, and a permission group that hides execution data returns 403.

minLength
1
blocksarrayRequired

This workflow's blocks (not a child's; not inside a loop or parallel unless that run mocked it), by id, display name or reference key, answered with the output each recorded in that run, redacted as the run shows it. Refused: a block the run did not execute, and, when that run was a test run, a block it answered with a placeholder rather than mocking or allowing it. Fields a mock cannot set (see mocks) are left out and listed in sideEffects.mockFields; an output holding a large-value reference is refused. Other refusals are those of mocks, and a block cannot be named here and in mocks both.

minItems
1
maxItems
50
Schema details
Array itemstring
minLength
1
maxLength
256

Additional properties are not allowed.

Additional properties are not allowed.

asyncboolean

Queue the run and return a 202 receipt. Requires a full-access API key or an OAuth access token with api:write, and a deployed run source. Cannot stream, select outputs, enable thinking/tool events, or include file-inlining options (includeFileBase64 or base64MaxBytes).

default
false
executionTimeoutSecondsinteger

Maximum duration of an asynchronous run, in seconds, capped by the plan's execution timeout. Requires async: true or waitTimeoutSeconds; otherwise returns 400.

minimum
1
maximum
604800
waitTimeoutSecondsinteger

Wait at most this many seconds for a synchronous run; 0 waits until it settles. A run still going then continues in the background and the response carries its run receipt instead of its result: 202 on a JSON response, or a closing detached frame on an application/x-ndjson result stream, which keeps its 200. The receipt is sent only once the run can be read on the runs resource, where it can also be cancelled. The run is admitted under asynchronous limits, and a dropped connection no longer cancels it. Requires a full-access API key or an OAuth access token with api:write. Cannot be combined with async or stream.

minimum
0
maximum
604800
streamboolean

Return Server-Sent Events instead of JSON when true. Cannot be combined with async.

default
false
selectedOutputsarray

Select <blockName>.<outputPath> or <childWorkflowId>.<blockName>.<outputPath> using normalized block reference names. Child selectors cover every invocation. Synchronous results use selector strings verbatim as blockOutputs keys; streaming selections shape the envelope. Unknown block names or IDs return 400 with available blocks before execution. Unexecuted blocks and absent paths are omitted. Incompatible with async; select outputs from the finished run resource instead.

maxItems
100
Schema details
Array itemstring
minLength
1
includeThinkingboolean

Include model reasoning events in an agent-event stream. Requires stream: true and the X-Sim-Stream-Protocol: agent-events-v1 request header, and is rejected when async is true.

default
false
includeToolCallsboolean

Include tool-call events in an agent-event stream. Requires stream: true and the X-Sim-Stream-Protocol: agent-events-v1 request header, and is rejected when async is true.

default
false
includeFileBase64boolean

Inline eligible output files as base64 content. Rejected when async is true.

base64MaxBytesinteger

Maximum total bytes of file content to inline as base64, lowering but never raising the server limit of 16 MiB. Rejected when async is true.

maximum
16777216
exclusiveMinimum
0

Additional properties are not allowed.

Request example 1

json
{
  "input": {
    "ticketId": "ticket_123"
  }
}

Request example 2

json
{
  "input": {
    "ticketId": "ticket_123"
  },
  "async": true
}

Request example 3

json
{
  "input": {
    "ticketId": "ticket_123"
  },
  "stream": true
}

Request example 4

json
{
  "run": {
    "source": "draft"
  }
}

Request example 5

json
{
  "run": {
    "source": "draft"
  },
  "waitTimeoutSeconds": 240
}

Request example 6

json
{
  "run": {
    "source": "draft",
    "entry": {
      "type": "block",
      "blockId": "block_123",
      "sourceRunId": "run_123"
    }
  }
}

Request example 7

json
{
  "run": {
    "source": "draft",
    "entry": {
      "type": "block",
      "blockId": "block_123",
      "sourceRunId": "run_123"
    },
    "stopAfterBlockId": "block_123"
  }
}

Responses

200

A synchronous run result, heartbeat-delimited NDJSON result stream, or Server-Sent Event stream.

object

Completed, failed, paused, or cancelled synchronous workflow run.

1 field
dataobjectRequired

Response data.

13 fields
runIdstringRequired

Unique workflow run identifier.

minLength
1
maxLength
128
pattern
^[A-Za-z0-9._:-]+$
workflowIdstringRequired

Workflow that produced the run.

statusstringRequired

Terminal or paused run status.

enum
["completed","failed","paused","cancelled"]
outputvalueRequired

Workflow output, including partial output on failure.

blockOutputsvalueRequired

Outputs of the blocks named by selectedOutputs, keyed by those selector strings exactly as sent, or null when none were requested. output stays the final workflow output regardless. Selectors whose block did not run or whose path is absent are omitted (an unknown block is a 400 instead); failed runs include the outputs of the blocks that did run.

Schema details

Any of

Option 1object
Schema details
Additional propertiesvalue

Output value produced by one workflow block.

Option 2null
errorvalueRequired

Structured execution failure, or null when none occurred.

Schema details

Any of

Option 1object

Structured in-band failure details for a workflow run.

6 fields
messagestringRequired

Human-readable workflow execution failure message.

codestringRequired

Stable machine-readable execution failure code. BLOCK_EXECUTION_FAILED and CHILD_WORKFLOW_FAILED are reported only where block attribution is available; elsewhere a block-level failure is reported as EXECUTION_FAILED.

enum
["TIMEOUT","CANCELLED","USAGE_LIMIT_EXCEEDED","INVALID_INPUT","BLOCK_EXECUTION_FAILED","CHILD_WORKFLOW_FAILED","EXECUTION_FAILED"]
blockIdstring

Identifier of the failing block, when attributable. Get workflow run reads it from the run trace, so it is absent there when the trace is unavailable or hidden by organization permission groups, when no failed block in the trace recorded the run error, and for a timeout, cancellation, usage-limit, or invalid-input failure.

blockNamestring

Display name of the failing block, when attributable. Present whenever blockId is.

blockTypestring

Integration or block type that failed, when attributable. Present whenever blockId is.

rerunFromBlockIdstring

Block a rerun of this failure starts from (run.entry of type block naming it, with this run as sourceRunId): the failing block, or the outermost loop or parallel holding it, since a run cannot start inside one. Set by Execute workflow from the graph the run executed and by Get workflow run from the saved draft, whenever blockId is and that graph still has the block.

Additional properties are not allowed.

Option 2null
startedAtstring

ISO 8601 timestamp when execution started.

format
date-time
endedAtstring

ISO 8601 timestamp when execution ended.

format
date-time
durationMsnumber

Execution duration in milliseconds.

minimum
0
executionTimeoutSecondsvalueRequired

Execution timeout applied to this run, in seconds: the plan's timeout, lowered by executionTimeoutSeconds when one was requested. Null when the run has no execution timeout.

Schema details

Any of

Option 1number
exclusiveMinimum
0
Option 2null
pausedvalueRequired

Where the run waits when status is paused; null otherwise.

Schema details

Any of

Option 1object
2 fields
runIdstringRequired

Run to name in Resume workflow run: the run this pause is recorded under, which for a resumed run that paused again is the run it resumed.

pointsarrayRequired

Every point the run is paused at. Resume one with Resume workflow run, naming runId and its contextId.

Schema details
Array itemobject
3 fields
contextIdstringRequired

Pause context to name in contextId when resuming this point.

kindstringRequired

human waits for a resume request; time resumes automatically at resumeAt.

enum
["human","time"]
statusstringRequired

Resume state of this point: waiting, queued behind another resume, resuming, resumed, or a failed resume attempt.

enum
["paused","queued","resuming","resumed","failed"]

Additional properties are not allowed.

Additional properties are not allowed.

Option 2null
sideEffectsobject

What a dry run (run.dry) did with each write it reached, whatever its status; absent otherwise.

6 fields
stubbedarrayRequired

Calls that were not sent, in the order the run reached them, each answered with a placeholder (a table row insert, upsert or update echoes the data it would have written, secrets masked; placeholder ids and values the request cannot determine are dry_run_<kind>_<n> strings and numbers above 900000000): writes, every MCP call, and reads that would send a placeholder (reason). Code run in the isolate (JavaScript without imports: a Function block's, a Condition's expressions, a While or Do While loop's condition, or code an Agent's model writes) sends its GET, HEAD and OPTIONS fetch calls (an API that writes on a GET is not stubbed); any other request, or one carrying a method-override header, gets an empty 200 (header x-sim-dry-run: stubbed) and is listed here as tool function_execute.

Schema details
Array itemobject
8 fields
workflowIdstringRequired

Workflow whose block it was: the run workflow, or a child workflow it called.

blockIdvalueRequired

Block id in that workflow; null when the call named no block.

Schema details

Any of

Option 1string
Option 2null
blockvalueRequired

Block display name; null when the call named no block.

Schema details

Any of

Option 1string
Option 2null
toolvalueRequired

Tool the block (or an Agent) called; null when the whole block was answered instead of run.

Schema details

Any of

Option 1string
Option 2null
requestvalueRequired

What the call would have sent: an in-process operation's input, an HTTP call's method, url and body (never header values; for code's fetch, header names, the URL capped with only query parameter names, the body capped, and the code's workspace and personal secrets masked, though a secret typed into the code itself is not), or a custom or MCP tool's arguments. For a block answered whole, its logged inputs. Credentials, secrets, password fields and (when the workspace redacts it) PII are redacted; null when the run could not prove none remain, or could not build the request once they were masked (such as a URL that is wholly a secret).

Schema details

Any of

Option 1object
Schema details
Additional propertiesvalue

Request field.

Option 2null
returnedobjectRequired

Placeholder output the block or tool call returned to the run instead.

Schema details
Additional propertiesvalue

Placeholder field.

mcpobject

The MCP server and tool an MCP block's call named; absent for any other call.

2 fields
serverstringRequired

MCP server or managed connection id.

toolstringRequired

MCP tool name.

Additional properties are not allowed.

reasonstring

Why a call that is not a plain write was held back; absent for a plain write. placeholder: a read whose request holds a placeholder the run returned earlier (a dry_run_<kind>_<n> string or a number above 900000000, such as a placeholder row's id in a URL, or free text quoting one), so it depends on a call that was never sent. mcp-read-only: an MCP call whose server declares the tool read-only and not destructive (readOnlyHint, not destructiveHint), a claim Sim cannot verify; name its block in run.allow to send it.

enum
["placeholder","mcp-read-only"]

Additional properties are not allowed.

allowedarrayRequired

Writes sent for real because run.allow named their block, once per block and tool (an MCP block's per MCP tool).

Schema details
Array itemobject
5 fields
workflowIdstringRequired

Workflow whose block it was: the run workflow, or a child workflow it called.

blockIdvalueRequired

Block id in that workflow; null when the call named no block.

Schema details

Any of

Option 1string
Option 2null
blockvalueRequired

Block display name; null when the call named no block.

Schema details

Any of

Option 1string
Option 2null
toolvalueRequired

Tool sent; null when the whole block ran.

Schema details

Any of

Option 1string
Option 2null
mcpobject

The MCP server and tool an MCP block's call named; absent for any other call.

2 fields
serverstringRequired

MCP server or managed connection id.

toolstringRequired

MCP tool name.

Additional properties are not allowed.

Additional properties are not allowed.

uncheckedarrayRequired

Blocks whose code ran for real in a remote sandbox (shell, Python, JavaScript with imports, a selected sandbox or files), once per block: a Function block's code, a Condition's expressions, or code an Agent's model wrote, whose network calls the run cannot see. Code run in the isolate is not listed: its network writes are stubbed.

Schema details
Array itemobject
4 fields
workflowIdstringRequired

Workflow whose block it was: the run workflow, or a child workflow it called.

blockIdvalueRequired

Block id in that workflow; null when the call named no block.

Schema details

Any of

Option 1string
Option 2null
blockvalueRequired

Block display name; null when the call named no block.

Schema details

Any of

Option 1string
Option 2null
reasonstringRequired

Why the run cannot see what this code changed.

Additional properties are not allowed.

omittedobjectRequired

Entries each list left out once it held 50.

3 fields
stubbedintegerRequired

Writes left out of stubbed.

minimum
0
maximum
9007199254740991
allowedintegerRequired

Writes left out of allowed.

minimum
0
maximum
9007199254740991
uncheckedintegerRequired

Blocks left out of unchecked.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

unreachedarray

Allowed and mocked blocks the run never reached: on a branch it did not take, upstream of a block entry, or in a child it never called. Absent when none.

Schema details
Array itemobject
4 fields
workflowIdstringRequired

Workflow of the block.

blockIdstringRequired

Block id in that workflow.

blockstringRequired

Block display name.

kindstringRequired

allow for a run.allow entry, mock for run.mocks or run.mocksFrom.

enum
["allow","mock"]

Additional properties are not allowed.

mockFieldsarray

Mocks with fields a block reading them gets nothing from. Absent when none.

Schema details
Array itemobject
5 fields
workflowIdstringRequired

Workflow of the block.

blockIdstringRequired

Block id in that workflow.

blockstringRequired

Block display name.

undeclaredarray

Top-level fields a passed mock sets that its block does not declare as outputs, likely misspelt. Agent and Function blocks, whose outputs the model or code decides, never have any.

Schema details
Array itemstring

Output field.

droppedarray

Fields of an output read from a run (run.mocksFrom) that a mock cannot set (see run.mocks), so left out.

Schema details
Array itemstring

Output field.

Additional properties are not allowed.

Additional properties are not allowed.

overridesobject

A dry run's overrides (run.dry); absent for any other run.

3 fields
allowarrayRequired

Blocks whose writes the run sent (run.allow).

Schema details
Array itemstring

Block selector.

mocksarrayRequired

Blocks the run answered with outputs the caller passed (run.mocks). Only the blocks are recorded, so a rerun passes the outputs again.

Schema details
Array itemstring

Block selector.

mocksFromobject

Blocks the run answered with their outputs in another run (run.mocksFrom), which a rerun reads again. Absent when none.

2 fields
runIdstringRequired

Run the outputs were read from.

blocksarrayRequired

Blocks answered, by id.

Schema details
Array itemstring

Block id.

Additional properties are not allowed.

Additional properties are not allowed.

Additional properties are not allowed.

Additional properties are not allowed.

Response example 1

json
{
  "data": {
    "runId": "run_8f14e45f-ceea-467f-a",
    "workflowId": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36",
    "status": "completed",
    "output": {
      "result": "Ticket routed to Support"
    },
    "blockOutputs": null,
    "error": null,
    "startedAt": "2026-08-09T18:04:10.000Z",
    "endedAt": "2026-08-09T18:04:11.000Z",
    "durationMs": 1000,
    "paused": null,
    "executionTimeoutSeconds": 3000
  }
}

Response headers

X-Run-Idstring

Identifier assigned to the workflow run.

minLength
1
X-RateLimit-Limitinteger

Maximum requests allowed in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Remaininginteger

Requests remaining in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Resetstring

ISO 8601 timestamp when the current rate-limit window resets.

format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Was this helpful?
Suggest an edit