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

# Create a webhook

`POST /v1/webhooks`

## Request

- Base URL: `https://anjal.app`
- URL: `https://anjal.app/v1/webhooks`
- Auth: API key in header `X-API-Key`

Subscribe a URL to one or more events. See `WebhookEvent` for the full list and the newer payloads.

## Request body

- object
  - `url` string, uri, required
  - `events` WebhookEvent[], required

## Response `201`

Created

- Webhook
  - `id` string, uuid
  - `url` string, uri
  - `events` WebhookEvent[]
  - `secret` string: HMAC-SHA256 secret. Only returned on creation.
  - `isActive` boolean
  - `createdAt` string, date-time

---

[API](https://skmtc.dev/anjal/apis/anjal-api.md) · [All operations](https://skmtc.dev/anjal/apis/anjal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anjal/apis/anjal-api/revisions/a4044778e294?raw)
