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

# List Webhook Endpoints

> List webhook endpoints accessible to the authenticated entity



## OpenAPI

````yaml api-reference/payment-webhooks/openapi.json GET /v1/webhook_endpoints
openapi: 3.1.0
info:
  title: Modulus Payment Webhooks API
  version: 1.0.0
  description: Manage Payment Webhook endpoints, signing secrets, and persisted events.
servers:
  - url: https://api.sbx.moduluslabs.io
    description: >-
      Sandbox. Use the base URL supplied with your production credentials when
      going live.
security:
  - ApiKey: []
tags:
  - name: Webhook endpoints
  - name: Signing secrets
  - name: Webhook events
paths:
  /v1/webhook_endpoints:
    get:
      tags:
        - Webhook endpoints
      summary: List webhook endpoints
      description: >-
        Requires `webhooks.read`. Results are scoped to the authenticated
        entity.
      operationId: listWebhookEndpoints
      parameters:
        - $ref: '#/components/parameters/PageSize'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: Endpoint page.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    PageSize:
      name: page_size
      in: query
      description: Maximum resources to return. Defaults to 20; allowed range is 1 to 100.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    Cursor:
      name: cursor
      in: query
      description: Opaque `next_cursor` value returned by the previous page.
      schema:
        type: string
        format: uuid
  schemas:
    EndpointList:
      type: object
      required:
        - data
        - pagination
      properties:
        data:
          type: array
          description: Webhook endpoints in the current page.
          items:
            $ref: '#/components/schemas/WebhookEndpoint'
        pagination:
          allOf:
            - $ref: '#/components/schemas/Pagination'
          description: Cursor-pagination state for this result page.
    WebhookEndpoint:
      type: object
      required:
        - id
        - url
        - enabled_events
        - status
        - metadata
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
          description: Unique webhook endpoint identifier.
        url:
          type: string
          format: uri
          description: Public HTTPS callback URL that receives subscribed events.
        description:
          type:
            - string
            - 'null'
          description: Merchant-defined endpoint label, or `null` when none was supplied.
        enabled_events:
          type: array
          description: Payment event types currently delivered to this endpoint.
          items:
            $ref: '#/components/schemas/EventType'
        status:
          type: string
          enum:
            - ENABLED
            - DISABLED
          description: Delivery state of the endpoint.
        metadata:
          type: object
          additionalProperties: true
          description: >-
            Merchant-owned endpoint metadata. This is endpoint configuration and
            is not payment-event metadata.
        created_at:
          type: string
          format: date-time
          description: UTC RFC 3339 timestamp when the endpoint was created.
        updated_at:
          type: string
          format: date-time
          description: UTC RFC 3339 timestamp when the endpoint was last updated.
    Pagination:
      type: object
      required:
        - page_size
        - has_more
        - next_cursor
      properties:
        page_size:
          type: integer
          description: Number of resources returned in this page.
        has_more:
          type: boolean
          description: Whether another page is available.
        next_cursor:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            Opaque cursor for the next page, or `null` when this is the last
            page.
    ErrorEnvelope:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          description: Error returned for an unsuccessful Payment Webhooks API request.
          required:
            - code
            - message
            - correlation_id
          properties:
            code:
              type: string
              description: Machine-readable error code.
              example: INVALID_DESCRIPTION
            message:
              type: string
              description: >-
                Human-readable validation message. Public field tokens retain
                their API spelling; do not branch on its wording.
              example: description must be 255 characters or fewer.
            correlation_id:
              type: string
              format: uuid
              description: Unique request identifier. Include it when contacting support.
    EventType:
      type: string
      description: Payment event type delivered to a subscribed endpoint.
      enum:
        - payment.succeeded
        - payment.declined
        - payment.failed
        - payment.expired
  responses:
    BadRequest:
      description: The request failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: The API key is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: The key lacks the required scope or resource ownership.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InternalError:
      description: An internal error occurred.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: A Modulus API key with the required webhook scope.

````