Skip to main content
POST
/
v2
/
workflows
/
dlq
/
resume
/
{dlqId}
Resume Workflow from DLQ
curl --request POST \
  --url https://qstash.upstash.io/v2/workflows/dlq/resume/{dlqId} \
  --header 'Authorization: Bearer <token>'
{
  "workflowRunId": "<string>",
  "workflowCreatedAt": 123
}
When a workflow run fails, it’s automatically moved to the DLQ (Dead Letter Queue) where it can be analyzed and resumed. The resume feature allows you to continue a failed workflow run from exactly where it failed, without re-executing successfully completed steps. This is particularly useful for long-running workflows where you don’t want to lose progress from successful steps when a single step fails. When a workflow is resumed, it continues execution from the last failed step. A new workflow run ID is generated, but the workflow maintains the state and results from previously completed steps.
You can make changes to the workflow code as long as these changes come after the failed steps. However, making changes before the failed step will break the code and is not allowed.For more details, check out Handle workflow route code changes page.

Authorizations

Authorization
string
header
required

QStash authentication token

Headers

Upstash-Retries
integer

Override the number of retries for the remaining workflow steps.

Upstash-Delay
string

Override the delay before executing the next workflow step. Format is <value><unit> (e.g., "10s", "5m").

Upstash-Retry-Delay
string

Override the retry delay expression for the remaining workflow steps.

Upstash-Flow-Control-Key
string

Override the flow control key for the remaining workflow steps.

Upstash-Flow-Control-Value
string

Override the flow control configuration in the format parallelism=<value>, rate=<value>, period=<value>.

Upstash-Label
string

Override the label for the remaining workflow steps.

Upstash-Failure-Callback
string

Override the failure callback URL for the remaining workflow steps.

Path Parameters

dlqId
string
required

The DLQ ID of the workflow run to resume.

Response

Workflow resumed successfully

workflowRunId
string

The ID of the resumed workflow run (a new ID is generated for the resumed run).

workflowCreatedAt
integer<int64>

The timestamp when the resumed workflow run was created (Unix timestamp in milliseconds).