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

# Retry A Delivery

> Schedule a previously failed delivery for another attempt. Only deliveries with status `failed` or `exhausted` can be retried. Returns the updated delivery (typically `status: pending` with `next_attempt_at` set).

**Authentication**: X-API-Key header required



## OpenAPI

````yaml /openapi.json post /v1/webhooks/deliveries/{delivery_id}/retry
openapi: 3.1.0
info:
  title: Briq API
  description: Karibu Briq API Documentation
  version: '0.8'
servers:
  - url: https://karibu.briq.tz
    description: Production
  - url: https://pre-release.karibu.briq.tz
    description: Pre-release
  - url: http://karibu.briq.tz
    description: LocalPass
security: []
paths:
  /v1/webhooks/deliveries/{delivery_id}/retry:
    post:
      tags:
        - Karibu-Webhooks
      summary: Retry A Delivery
      description: >-
        Schedule a previously failed delivery for another attempt. Only
        deliveries with status `failed` or `exhausted` can be retried. Returns
        the updated delivery (typically `status: pending` with `next_attempt_at`
        set).


        **Authentication**: X-API-Key header required
      operationId: retry_webhook_delivery_v1_webhooks_deliveries__delivery_id__retry_post
      parameters:
        - name: delivery_id
          in: path
          required: true
          schema:
            type: string
            title: Delivery Id
        - name: X-API-Key
          in: header
          required: true
          schema:
            type: string
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDeliveryDetailOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WebhookDeliveryDetailOut:
      properties:
        id:
          type: string
          title: Id
        event_id:
          type: string
          title: Event Id
        webhook_id:
          type: string
          title: Webhook Id
        app_id:
          anyOf:
            - type: string
            - type: 'null'
          title: App Id
        service_type:
          type: string
          title: Service Type
        event_name:
          type: string
          title: Event Name
        status:
          type: string
          enum:
            - pending
            - delivered
            - failed
            - exhausted
          title: Status
        attempt_count:
          type: integer
          title: Attempt Count
        max_attempts:
          type: integer
          title: Max Attempts
        last_status_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Last Status Code
        last_error:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Error
        next_attempt_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Next Attempt At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        url:
          type: string
          title: Url
          description: Callback URL this delivery targets.
        payload:
          anyOf:
            - type: object
              additionalProperties: true
            - type: 'null'
          title: Payload
          description: Snapshot of the JSON body sent or to be sent.
      type: object
      required:
        - id
        - event_id
        - webhook_id
        - service_type
        - event_name
        - status
        - attempt_count
        - max_attempts
        - created_at
        - updated_at
        - url
      title: WebhookDeliveryDetailOut
      description: Full detail for a single webhook delivery, including url and payload.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````