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

# Listar Webhooks



## OpenAPI

````yaml GET /webhook
openapi: 3.0.0
info:
  title: payera-api
  description: Documentação de endpoints e entidades da payera
  version: '1.0'
  contact: {}
servers:
  - url: https://api.rivoopay.com
security:
  - ApiKeyAuth: []
paths:
  /webhook:
    get:
      tags:
        - Webhook
      summary: Get all webhooks of a company
      operationId: WebhookController_getAllByCompany
      responses:
        '200':
          description: All webhooks of a company
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WebhookDTO'
components:
  schemas:
    WebhookDTO:
      type: object
      properties:
        id:
          type: string
          description: Webhook id
          example: 67b14aa9-daac-800e-83bf-f1b44468d1d9
        url:
          type: string
          description: Webhook URL
          example: https://example.com/webhook
        name:
          type: string
          description: Webhook name
          example: Payment Webhook
        companyId:
          type: string
          description: Company id
          example: 67b14aa9-daac-800e-83bf-f1b44468d1d9
        status:
          type: string
          description: Webhook status
          enum:
            - ACTIVE
            - INACTIVE
          example: ACTIVE
        events:
          type: array
          description: List of subscribed events
          example:
            - order_created
            - order_paid
          items:
            type: string
            enum:
              - charge.pending
              - charge.processing
              - charge.paid
              - charge.received
              - charge.expired
              - subscription.authorized
              - subscription.rejected
              - subscription.charge.paid
              - subscription.charge.failed
        createdAt:
          format: date-time
          type: string
          description: Creation date
          example: '2024-02-15T12:34:56Z'
        updatedAt:
          format: date-time
          type: string
          description: Update date
          example: '2024-02-16T12:34:56Z'
      required:
        - id
        - url
        - name
        - companyId
        - status
        - events
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````