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

# Retry failed webhook events

> Retry all failed webhook events within a specified date range.
- Retries up to 50 failed events per request
- Date range must not exceed 7 days
- Each event is retried individually




## OpenAPI

````yaml /api-reference/openapi.yaml POST /api/v2/orders/webhooks/{webhookId}/events/retry-failed
openapi: 3.0.0
info:
  title: BIZ MORI API
  version: 2.0.0
  description: |
    BIZ MORI API provides four core services for digital content protection:
    - **Anti-AI**: Protect images from AI training
    - **Watermark Embed**: Embed invisible digital watermarks into images
    - **Watermark Extract**: Extract and verify watermarks from images
    - **AI Detection**: Detect whether an image is AI-generated
  contact:
    name: BIZ MORI Support
    email: support@bizmori.com
servers:
  - url: https://api.bizmori.com
    description: Production
security: []
tags:
  - name: Anti-AI
    description: Anti-AI image protection orders
  - name: Watermark Embed
    description: Watermark embedding orders
  - name: Watermark Extract
    description: Watermark extraction orders
  - name: AI Detection
    description: AI-generated image detection orders
  - name: Orders
    description: Order query and management
  - name: Webhooks
    description: Webhook configuration and events
paths:
  /api/v2/orders/webhooks/{webhookId}/events/retry-failed:
    post:
      tags:
        - Webhooks
      summary: Retry failed webhook events
      description: |
        Retry all failed webhook events within a specified date range.
        - Retries up to 50 failed events per request
        - Date range must not exceed 7 days
        - Each event is retried individually
      parameters:
        - in: path
          name: webhookId
          required: true
          schema:
            type: integer
          description: Webhook ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - fromDate
                - toDate
              properties:
                fromDate:
                  type: string
                  format: date
                  description: Start date (ISO 8601 format, e.g. 2026-01-01)
                  example: '2026-01-01'
                toDate:
                  type: string
                  format: date
                  description: >-
                    End date (ISO 8601 format, e.g. 2026-01-07). Must be within
                    7 days of fromDate.
                  example: '2026-01-07'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      total:
                        type: integer
                        description: Total number of failed events found in the date range
                      succeeded:
                        type: integer
                        description: Number of events successfully resent
                      failed:
                        type: integer
                        description: Number of events that failed to resend
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          description: Invalid date range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >-
            curl -X POST
            https://api.bizmori.com/api/v2/orders/webhooks/WEBHOOK_ID/events/retry-failed
            \
              -H "Authorization: Bearer YOUR_API_TOKEN" \
              -H "Content-Type: application/json" \
              -d '{
                "fromDate": "2026-01-01",
                "toDate": "2026-01-07"
              }'
        - lang: javascript
          label: JavaScript
          source: |-
            const response = await fetch(
              `https://api.bizmori.com/api/v2/orders/webhooks/${webhookId}/events/retry-failed`,
              {
                method: 'POST',
                headers: {
                  'Authorization': 'Bearer YOUR_API_TOKEN',
                  'Content-Type': 'application/json'
                },
                body: JSON.stringify({
                  fromDate: '2026-01-01',
                  toDate: '2026-01-07'
                })
              }
            );
            const data = await response.json();
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.post(
                f'https://api.bizmori.com/api/v2/orders/webhooks/{webhook_id}/events/retry-failed',
                headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
                json={
                    'fromDate': '2026-01-01',
                    'toDate': '2026-01-07'
                }
            )
            data = response.json()
components:
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: AUTH_NOT_AUTHENTICATED
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: RESOURCE_NOT_FOUND
  schemas:
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API Key for external client access

````