> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Ask it with GET https://upstash.com/docs/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Page rating: `GET https://upstash.com/docs/feedback?path=/docs/qstash/api-reference/dlq/retry/retry-bulk-action&helpful=true` (or `false`) records whether this page helped. An optional `comment` (URL-encoded, at most 500 characters) says what was missing or wrong. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Async Bulk

> Retry all matching QStash DLQ messages in a bulk action.

`POST /v2/dlq/bulkRetry`

Each retry creates a new message with the original body and headers, then removes the original DLQ entry.

The request returns after creating the action. Use its `actionId` with [Get a Bulk Action](/qstash/api-reference/bulk-actions/get-a-bulk-action) to check progress.

Identical filters submitted while an action is already in-progress return the existing action.

## OpenAPI

````yaml qstash/openapi.yaml post /v2/dlq/bulkRetry
openapi: 3.1.0
info:
  title: QStash REST API
  description: |
    QStash is a message queue and scheduler built on top of Upstash Redis.
  version: 2.0.0
  contact:
    name: Upstash
    url: https://upstash.com
servers:
  - url: https://qstash-{region}.upstash.io
    description: Regional
    variables:
      region:
        default: eu-central-1
        enum:
          - us-east-1
          - eu-central-1
security:
  - bearerAuth: []
  - bearerAuthQuery: []
tags:
  - name: Messages
    description: Publish and manage messages
  - name: Queues
    description: Manage message queues
  - name: Schedules
    description: Create and manage scheduled messages
  - name: URL Groups
    description: Manage URL groups and endpoints
  - name: DLQ
    description: Dead Letter Queue operations
  - name: Logs
    description: Log operations
  - name: Signing Keys
    description: Manage signing keys
  - name: Flow Control
    description: Monitor flow control keys
  - name: Bulk Actions
    description: Track filter-based bulk operations
