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

# Get webhook delivery history

> Returns the delivery history for a webhook subscription, including status and response information.



## OpenAPI

````yaml /openapi.json get /api/webhookSubscriptions.deliveries
openapi: 3.0.3
info:
  title: Notifuse API
  description: API for Notifuse - a transactional email and newsletter management platform
  version: 1.0.0
  contact:
    name: Notifuse Support
    url: https://www.notifuse.com/support
    email: hello@notifuse.com
servers:
  - url: https://{notifuseDomain}
    description: Customer-specific Notifuse API server
    variables:
      notifuseDomain:
        description: Your unique Notifuse domain
        default: demo.notifuse.com
security: []
paths:
  /api/webhookSubscriptions.deliveries:
    get:
      summary: Get webhook delivery history
      description: >-
        Returns the delivery history for a webhook subscription, including
        status and response information.
      operationId: getWebhookDeliveries
      parameters:
        - name: workspace_id
          in: query
          required: true
          schema:
            type: string
          description: The ID of the workspace
          example: ws_1234567890
        - name: subscription_id
          in: query
          required: false
          schema:
            type: string
          description: >-
            The ID of the webhook subscription (optional - if not provided,
            returns all deliveries for the workspace)
          example: whsub_a1b2c3d4e5f6
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          description: Number of deliveries to return (1-100)
          example: 20
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
          description: Offset for pagination
          example: 0
      responses:
        '200':
          description: List of webhook deliveries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWebhookDeliveriesResponse'
        '400':
          description: Bad request - missing parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: workspace_id is required
        '401':
          description: Unauthorized - invalid or missing authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ListWebhookDeliveriesResponse:
      type: object
      properties:
        deliveries:
          type: array
          items:
            $ref: '#/components/schemas/WebhookDelivery'
        total:
          type: integer
          description: Total number of deliveries
          example: 150
        limit:
          type: integer
          description: Number of deliveries per page
          example: 20
        offset:
          type: integer
          description: Offset for pagination
          example: 0
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
      required:
        - error
    WebhookDelivery:
      type: object
      description: A record of a webhook delivery attempt
      properties:
        id:
          type: string
          description: Unique identifier for the delivery
          example: whdel_x1y2z3
        subscription_id:
          type: string
          description: ID of the subscription this delivery belongs to
          example: whsub_a1b2c3d4e5f6
        event_type:
          type: string
          description: Type of event that triggered the delivery
          example: contact.created
        payload:
          type: object
          description: The JSON payload sent in the webhook
          additionalProperties: true
        status:
          type: string
          enum:
            - pending
            - delivering
            - delivered
            - failed
          description: Current status of the delivery
          example: delivered
        attempts:
          type: integer
          description: Number of delivery attempts made
          example: 1
        max_attempts:
          type: integer
          description: Maximum number of retry attempts
          example: 10
        next_attempt_at:
          type: string
          format: date-time
          nullable: true
          description: When the next retry will be attempted
          example: '2024-01-15T10:35:00Z'
        last_attempt_at:
          type: string
          format: date-time
          nullable: true
          description: When the last attempt was made
          example: '2024-01-15T10:30:00Z'
        delivered_at:
          type: string
          format: date-time
          nullable: true
          description: When the delivery was successfully completed
          example: '2024-01-15T10:30:00Z'
        last_response_status:
          type: integer
          nullable: true
          description: HTTP status code from the last attempt
          example: 200
        last_response_body:
          type: string
          nullable: true
          description: Response body from the last attempt (truncated)
          example: '{"received": true}'
        last_error:
          type: string
          nullable: true
          description: Error message from the last failed attempt
          example: null
        created_at:
          type: string
          format: date-time
          description: When the delivery was created
          example: '2024-01-15T10:30:00Z'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API token for authentication

````