Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Paused Runs, Human Input, and Resumption

A paused run waits for a person’s response. Resume that run instead of starting a second workflow so the decision stays attached to the original execution.

Resume the existing run

Obtain the person’s response and send it with the token issued for that pause. Keep tokens out of logs and frontend events. A 202 response accepts resumption; continue checking the run state.

Copy the example
POST /v2/runs/{run_id}/resume
Content-Type: application/json

{
  "resume_token": "<token-from-the-paused-step>",
  "response": "<the-persons-response>"
}

# After acceptance, follow the same run ID.
GET /v2/runs/{run_id}

Before you begin

Permission to read and resume the run, and the pending input returned by that run.

Run resumption concepts

Term
Definition

Paused

A run state that waits for a supported response before it can continue. Respond to the existing run instead of starting a new one.

Resume token

A value supplied for a particular pending human-input request. Use it for that request only and keep it out of logs or public links.

Response type

The supported form of human input, such as text, approval, or choice. Match the submitted response to the pending request’s requirements.

Run

One execution of a project. Use its run ID to retrieve that execution’s state, input, output, and errors.

Terminal state

A state indicating that a run has ended, such as succeeded, failed, or cancelled. Stop normal completion polling only after a final state is known.

Resume a paused run

  1. Read the paused run and display the requested prompt and response options.

  2. Submit its resume token and a response that matches the requested type.

  3. Poll the same run until it pauses again or reaches a terminal state.

The existing run continues with the submitted response.

Behavior and limitations

On v2 runs, pending input is exposed only when the caller has the required read and resume permissions. A 202 response acknowledges the resume request; it does not mean the workflow finished. Re-read state after a conflict. Do not log resume tokens or reuse them with another run.

Resume a paused v2 run

Read GET /v2/runs/{run_id} and use the token from that run’s pending request. Submit the response to POST /v2/runs/{run_id}/resume:

Use the response type required by the pending request. After a 202 response, read the same run again. If the run is no longer resumable, refresh its status instead of reusing the token.

Execution Order and Node Dependencies

Was this helpful?