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

# Create a webhook subscription

`POST /webhooks`

## Request

- Base URL: `https://api.tinysend.com/v1`
- URL: `https://api.tinysend.com/v1/webhooks`
- Auth: HTTP bearer

## Request body

- object
  - `url` string, uri, required: Public HTTPS URL to receive webhook POST requests
  - `events` string[], required: Event types to subscribe to

## Response `201`

Created webhook (secret shown once)

- WebhookCreated
  - `id` string, required
  - `url` string, required
  - `events` string[], required
  - `secret` string, required: HMAC signing secret — shown only once
  - `status` string, required
  - `created_at` string, required

## Other responses

- `422`: Validation error

---

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