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

# Test Webhook

> Sends a test webhook payload to the subscription URL and returns the response status, timing, and any errors.



## OpenAPI

````yaml POST /api/v1/mgt/workspaces/{workspaceId}/webhook-subscriptions/{subscriptionId}/test
openapi: 3.1.0
info:
  title: Xenia Team API - Test Webhook
  version: 1.0.0
  description: Send a test webhook to validate endpoint connectivity.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/workspaces/{workspaceId}/webhook-subscriptions/{subscriptionId}/test:
    post:
      tags:
        - Webhooks
      summary: Test Webhook
      description: >-
        Sends a test webhook payload to the subscription URL and returns the
        response status, timing, and any errors.
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Workspace ID
        - name: subscriptionId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Subscription ID
      responses:
        '200':
          description: Test completed
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                  code:
                    type: integer
                  data:
                    type: object
                    properties:
                      success:
                        type: boolean
                        description: Whether the test was successful
                      responseStatus:
                        type: integer
                        description: HTTP status code from endpoint
                      responseTimeMs:
                        type: integer
                        description: Response time in milliseconds
                      message:
                        type: string
                        description: Result message
                      error:
                        type: string
                        description: Error message if failed
              example:
                status: true
                code: 200
                data:
                  success: true
                  responseStatus: 200
                  responseTimeMs: 145
                  message: Webhook endpoint responded successfully
        '401':
          description: Unauthorized
        '404':
          description: Subscription not found
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````