> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shortext.ny-corp.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Redeliver an event

> Queues a new delivery of the same event (same event `id`).



## OpenAPI

````yaml /api-reference/v2.0/openapi.json post /webhooks/{id}/deliveries/{delivery}/retry
openapi: 3.1.0
info:
  title: Shortext API
  description: >-
    **Versioning**: every version is a frozen contract. A released version only
    receives additive changes

    (new endpoints, new optional fields, new response fields); anything breaking
    ships in a new version.

    Responses carry `X-Shortext-Api-Version`. When a version is scheduled for
    removal, responses also carry

    `Deprecation` and `Sunset` headers; after the sunset date the version
    answers HTTP 410.

    The list of versions and their status is available at `GET /api/versions`.


    **Responses**: always HTTP 200. Check `success` and `code` (`1000` =
    success), see `ApiEnvelope`.

    On failure, `trace_id` identifies the request for support.
  version: '2.0'
servers:
  - url: https://shortext.ny-corp.io/api/v2.0
security: []
tags:
  - name: Agents
    description: Agents
  - name: Channels
    description: Channels
  - name: Conversations
    description: Conversations
  - name: Account
    description: Account
  - name: Templates
    description: Templates
  - name: Hosted sessions
    description: Hosted sessions
  - name: Webhooks
    description: Webhooks
paths:
  /webhooks/{id}/deliveries/{delivery}/retry:
    post:
      tags:
        - Webhooks
      summary: Redeliver an event
      description: Queues a new delivery of the same event (same event `id`).
      operationId: retryWebhookDelivery
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: delivery
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The new WebhookDelivery
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiEnvelope'
                  - properties:
                      body:
                        $ref: '#/components/schemas/WebhookDelivery'
                    type: object
      security:
        - bearerAuth: []
components:
  schemas:
    ApiEnvelope:
      properties:
        success:
          type: boolean
          example: true
        code:
          type: integer
          example: 1000
        message:
          type: string
          example: Request success.
        body:
          description: Endpoint payload, null when there is none
        token:
          description: Present only on authentication routes
          type:
            - string
            - 'null'
        trace_id:
          description: Present only when success is false
          type:
            - string
            - 'null'
      type: object
    WebhookDelivery:
      properties:
        id:
          description: Sent in the Delivery header
          type: string
          format: uuid
        event_id:
          type: string
          example: evt_01JB...
        event_type:
          type: string
          example: message.received
        status:
          type: string
          enum:
            - pending
            - succeeded
            - failed
        attempts:
          type: integer
        response_status:
          type:
            - integer
            - 'null'
        response_body:
          description: First 2000 characters
          type:
            - string
            - 'null'
        duration_ms:
          type:
            - integer
            - 'null'
        error:
          type:
            - string
            - 'null'
        next_retry_at:
          type:
            - string
            - 'null'
          format: date-time
        delivered_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        payload:
          $ref: '#/components/schemas/WebhookEventPayload'
      type: object
    WebhookEventPayload:
      description: >-
        Body POSTed to your endpoint. Answer with a 2xx within 10 s and process
        asynchronously.

        Failed deliveries are retried after 10 s, 1 min, 5 min, 30 min, 2 h, 6 h
        and 12 h;

        an endpoint failing for 3 days is disabled.

        Delivery order is not guaranteed and an event may be delivered twice:
        dedupe on `id`.


        **Signature**: `X-…-Signature: sha256=hex(hmac_sha256(secret,
        "{X-…-Timestamp}.{raw body}"))`.

        Compare in constant time and reject timestamps older than 5 minutes.
      properties:
        id:
          description: Event id, identical on redeliveries
          type: string
          example: evt_01JB...
        type:
          type: string
          example: message.received
        api_version:
          type:
            - string
            - 'null'
          example: v2.0
        created_at:
          type: string
          format: date-time
        data:
          description: Depends on the event type
          type: object
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        Company API key, sent as `Authorization: Bearer <key>`. Create it in the
        dashboard (Developer > API Keys) with the permissions the integration
        needs.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.