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

# Listar webhooks

> Lista os webhooks cadastrados pela empresa, com paginação.

Lista os webhooks cadastrados pela sua empresa, com paginação.


## OpenAPI

````yaml GET /v1/webhook
openapi: 3.0.3
info:
  title: API Ephra
  description: >-
    API REST para gerar cobranças (PIX, cartão e boleto), consultar transações e
    gerenciar webhooks.
  version: 1.0.0
servers:
  - url: https://api.ephra.io
    description: Servidor de produção
security:
  - bearerAuth: []
tags:
  - name: Autenticação
    description: Login e obtenção do token de acesso
  - name: Pagamentos
    description: Criação de cobranças PIX, cartão e boleto
  - name: Assinaturas
    description: Cobrança recorrente — iniciar, listar, consultar e cancelar assinaturas
  - name: Transações
    description: Consulta de transações
  - name: Webhooks
    description: Cadastro e gerenciamento de webhooks
paths:
  /v1/webhook:
    get:
      tags:
        - Webhooks
      summary: Listar webhooks
      description: Lista os webhooks cadastrados pela empresa, com paginação.
      operationId: listWebhooks
      responses:
        '200':
          description: Lista de webhooks
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      webhooks:
                        type: array
                        items:
                          $ref: '#/components/schemas/Webhook'
                      pagination:
                        type: object
                        properties:
                          offset:
                            type: integer
                            example: 0
                          pageSize:
                            type: integer
                            example: 20
                          totalCount:
                            type: integer
                            example: 3
                          currentPage:
                            type: integer
                            example: 1
                          totalPages:
                            type: integer
                            example: 1
                          hasNext:
                            type: boolean
                            example: false
                          hasPrevious:
                            type: boolean
                            example: false
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Webhook:
      type: object
      properties:
        id:
          type: integer
          example: 42
        name:
          type: string
          nullable: true
          example: Produção
        isActive:
          type: boolean
          example: true
        signatureSecret:
          type: string
          example: a1b2c3...
        url:
          type: string
          example: https://seusite.com/webhooks/ephra
        events:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEvent'
        productIds:
          type: array
          items:
            type: string
        createdAt:
          type: string
          example: '2026-06-03T12:00:00.000Z'
    WebhookEvent:
      type: string
      enum:
        - transaction_created
        - transaction_paid
        - transaction_refunded
        - transaction_updated
        - transfer_created
        - transfer_completed
        - transfer_canceled
        - transfer_updated
        - infraction
        - card_declined
        - sale_lost
        - cart_abandoned
        - product_canceled
    Error:
      type: object
      properties:
        statusCode:
          type: integer
          example: 400
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: Mensagem descritiva do erro
  responses:
    Unauthorized:
      description: Token ausente, inválido ou expirado
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            error: Unauthorized
            message: Token inválido ou expirado
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````