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

# Send a test event to an arbitrary URL

> Sends a synthetic `task.completed` event payload to `url` with `POST`, `Content-Type: application/json` and the given `headers`, without creating a subscription.



## OpenAPI

````yaml POST /webhook/test-url
openapi: 3.0.1
info:
  title: Tela API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.tela.com
security: []
paths:
  /webhook/test-url:
    post:
      tags:
        - Webhook
      summary: Send a test event to an arbitrary URL
      description: >
        Sends a synthetic `task.completed` [event
        payload](#/components/schemas/WebhookEventPayload) to `url`

        with `POST`, `Content-Type: application/json` and the given `headers`,
        without creating a subscription.

        Useful to validate an endpoint before saving it. `payload` may override
        the sample `task`,

        `inputContent` and `outputContent` fields. Always returns `200`; inspect
        `success` and `status`.
      operationId: testWebhookUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookTestUrlRequest'
      responses:
        '200':
          description: Result of the test request to the URL
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookTestUrlResponse'
        '400':
          $ref: '#/components/responses/WebhookBadRequest'
        '401':
          $ref: '#/components/responses/WebhookUnauthorized'
        '403':
          $ref: '#/components/responses/WebhookForbidden'
        '404':
          $ref: '#/components/responses/WebhookNotFound'
        '422':
          $ref: '#/components/responses/WebhookValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    WebhookTestUrlRequest:
      type: object
      properties:
        url:
          type: string
          description: Endpoint to send the test event to.
        payload:
          type: object
          additionalProperties: true
          description: >-
            Overrides merged into the sample payload. Supports `task` fields,
            `inputContent` and `outputContent`; send `{}` for the defaults.
        headers:
          type: object
          additionalProperties:
            type: string
          description: Headers to send with the test request.
      required:
        - url
        - payload
      example:
        url: https://erp.example.com/hooks/tela
        payload: {}
        headers:
          authorization: Bearer erp-webhook-token
    WebhookTestUrlResponse:
      type: object
      properties:
        success:
          type: boolean
          description: '`true` when your endpoint answered with a 2xx status.'
        status:
          type: integer
          description: >-
            HTTP status returned by your endpoint; `0` when the request could
            not be completed.
        statusText:
          type: string
        responseTime:
          type: integer
          description: Round-trip time in milliseconds (`0` when the request failed).
        responseBody:
          type: string
        error:
          type: string
          description: Error message when the request could not be completed.
      required:
        - success
        - status
        - responseTime
      example:
        success: true
        status: 200
        statusText: OK
        responseTime: 152
        responseBody: '{"ok":true}'
    Error: {}
  responses:
    WebhookBadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    WebhookUnauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    WebhookForbidden:
      description: The key does not have the required role
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    WebhookNotFound:
      description: Webhook not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    WebhookValidationError:
      description: Request body or query failed schema validation (`code` is `VALIDATION`)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or UUID

````

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