---
title: "Create a webhook endpoint"
method: POST
path: "/v1/webhooks/"
tags: ["Webhooks"]
---

# Create a webhook endpoint

`POST /v1/webhooks/`

The endpoint creates a webhook.

## Request body

- WebhookRequestCreate
  - `name` string, required — Public name for this webhook config.
  - `webhook_url` string, uri, required — Webhook URL where event data will be sent.
  - `events` string[] — List of events sent to this webhook URL.
  - `env_type` 'sandbox' | 'dev' | 'prod', required — Type of environment.
  - `enabled` boolean — Whether the webhook is active.

## Response `201`

- Webhook
  - `id` string, required — Unique identifier of the webhook.
  - `name` string, required — Public name for this webhook config.
  - `webhook_url` string, uri, required — Webhook URL where event data will be sent.
  - `events` string[], required — List of events sent to this webhook URL.
  - `env_type` 'sandbox' | 'dev' | 'prod', required — Type of environment.
  - `enabled` boolean, required — Whether the webhook is active.
  - `created_at` string, date-time, required — Timestamp when the webhook was created.
  - `updated_at` string, date-time, required — Timestamp when the webhook was updated last time.

## Other responses

- `400` — HTTP 400 Bad Request
- `401` — HTTP 401 Unauthorized
- `403` — HTTP 403 Forbidden

---

[API](https://skmtc.net/truv/apis/truv-api.md) · [All operations](https://skmtc.net/truv/apis/truv-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/truv/truv-api/versions/b92671dcb52d/schema)
