---
title: "Create a webhook endpoint"
method: POST
path: "/webhooks/endpoints"
---

# Create a webhook endpoint

`POST /webhooks/endpoints`

## Request

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

Requires the `webhooks:write` scope. The signing secret is returned only on creation.

## Request body

- WebhookEndpointCreateRequest
  - `url` string, uri, required: HTTPS endpoint URL.
  - `events` WebhookEvent[]
  - `description` string

## Response `201`

Webhook endpoint created

- WebhookEndpointCreateResponse
  - `success` boolean, required
  - `endpoint` WebhookEndpoint, required
    - `id` string, required
    - `url` string, uri, required
    - `description` string
    - `events` WebhookEvent[], required
    - `active` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `secret` string, required: Webhook signing secret returned once when the endpoint is created.

## Other responses

- `400`: Invalid request
- `401`: Authentication required or invalid
- `403`: API key lacks the required scope

---

[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)
