---
title: "Send a test webhook event"
method: POST
path: "/webhooks/endpoints/{id}/test"
---

# Send a test webhook event

`POST /webhooks/endpoints/{id}/test`

## Request

- Base URL: `https://api.tellandgo.com/api/v1/agent`
- URL: `https://api.tellandgo.com/api/v1/agent/webhooks/endpoints/{id}/test`
- Auth: API key in header `X-API-Key`

Requires the `webhooks:write` scope.

## Path parameters

- `id` string, required

## Response `200`

Test delivery result

- WebhookDeliveryResponse
  - `success` boolean, required
  - `delivery` WebhookDelivery, required
    - `id` string, required
    - `endpoint_id` string, required
    - `event` 'booking.created' | 'payment.succeeded' | 'payment.failed' | 'booking.confirmed' | 'booking.failed' | 'booking.cancelled' | 'refund.updated' | 'webhook.test', required
    - `status` 'delivered' | 'failed', required
    - `status_code` integer
    - `error` string
    - `attempts` integer, required
    - `created_at` string, date-time, required

## Other responses

- `401`: Authentication required or invalid
- `403`: API key lacks the required scope
- `404`: Resource not found

---

[API](https://skmtc.dev/tellandgo/apis/tell-go-travel-agent-api.md) · [All operations](https://skmtc.dev/tellandgo/apis/tell-go-travel-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tellandgo/apis/tell-go-travel-agent-api/revisions/3d84f816eb4f?raw)