paths:
  /v2/dlq/bulkRetry:
    post:
      summary: Retry Async Bulk
      description: Create a bulk action that retries every QStash DLQ message matching
        the query filters. Omit all filters to retry the entire DLQ.
      tags:
        - DLQ
      x-mint:
        href: /qstash/api-reference/dlq/retry/retry-bulk-action
        metadata:
          title: Async Bulk
          sidebarTitle: Async Bulk
          description: Retry all matching QStash DLQ messages in a bulk action.
        content: >
          Each retry creates a new message with the original body and headers,
          then removes the original DLQ entry.


          The request returns after creating the action. Use its `actionId` with
          [Get a Bulk
          Action](/qstash/api-reference/bulk-actions/get-a-bulk-action) to check
          progress.


          Identical filters submitted while an action is already in-progress
          return the existing action.
      parameters:
        - $ref: "#/components/parameters/DLQMessageIdFilter"
        - $ref: "#/components/parameters/DLQUrlFilter"
        - $ref: "#/components/parameters/DLQTopicNameFilter"
        - $ref: "#/components/parameters/DLQScheduleIdFilter"
        - $ref: "#/components/parameters/DLQQueueNameFilter"
        - $ref: "#/components/parameters/DLQResponseStatusFilter"
        - $ref: "#/components/parameters/DLQFromDateFilter"
        - $ref: "#/components/parameters/DLQToDateFilter"
        - $ref: "#/components/parameters/DLQCallerIpFilter"
        - $ref: "#/components/parameters/DLQLabelFilter"
        - $ref: "#/components/parameters/DLQFlowControlKeyFilter"
        - $ref: "#/components/parameters/DLQOverrideMethod"
        - $ref: "#/components/parameters/DLQOverrideTimeout"
        - $ref: "#/components/parameters/DLQOverrideRetries"
        - $ref: "#/components/parameters/DLQOverrideRetryDelay"
        - $ref: "#/components/parameters/DLQOverrideDelay"
        - $ref: "#/components/parameters/DLQOverrideNotBefore"
        - $ref: "#/components/parameters/DLQOverrideLabel"
        - $ref: "#/components/parameters/DLQOverrideFlowControlKey"
        - $ref: "#/components/parameters/DLQOverrideFlowControlValue"
        - $ref: "#/components/parameters/DLQOverrideCallback"
        - $ref: "#/components/parameters/DLQOverrideFailureCallback"
      responses:
        "200":
          description: The background action was created or an identical in-progress
            action was returned.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DLQBulkActionCreated"
        "412":
          description: Too many bulk actions are already in progress.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: QStash authentication token
    bearerAuthQuery:
      type: apiKey
      in: query
      name: qstash_token
      description: QStash authentication token passed as a query parameter
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message
    DLQBulkActionCreated:
      type: object
      required:
        - actionId
        - total
      example:
        actionId: action_...
        total: 42
      properties:
        actionId:
          type: string
          description: ID used to check the background action's progress.
        total:
          type: integer
          format: int64
          description: Number of DLQ messages matching the filters when the action was
            created.
  parameters:
    DLQOverrideMethod:
      name: Upstash-Method
      in: header
      schema:
        type: string
        enum:
          - GET
          - POST
          - PUT
          - PATCH
          - DELETE
      description: Override the HTTP method used to deliver each retried message.
    DLQOverrideTimeout:
      name: Upstash-Timeout
      in: header
      schema:
        type: string
      description: Override the delivery timeout for each retried message, such as
        `30s` or `2m`.
    DLQOverrideRetries:
      name: Upstash-Retries
      in: header
      schema:
        type: integer
      description: Override the number of delivery retries for each retried message.
        Use `0` to disable retries.
    DLQOverrideRetryDelay:
      name: Upstash-Retry-Delay
      in: header
      schema:
        type: string
      description: Override the retry delay expression for each retried message.
    DLQOverrideDelay:
      name: Upstash-Delay
      in: header
      schema:
        type: string
      description: Delay each retried message's delivery. Format is `<value><unit>`,
        such as `10s` or `5m`.
    DLQOverrideNotBefore:
      name: Upstash-Not-Before
      in: header
      schema:
        type: integer
      description: Delay delivery until this Unix timestamp in seconds. Takes
        precedence over `Upstash-Delay`.
    DLQOverrideLabel:
      name: Upstash-Label
      in: header
      schema:
        type: string
      description: Override the labels on each retried message. Use a comma-separated
        list for multiple labels.
    DLQOverrideFlowControlKey:
      name: Upstash-Flow-Control-Key
      in: header
      schema:
        type: string
      description: Override the flow control key for each retried message. Set
        `Upstash-Flow-Control-Value` to define its limits.
    DLQOverrideFlowControlValue:
      name: Upstash-Flow-Control-Value
      in: header
      schema:
        type: string
      description: Override the flow control limits in the format
        `parallelism=<value>, rate=<value>, period=<value>`.
    DLQOverrideCallback:
      name: Upstash-Callback
      in: header
      schema:
        type: string
      description: Override the success or failure callback URL for each retried message.
    DLQOverrideFailureCallback:
      name: Upstash-Failure-Callback
      in: header
      schema:
        type: string
      description: Override the failure callback URL for each retried message.
    DLQMessageIdFilter:
      name: messageId
      in: query
      schema:
        type: string
      description: Filter by message ID.
    DLQUrlFilter:
      name: url
      in: query
      schema:
        type: array
        items:
          type: string
      description: Filter by destination URL. Supports multiple values.
    DLQTopicNameFilter:
      name: topicName
      in: query
      schema:
        type: array
        items:
          type: string
      description: Filter by URL Group name. Supports multiple values.
    DLQScheduleIdFilter:
      name: scheduleId
      in: query
      schema:
        type: array
        items:
          type: string
      description: Filter by schedule ID. Supports multiple values.
    DLQQueueNameFilter:
      name: queueName
      in: query
      schema:
        type: array
        items:
          type: string
      description: Filter by queue name. Supports multiple values.
    DLQResponseStatusFilter:
      name: responseStatus
      in: query
      schema:
        type: array
        items:
          type: integer
      description: Filter by the last delivery attempt's HTTP response status.
        Supports multiple values.
    DLQFromDateFilter:
      name: fromDate
      in: query
      schema:
        type: integer
        format: int64
      description: Inclusive start of the DLQ date range, in Unix milliseconds.
    DLQToDateFilter:
      name: toDate
      in: query
      schema:
        type: integer
        format: int64
      description: Inclusive end of the DLQ date range, in Unix milliseconds.
    DLQCallerIpFilter:
      name: callerIp
      in: query
      schema:
        type: array
        items:
          type: string
      description: Filter by publisher IP address. Supports multiple values.
    DLQLabelFilter:
      name: label
      in: query
      schema:
        type: array
        items:
          type: string
      description: Filter by message label. Supports multiple values.
    DLQFlowControlKeyFilter:
      name: flowControlKey
      in: query
      schema:
        type: array
        items:
          type: string
      description: Filter by flow control key. Supports multiple values.
````
