---
title: "Create a webhook subscription"
method: POST
path: "/api/webhooksubscriptions"
tags: ["Webhook subscriptions"]
---

# Create a webhook subscription

`POST /api/webhooksubscriptions`

## Request

- Base URL: `https://api.veterical.com`
- URL: `https://api.veterical.com/api/webhooksubscriptions`
- Auth: API key in header `Authorization`

The response includes the signing `secret` exactly once — store it; it cannot be retrieved again. A subscription is scoped to a single `clinicId`.

## Request body

- object
  - `clinicId` string, required
  - `url` string, required
  - `events` string[]: Empty array subscribes to all events

## Response `200`

The created subscription, including its secret

---

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