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

# Create a webhook

`POST /webhooks`

## Request

- Base URL: `https://sending.dev/api/v1`
- URL: `https://sending.dev/api/v1/webhooks`
- Auth: HTTP bearer

The signing `secret` is returned only once. Required scope: `webhooks:write`.

## Request body

- CreateWebhookInput
  - `url` string, uri, required
  - `description` string
  - `events` string[], required

## Response `201`

Webhook created (with secret).

- WebhookCreated
  - `webhook` Webhook, required
    - `id` string, uuid, required
    - `url` string, required
    - `description` string, nullable
    - `events` string[]
    - `enabled` boolean
    - `createdAt` string, date-time
  - `secret` string, required

## Other responses

- `401`: Missing or invalid token.
- `402`: Plan quota exceeded.
- `403`: Insufficient scope.
- `422`: Invalid input.

---

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