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

# Retrieve webhook logs

> Returns the paginated history of webhook delivery attempts.



## OpenAPI

````yaml /openapi-v2.en.yaml get /v2/webhooks/logs
openapi: 3.0.0
info:
  title: YP API Partner
  description: Integration documentation for YP API partners.
  version: v2
  contact: {}
servers:
  - url: https://sandbox-rampa.mesadepagos.com/api
    description: Sandbox
security: []
tags:
  - name: Auth
    description: ''
  - name: Quotes
    description: ''
  - name: Payin
    description: ''
  - name: Payout
    description: ''
  - name: Wallet
    description: ''
  - name: Queries
    description: ''
  - name: Webhooks
    description: ''
  - name: Fees
    description: ''
  - name: Clients
    description: ''
paths:
  /v2/webhooks/logs:
    get:
      tags:
        - Webhooks
      summary: Retrieve webhook logs
      description: Returns the paginated history of webhook delivery attempts.
      operationId: getWebhookLogs
      parameters:
        - name: page
          required: false
          in: query
          description: Requested page.
          schema:
            type: number
            example: 1
        - name: limit
          required: false
          in: query
          description: 'Number of records per page. Maximum: 100.'
          schema:
            type: number
            example: 10
        - name: status
          required: false
          in: query
          description: Filters by delivery result.
          schema:
            enum:
              - SUCCESS
              - ERROR
            type: string
        - name: webhookId
          required: false
          in: query
          description: Filters by webhook identifier.
          schema:
            example: 550e8400-e29b-41d4-a716-446655440000
            type: string
      responses:
        '200':
          description: Webhook logs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookLogsResponseDoc'
        '400':
          description: Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDoc'
        '401':
          description: Missing, invalid, or expired token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponseDoc'
      security:
        - bearer: []
components:
  schemas:
    WebhookLogsResponseDoc:
      type: object
      properties:
        logs:
          description: Webhook delivery logs.
          type: array
          items:
            $ref: '#/components/schemas/WebhookLogItemDoc'
        pagination:
          description: Pagination data.
          allOf:
            - $ref: '#/components/schemas/PaginationDoc'
      required:
        - logs
        - pagination
    ValidationErrorResponseDoc:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        message:
          type: string
          example: Validation failed
        error:
          type: string
          example: Bad Request
      required:
        - statusCode
        - message
        - error
    UnauthorizedResponseDoc:
      type: object
      properties:
        statusCode:
          type: number
          example: 401
        message:
          type: string
          example: Unauthorized
      required:
        - statusCode
        - message
    WebhookLogItemDoc:
      type: object
      properties:
        id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440010
          description: Log identifier.
        webhookId:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
          description: Webhook identifier.
        name:
          type: object
          example: Primary webhook
          nullable: true
          description: Name or description associated with the webhook.
        webhookUrl:
          type: object
          example: https://partner.example.com/webhooks/yp
          nullable: true
          description: URL called during delivery.
        status:
          type: string
          enum:
            - SUCCESS
            - ERROR
          example: SUCCESS
          description: Delivery result.
        payload:
          type: object
          additionalProperties: true
          description: Payload sent to the webhook.
        statusCode:
          type: object
          example: 200
          nullable: true
          description: HTTP status code received from the partner endpoint.
        duration:
          type: number
          example: 120
          description: Duration of the attempt in milliseconds.
        retries:
          type: number
          example: 0
          description: Number of retries performed.
        createdAt:
          type: string
          example: '2026-05-12T12:00:00.000Z'
          description: Creation date.
        updatedAt:
          type: string
          example: '2026-05-12T12:00:00.000Z'
          description: Last update date.
      required:
        - id
        - webhookId
        - status
        - payload
        - duration
        - retries
        - createdAt
        - updatedAt
    PaginationDoc:
      type: object
      properties:
        page:
          type: number
          example: 1
        limit:
          type: number
          example: 10
        total:
          type: number
          example: 25
        totalPages:
          type: number
          example: 3
      required:
        - page
        - limit
        - total
        - totalPages
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT obtained from /v2/auth/login

````