---
title: "Create Subscription"
method: POST
path: "/api/v1/webhook-subscriptions"
tags: ["webhook-subscriptions"]
---

# Create Subscription

`POST /api/v1/webhook-subscriptions`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/webhook-subscriptions`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Create a destination; the URL guard refuses unsafe addresses.

## Request body

- WebhookSubscriptionCreate: Request schema for registering a delivery destination.
  - `url` string, required
  - `event_kinds` string[], required
  - `include_provenance` boolean

## Response `201`

Successful Response

- WebhookSubscriptionResponse: Public view of one destination -- never carries the secret.
  - `id` integer, required
  - `url` string, required
  - `event_kinds` string[], required
  - `active` boolean, required
  - `include_provenance` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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