> ## 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.
> Feature requests: https://upstash.com/docs/common/help/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash.com/docs/feedback?path=/docs/qstash/api-reference/dlq/retry/retry-list-of-ids&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Multiple IDs

> Retry specific QStash DLQ messages by their DLQ IDs.

`POST /v2/dlq/retry/multi`

## OpenAPI

````yaml qstash/openapi.yaml post /v2/dlq/retry/multi
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/retry/multi:
    post:
      summary: Retry Multiple IDs
      description: Retry only the supplied DLQ entries. Provide at least one `dlqId`
        in the JSON body or, if the body is empty, in the query string. A JSON
        body takes precedence over query parameters. Each retry creates a new
        message with the original body and headers, then removes the DLQ entry.
      tags:
        - DLQ
      x-mint:
        href: /qstash/api-reference/dlq/retry/retry-list-of-ids
        metadata:
          title: Multiple IDs
          sidebarTitle: Multiple IDs
          description: Retry specific QStash DLQ messages by their DLQ IDs.
      parameters:
        - $ref: "#/components/parameters/DLQMultipleIdsQuery"
        - $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"
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DLQMultipleIdsRequest"
      responses:
        "200":
          description: The specified DLQ entries were retried.
          content:
            application/json:
              schema:
                type: object
                required:
                  - responses
                properties:
                  responses:
                    type: array
                    description: Publish responses in the same order as the supplied IDs.
                    items:
                      $ref: "#/components/schemas/PublishResponse"
        "400":
          description: The ID list is empty or contains an invalid DLQ ID.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: A DLQ entry was not found.
          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
    DLQMultipleIdsRequest:
      type: object
      required:
        - dlqIds
      properties:
        dlqIds:
          type: array
          minItems: 1
          items:
            type: string
          description: DLQ IDs to process.
      example:
        dlqIds:
          - dlq_id_1
          - dlq_id_2
    PublishResponse:
      type: object
      properties:
        messageId:
          type: string
          description: Unique identifier for the published message or the old message ID
            if deduplicated
        deduplicated:
          type: boolean
          description: Whether this message is a duplicate and was not sent to the
            destination.
  parameters:
    DLQMultipleIdsQuery:
      name: dlqIds
      in: query
      schema:
        type: array
        minItems: 1
        items:
          type: string
      style: form
      explode: true
      description: DLQ IDs to process when no JSON body is sent. Repeat this parameter
        or separate IDs with commas.
    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.
````
