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

# Send a test event

> Publishes a simulated event to the caller's organization so an endpoint can be verified end to end. Name an event_type from the catalog to simulate it with that type's sample payload (default webhook.test), and an endpoint_id to deliver to that endpoint only (a missing or wrong-organization id returns 404; an endpoint not subscribed to the type is a validation error rather than a silent no-op). Omit the body to deliver webhook.test to every endpoint subscribed to it. The event is queued, not delivered synchronously; the response carries the event id to look up in the delivery log.

<span class="api-role api-role-admin" title="Admins only.">Minimum role required: Admin</span>


## OpenAPI

````yaml /api-reference/openapi-backend.json post /webhooks/deliveries:sendTest
openapi: 3.1.0
info:
  description: Axilio backend HTTP API.
  title: Axilio API
  version: 0.107.0
servers:
  - url: https://api.axilio.ai/api/v1
    description: Production
security: []
tags:
  - name: API Keys
  - name: Billing
  - name: Files
  - name: Organization
  - name: Phones
  - name: Runs
  - name: Skill
  - name: Usage
  - name: Webhooks
  - name: Workflows
paths:
  /webhooks/deliveries:sendTest:
    post:
      tags:
        - Webhooks
      summary: Send a test event
      description: >-
        Publishes a simulated event to the caller's organization so an endpoint
        can be verified end to end. Name an event_type from the catalog to
        simulate it with that type's sample payload (default webhook.test), and
        an endpoint_id to deliver to that endpoint only (a missing or
        wrong-organization id returns 404; an endpoint not subscribed to the
        type is a validation error rather than a silent no-op). Omit the body to
        deliver webhook.test to every endpoint subscribed to it. The event is
        queued, not delivered synchronously; the response carries the event id
        to look up in the delivery log.
      operationId: webhooks_send_test_event
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookTestEventRequest'
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookTestEventResponse'
          description: Accepted
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Not Found
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Internal Server Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    WebhookTestEventRequest:
      additionalProperties: false
      description: >-
        Optional body for sending a test event: pick the event type to simulate
        and, optionally, one endpoint to deliver to.
      properties:
        endpoint_id:
          description: >-
            Deliver the test event to this endpoint only. It must be subscribed
            to the event type. Omit to deliver to every endpoint subscribed to
            the type.
          minLength: 1
          type: string
        event_type:
          description: >-
            The event type to simulate, from the event-type catalog; the event
            carries that type's sample payload. Omit for webhook.test.
          maxLength: 255
          minLength: 1
          type: string
      type: object
    WebhookTestEventResponse:
      additionalProperties: false
      description: Identifies the test event that was published.
      properties:
        endpoint_id:
          description: >-
            The endpoint the test event was aimed at, when one was named in the
            request.
          type: string
        event_id:
          description: Identifier of the published test event.
          type: string
        event_type:
          description: Event type of the published test event.
          type: string
      required:
        - event_id
        - event_type
      type: object
    V2ErrorModel:
      additionalProperties: false
      description: >-
        Error response, following RFC 9457 (Problem Details for HTTP APIs).
        Returned with a application/problem+json content type.
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/V2ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    V2ErrorDetail:
      additionalProperties: false
      description: >-
        One specific problem within an error response, locating the offending
        part of the request.
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apiKeyAuth:
      description: Customer API key (axl_ prefix).
      in: header
      name: X-Axilio-Api-Key
      type: apiKey

````

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