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

# Get webhook delivery logs

> Returns delivery logs for a webhook (newest first), including the send time and the payload we delivered (large payloads and error messages may be truncated). Retained for 7 days. Keyset-paginated via `pagination_key`.



## OpenAPI

````yaml https://api.struct.to/webhookopenapi.json get /webhooks/{webhook_id}/logs
openapi: 3.1.0
info:
  title: Polymarket Webhook API
  description: ''
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.struct.to/v1
security: []
tags:
  - name: Webhooks
    description: Webhook subscription management (CRUD operations)
  - name: Webhook Callbacks
    description: Outgoing HTTP calls to your endpoints when subscribed events occur
paths:
  /webhooks/{webhook_id}/logs:
    get:
      tags:
        - Webhooks
      summary: Get webhook delivery logs
      description: >-
        Returns delivery logs for a webhook (newest first), including the send
        time and the payload we delivered (large payloads and error messages may
        be truncated). Retained for 7 days. Keyset-paginated via
        `pagination_key`.
      operationId: get_webhook_logs
      parameters:
        - name: webhook_id
          in: path
          description: Webhook UUID
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Results per page (default 10, max 250)
          required: false
          schema:
            type: integer
            format: int32
        - name: from
          in: query
          description: Start time, Unix milliseconds (inclusive)
          required: false
          schema:
            type: integer
            format: int64
        - name: to
          in: query
          description: End time, Unix milliseconds (inclusive)
          required: false
          schema:
            type: integer
            format: int64
        - name: pagination_key
          in: query
          description: Cursor from a previous response
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Delivery logs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookLogsResponseBody'
        '401':
          description: Missing or invalid API key
        '404':
          description: Webhook not found or not owned by user
      security:
        - api_key: []
components:
  schemas:
    WebhookLogsResponseBody:
      type: object
      description: Response for GET /v1/webhooks/{id}/logs
      required:
        - webhook_id
        - total
        - logs
        - pagination
      properties:
        webhook_id:
          type: string
          description: The webhook these logs belong to
        total:
          type: integer
          description: Number of log entries returned
          minimum: 0
        logs:
          type: array
          items:
            $ref: '#/components/schemas/WebhookLogEntry'
          description: Delivery log entries, newest first
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
          description: Cursor pagination metadata
    WebhookLogEntry:
      type: object
      description: A single webhook delivery log entry (GET /v1/webhooks/{id}/logs)
      required:
        - sent_at
        - payload
        - event
        - delivery_id
        - attempt
        - success
        - status_code
        - latency_ms
        - url
      properties:
        sent_at:
          type: string
          description: When the payload was sent (RFC3339, millisecond precision)
        payload:
          description: The full payload we delivered, parsed back to JSON
        event:
          type: string
          description: Event type (e.g. "trader_first_trade")
        delivery_id:
          type: string
          description: Unique delivery id
        attempt:
          type: integer
          format: int32
          description: Final attempt number for this dispatch
          minimum: 0
        success:
          type: boolean
          description: Whether delivery ultimately succeeded
        status_code:
          type: integer
          format: int32
          description: >-
            HTTP status code from the endpoint (0 = no response / transport
            error)
          minimum: 0
        latency_ms:
          type: integer
          format: int32
          description: Total dispatch time in milliseconds (including retries)
          minimum: 0
        url:
          type: string
          description: Destination URL the payload was POSTed to
        error:
          type: string
          description: Error message when delivery failed (omitted when empty)
    PaginationMeta:
      type: object
      description: Pagination metadata to include in API responses
      required:
        - has_more
      properties:
        has_more:
          type: boolean
          description: Whether there are more results available
        pagination_key:
          type:
            - string
            - 'null'
          description: Pagination key for the next page (if has_more is true)

````