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

## Changes

- **2026-08-15** `16345eb80970` — 1 warning, 1 info
  - added the new `order-batch-completed` enum value to the `events/items/` response property for the response status `201`
  - added the new `order-batch-completed` enum value to the request property `events/items/`
- **2026-07-26** `e58688835e25` — 2 warning, 2 info
  - added the new `certification-completed` enum value to the `events/items/` response property for the response status `201`
  - added the new `order-finalized` enum value to the `events/items/` response property for the response status `201`
  - added the new `certification-completed` enum value to the request property `events/items/`
  - added the new `order-finalized` enum value to the request property `events/items/`

[Change history](https://skmtc.dev/truv/apis/truv-api/changes/v1/webhooks/post.md)

---

[API](https://skmtc.dev/truv/apis/truv-api.md) · [All operations](https://skmtc.dev/truv/apis/truv-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/truv/truv-api/revisions/d7195c30b6b1/schema)
