> ## 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.

# Send a test delivery

> Sends a one-off signed test payload to the subscription endpoint and reports the result. It does not affect the failure count or the subscription status.



## OpenAPI

````yaml /openapi/emsp-webhook/openapi.yaml post /emsp/v1/webhooks/{webhook_id}/test
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/{webhook_id}/test:
    post:
      tags:
        - Webhooks
      summary: Send a test delivery
      description: >-
        Sends a one-off signed test payload to the subscription endpoint and
        reports the result. It does not affect the failure count or the
        subscription status.
      operationId: webhooks_test
      parameters:
        - name: webhook_id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookTestResultDto'
        '404':
          description: Webhook subscription not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailDto'
components:
  schemas:
    WebhookTestResultDto:
      type: object
      properties:
        delivered:
          type: boolean
          description: Whether the endpoint accepted the test delivery (2xx response).
        status_code:
          type: number
          nullable: true
          description: >-
            HTTP status returned by the endpoint, or null if the request never
            completed.
        error:
          type: string
          description: >-
            Transport-level error, present only when the request failed to
            complete.
      required:
        - delivered
        - status_code
    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
    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

````