> ## 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.

# Eventos de entrega do webhook

> Lista os eventos de entrega recentes de um webhook (somente leitura). Cada item traz event, status (SUCCESS|FAILED), statusCode, payload, response, durationMs e createdAt (UTC). Use limit (1–50) e event para filtrar. 404 se o webhook não for visível para a key chamadora; respeita o mesmo escopo de número de GET /api/v1/webhooks.



## OpenAPI

````yaml openapi.pt.json GET /v1/webhooks/{id}/logs
openapi: 3.1.0
info:
  title: API Pilot Status
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    API REST pública do Pilot Status. Autentique com o header `x-api-key:
    ps_...` (ou `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: Eventos de entrega do webhook
      description: >-
        Lista os eventos de entrega recentes de um webhook (somente leitura).
        Cada item traz event, status (SUCCESS|FAILED), statusCode, payload,
        response, durationMs e createdAt (UTC). Use limit (1–50) e event para
        filtrar. 404 se o webhook não for visível para a key chamadora; respeita
        o mesmo escopo de número de GET /api/v1/webhooks.
      operationId: get_webhooks_id_logs
      parameters:
        - name: id
          in: path
          required: true
          description: Id do webhook.
          schema:
            type: string
          example: wh_01HZX...
        - name: limit
          in: query
          required: false
          description: Número de eventos a retornar (padrão 50).
          schema:
            type: string
            description: (integer (1–50))
          example: '20'
        - name: event
          in: query
          required: false
          description: 'Filtra por nome do evento (ex.: message.delivered).'
          schema:
            type: string
          example: message.delivered
        - name: x-whatsapp-number-id
          in: header
          required: false
          description: >-
            Restringe ao contexto de um número (obrigatório em concessões OAuth
            por número).
          schema:
            type: string
          example: num_01HZX...
      responses:
        '200':
          description: Eventos recentes
          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: Payload ou parâmetros inválidos
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Validation error
        '401':
          description: Header `x-api-key` / `x-api-key-id` ausente ou inválido
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Unauthorized
        '429':
          description: Limite de taxa excedido
          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: Sua chave de API ps_
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: Id da chave de API (alternativa ao x-api-key)

````