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

# Create webhook subscription

`POST /v1/webhooks/subscriptions/`

Create webhook subscription

**Required scopes: `application/webhooks:read`, `application/webhooks:write`**

## Request body

- CreateWebhookSubscriptionRequest
  - `name` string, required — A friendly name to describe the subscription.
  - `event_types` WebhookEventType[], required — A list of event types to bind the subscription to.
  - `notification_url` string, uri, required — The URL to be notified when an event occurs.

## Response `201`

Successful Response

- WebhookSubscription
  - `id` string, required — The unique identifier of the subscription.
  - `name` string, required — A friendly name to describe the subscription.
  - `enabled` boolean, required — A flag indicating whether the subscription is enabled.
  - `event_types` WebhookEventType[], required — A list of event types the subscription is bound to.
  - `notification_url` string, required — The URL to be notified when an event occurs.
  - `secret` string, nullable, required — The secret used to verify the payload of a webhook, only available upon creation.
  - `created_at` string, date-time, required — The subscription creation date and time in ISO 8601 format.
  - `updated_at` string, date-time, required — The date and time the subscription was last modified in ISO 8601 format.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too Many Requests

---

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