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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Listar webhooks

> Lista os webhooks configurados em uma conta, com filtro opcional por estado

Lista os webhooks configurados em uma conta, com os segredos mascarados. Uma conta sem webhooks retorna um array vazio.

Informe `state=ACTIVE` ou `state=INACTIVE` para listar apenas os webhooks nesse estado, ou omita o parâmetro para listar todos.

Os mesmos webhooks aparecem na aba Developers do [Dashboard da Yuno](https://docs.y.uno/pt-br/docs/webhooks/configure-webhooks.md).


## OpenAPI

````yaml openapi/pt-br/webhooks/manage-webhooks.json GET /webhooks
openapi: 3.1.0
info:
  title: webhooks-manage-webhooks
  version: 1.0.0
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /webhooks:
    get:
      summary: Listar webhooks
      description: >-
        Retorna os webhooks configurados em uma conta, com os segredos
        mascarados. Filtre por `state` para listar apenas os ativos ou os
        inativos.
      operationId: list-webhooks
      parameters:
        - name: account_id
          in: query
          required: true
          description: O identificador único da conta à qual os webhooks pertencem.
          schema:
            type: string
            format: uuid
            example: 493e9374-510a-4201-9e09-de669d75f256
            x-default: 493e9374-510a-4201-9e09-de669d75f256
        - name: state
          in: query
          required: false
          description: >-
            Retorna apenas os webhooks neste estado. Omita-o para retornar
            todos.
          schema:
            type: string
            enum:
              - ACTIVE
              - INACTIVE
            example: ACTIVE
      responses:
        '200':
          description: >-
            Os webhooks configurados na conta, ou um array vazio se ela não
            tiver nenhum.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Webhook'
              example:
                - id: '12345'
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  name: Production payments listener
                  state: ACTIVE
                  url: https://api.acme.com/yuno/webhooks
                  api_key: '***'
                  secret: '***'
                  hmac_client_secret: '***'
                  oauth2_authentication_url: null
                  oauth2_client_secret: null
                  oauth2_client_id: null
                  oauth2_grant_type: null
                  oauth2_scope: null
                  oauth2_authorization_name: null
                  oauth2_include_client_id: false
                  enrollment_triggers: []
                  payment_triggers:
                    - AUTHORIZE
                    - CAPTURE
                    - REFUND
                  report_triggers: []
                  subscription_triggers: null
                  onboarding_triggers: null
                  renewal_days: null
                  created_at: '2026-07-09T13:05:36.482913Z'
                  updated_at: '2026-07-09T13:05:36.482913Z'
                - id: '12346'
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  name: Subscription renewals
                  state: INACTIVE
                  url: https://api.acme.com/yuno/subscriptions
                  api_key: '***'
                  secret: '***'
                  hmac_client_secret: null
                  oauth2_authentication_url: null
                  oauth2_client_secret: null
                  oauth2_client_id: null
                  oauth2_grant_type: null
                  oauth2_scope: null
                  oauth2_authorization_name: null
                  oauth2_include_client_id: false
                  enrollment_triggers: []
                  payment_triggers: []
                  report_triggers: []
                  subscription_triggers:
                    - CREATE
                    - CLOSE_TO_RENEWAL
                  onboarding_triggers: null
                  renewal_days: 5
                  created_at: '2026-07-10T09:41:12.204518Z'
                  updated_at: '2026-07-11T16:20:44.918330Z'
        '400':
          $ref: '#/components/responses/InvalidListRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '502':
          $ref: '#/components/responses/UpstreamError'
components:
  schemas:
    Webhook:
      type: object
      properties:
        id:
          type: string
          description: O identificador único do webhook.
          example: '12345'
        account_id:
          type: string
          format: uuid
          description: O identificador único da conta à qual o webhook pertence.
          example: 493e9374-510a-4201-9e09-de669d75f256
        name:
          type: string
          description: O nome que você dá ao webhook.
          example: Production payments listener
        state:
          type: string
          description: >-
            Webhooks `ACTIVE` recebem notificações; os `INACTIVE`, não. Um
            webhook começa como `ACTIVE`.
          enum:
            - ACTIVE
            - INACTIVE
          example: ACTIVE
        url:
          type: string
          description: O endpoint para o qual a Yuno envia as notificações.
          example: https://api.acme.com/yuno/webhooks
        api_key:
          type:
            - string
            - 'null'
          description: Mascarado como `***`, ou `null` quando você não o configurou.
          example: '***'
        secret:
          type:
            - string
            - 'null'
          description: Mascarado como `***`, ou `null` quando você não o configurou.
          example: '***'
        hmac_client_secret:
          type:
            - string
            - 'null'
          description: Mascarado como `***`, ou `null` quando você não o configurou.
          example: '***'
        oauth2_authentication_url:
          type:
            - string
            - 'null'
          description: Seu endpoint de token.
          example: https://api.acme.com/oauth/token
        oauth2_client_secret:
          type:
            - string
            - 'null'
          description: Mascarado como `***`, ou `null` quando você não o configurou.
          example: '***'
        oauth2_client_id:
          type:
            - string
            - 'null'
          description: O identificador de cliente com o qual a Yuno se autentica.
          example: acme_client_id
        oauth2_grant_type:
          type:
            - string
            - 'null'
          description: O grant type com o qual a Yuno solicita o token.
          example: client_credentials
        oauth2_scope:
          type:
            - string
            - 'null'
          description: O escopo com o qual a Yuno solicita o token.
          example: webhooks:write
        oauth2_authorization_name:
          type:
            - string
            - 'null'
          description: O cabeçalho em que a Yuno envia o token.
          example: Authorization
        oauth2_include_client_id:
          type: boolean
          description: >-
            Indica se a Yuno também envia o identificador de cliente como
            cabeçalho na requisição de token.
          example: true
        enrollment_triggers:
          type:
            - array
            - 'null'
          description: Os eventos de cadastro nos quais o webhook está inscrito.
          items:
            type: string
          example:
            - ENROLL
            - UNENROLL
        payment_triggers:
          type:
            - array
            - 'null'
          description: Os eventos de pagamento nos quais o webhook está inscrito.
          items:
            type: string
          example:
            - AUTHORIZE
            - CAPTURE
            - REFUND
        report_triggers:
          type:
            - array
            - 'null'
          description: Os eventos de relatório nos quais o webhook está inscrito.
          items:
            type: string
          example:
            - UPDATE
        subscription_triggers:
          type:
            - array
            - 'null'
          description: Os eventos de assinatura nos quais o webhook está inscrito.
          items:
            type: string
          example:
            - CREATE
            - CLOSE_TO_RENEWAL
        onboarding_triggers:
          type:
            - array
            - 'null'
          description: Os eventos de onboarding nos quais o webhook está inscrito.
          items:
            type: string
          example:
            - CREATED
            - SUCCEEDED
        renewal_days:
          type:
            - integer
            - 'null'
          description: >-
            Quantos dias antes de uma renovação a Yuno envia a notificação
            `CLOSE_TO_RENEWAL`.
          example: 5
        created_at:
          type: string
          description: A data e a hora em que o webhook foi criado, em ISO 8601.
          example: '2026-07-09T13:05:36.482913Z'
          format: date-time
        updated_at:
          type: string
          description: >-
            A data e a hora da última atualização do webhook, em ISO 8601.
            Corresponde a `created_at` até você atualizar o webhook pela
            primeira vez.
          example: '2026-07-11T16:20:44.918330Z'
          format: date-time
    WebhookRequestError:
      type: object
      properties:
        code:
          type: string
          description: Código de erro legível por máquina.
          enum:
            - WEBHOOK_INVALID_REQUEST
            - INVALID_ACCOUNT_ID
        messages:
          type: array
          description: Descrição do erro legível por pessoas.
          items:
            type: string
    WebhookAuthError:
      type: object
      properties:
        code:
          type: string
          description: Código de erro legível por máquina.
          enum:
            - NOT_AUTHENTICATED
            - INVALID_CREDENTIALS
        messages:
          type: array
          description: Descrição do erro legível por pessoas.
          items:
            type: string
    WebhookUpstreamError:
      type: object
      properties:
        code:
          type: string
          description: Código de erro legível por máquina.
          enum:
            - WEBHOOK_UPSTREAM_ERROR
        messages:
          type: array
          description: Descrição do erro legível por pessoas.
          items:
            type: string
  responses:
    InvalidListRequest:
      description: >-
        O `account_id` está ausente ou é inválido, ou `state` não é `ACTIVE` nem
        `INACTIVE`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WebhookRequestError'
          examples:
            Missing account_id:
              value:
                code: WEBHOOK_INVALID_REQUEST
                messages:
                  - account_id is required.
            Invalid state:
              value:
                code: WEBHOOK_INVALID_REQUEST
                messages:
                  - state must be ACTIVE or INACTIVE.
            Invalid account_id:
              value:
                code: INVALID_ACCOUNT_ID
                messages:
                  - Account id is invalid
    Unauthorized:
      description: Suas credenciais de API estão ausentes ou são inválidas.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WebhookAuthError'
          examples:
            Not authenticated:
              value:
                code: NOT_AUTHENTICATED
                messages:
                  - Not authenticated
            Invalid credentials:
              value:
                code: INVALID_CREDENTIALS
                messages:
                  - Invalid Credentials
    UpstreamError:
      description: O serviço de webhooks está temporariamente indisponível.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WebhookUpstreamError'
          examples:
            Service unavailable:
              value:
                code: WEBHOOK_UPSTREAM_ERROR
                messages:
                  - The webhook service is temporarily unavailable.
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: public-api-key
      x-default: <Your public-api-key>
    sec1:
      type: apiKey
      in: header
      name: private-secret-key
      x-default: <Your private-secret-key>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.