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

# Webhook delivery events

> Lists a webhook's recent delivery events (read-only). Each item carries event, status (SUCCESS|FAILED), statusCode, payload, response, durationMs and createdAt (UTC). Use limit (1–50) and event to filter. 404 if the webhook isn't visible to the calling key; honours the same number scope as GET /api/v1/webhooks.



## OpenAPI

````yaml openapi.json GET /v1/webhooks/{id}/logs
openapi: 3.1.0
info:
  title: Pilot Status API
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    Public REST API for Pilot Status. Authenticate with the `x-api-key: ps_...`
    header (or `x-api-key-id`). Base URL: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/webhooks/{id}/logs:
    get:
      tags:
        - Webhooks
      summary: Webhook delivery events
      description: >-
        Lists a webhook's recent delivery events (read-only). Each item carries
        event, status (SUCCESS|FAILED), statusCode, payload, response,
        durationMs and createdAt (UTC). Use limit (1–50) and event to filter.
        404 if the webhook isn't visible to the calling key; honours the same
        number scope as GET /api/v1/webhooks.
      operationId: get_webhooks_id_logs
      parameters:
        - name: id
          in: path
          required: true
          description: Webhook id.
          schema:
            type: string
          example: wh_01HZX...
        - name: limit
          in: query
          required: false
          description: Number of events to return (default 50).
          schema:
            type: string
            description: (integer (1–50))
          example: '20'
        - name: event
          in: query
          required: false
          description: Filter by event name (e.g. message.delivered).
          schema:
            type: string
          example: message.delivered
        - name: x-whatsapp-number-id
          in: header
          required: false
          description: Scopes to a single number (required for per-number OAuth grants).
          schema:
            type: string
          example: num_01HZX...
      responses:
        '200':
          description: Recent events
          content:
            application/json:
              example:
                webhookId: wh_01HZX...
                logs:
                  - id: whl_01HZX...
                    webhookId: wh_01HZX...
                    event: message.delivered
                    status: SUCCESS
                    statusCode: 200
                    payload: '{"event":"message.delivered","data":{}}'
                    response: ok
                    durationMs: 142
                    createdAt: '2026-06-28T09:59:00.000Z'
        '400':
          description: Invalid payload or parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Validation error
        '401':
          description: Missing or invalid `x-api-key` / `x-api-key-id` header
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Unauthorized
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Too many requests
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your ps_ API key
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: API key id (alternative to x-api-key)

````