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

# List webhook subscriptions

> Lists your webhook subscriptions. Supports cursor pagination and filtering by event type. Secrets and custom-header values are never returned.



## OpenAPI

````yaml /openapi/emsp-webhook/openapi.yaml get /emsp/v1/webhooks
openapi: 3.0.0
info:
  title: Spirii EMSP - Webhook Management API
  description: Self-service registration and delivery of Spirii EMSP domain-event webhooks.
  version: v1
  contact: {}
servers:
  - url: https://api.spirii.com
    description: Production
security: []
tags:
  - name: Webhooks
    description: Webhook event management
paths:
  /emsp/v1/webhooks:
    get:
      tags:
        - Webhooks
      summary: List webhook subscriptions
      description: >-
        Lists your webhook subscriptions. Supports cursor pagination and
        filtering by event type. Secrets and custom-header values are never
        returned.
      operationId: webhooks_list
      parameters:
        - name: after
          required: false
          in: query
          description: >-
            Opaque cursor returned by a prior page; results begin after this
            cursor.
          schema:
            type: string
        - name: limit
          required: false
          in: query
          schema:
            minimum: 1
            maximum: 200
            default: 50
            type: number
        - name: event_types
          required: false
          in: query
          description: >-
            Filter to these event types. Repeat the param or pass a
            comma-separated list.
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookSubscriptionListResponseDto'
        '400':
          description: Invalid query parameters or pagination cursor
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailDto'
components:
  schemas:
    WebhookSubscriptionListResponseDto:
      type: object
      properties:
        data:
          description: Page items.
          type: array
          items:
            $ref: '#/components/schemas/WebhookSubscriptionDto'
        pagination:
          $ref: '#/components/schemas/PaginationMetadataDto'
      required:
        - data
        - pagination
    ProblemDetailDto:
      type: object
      properties:
        type:
          type: string
          example: about:blank
          description: >-
            URI identifying the problem type (about:blank until the docs site is
            live)
        title:
          type: string
          example: Tenant not found
        status:
          type: number
          example: 404
        detail:
          type: string
          example: No tenant exists with id 0192...c3.
        instance:
          type: string
          example: /v1/tenant/profile
        code:
          type: string
          example: tenant_not_found
          description: Stable machine-readable error code
        trace_id:
          type: string
          example: abc123def456
          description: Correlation id; matches dd.trace_id in Datadog
        timestamp:
          type: string
          example: '2026-06-10T09:30:00.000Z'
          format: date-time
        errors:
          description: Field-level validation errors (validation failures only)
          type: array
          items:
            $ref: '#/components/schemas/ProblemFieldErrorDto'
      required:
        - type
        - title
        - status
        - detail
        - instance
        - code
        - trace_id
        - timestamp
    WebhookSubscriptionDto:
      type: object
      properties:
        webhook_id:
          type: string
          format: uuid
          description: Platform-assigned stable identifier.
        name:
          type: string
          description: Human-readable name for the subscription.
        description:
          type: string
          nullable: true
        url:
          type: string
          format: uri
          description: HTTPS endpoint deliveries are POSTed to.
        event:
          type: string
          description: The event type this subscription receives.
        status:
          type: string
          enum:
            - ACTIVE
            - PAUSED
            - FAILED
        api_version:
          type: string
          nullable: true
          description: Pinned payload API version.
        custom_header_names:
          description: >-
            Names of configured custom headers. Header values are never
            returned.
          type: array
          items:
            type: string
        failure_count:
          type: number
          description: Consecutive delivery failures since the last success.
        last_failure_at:
          type: string
          format: date-time
          nullable: true
        last_success_at:
          type: string
          format: date-time
          nullable: true
        last_status_code:
          type: number
          nullable: true
        last_delivery_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - webhook_id
        - name
        - url
        - event
        - status
        - custom_header_names
        - failure_count
        - created_at
        - updated_at
    PaginationMetadataDto:
      type: object
      properties:
        end_cursor:
          type: string
          nullable: true
          description: >-
            Cursor for the end of the current page; null when no further pages
            exist.
        has_next:
          type: boolean
          description: Whether more pages follow this one.
      required:
        - end_cursor
        - has_next
    ProblemFieldErrorDto:
      type: object
      properties:
        field:
          type: string
          example: workspace_id
        code:
          type: string
          example: is_uuid
        message:
          type: string
          example: workspace_id must be a UUID
      required:
        - field
        - code
        - message

````