---
title: "Creates a subscription to the provided list of events. Notifications will be sent to the provided WebhookURL"
method: POST
path: "/WebhookSubscription"
tags: ["WebhookSubscription"]
---

# Creates a subscription to the provided list of events. Notifications will be sent to the provided WebhookURL

`POST /WebhookSubscription`

## Headers

- `api-version` string

## Request body

- WebhookSubscriptionModel — A model representing the webhook subscription for list of events
  - `eventCodes` string[], required — Gets or sets the Events Codes
  - `webhookUrl` string, required — Gets or sets the webhook URL

## Response `200`

Returns a WebhookNotificationSubscriptionResultModel

- WebhookNotificationSubscriptionResultModel — The result of creating a webhook subscription
  - `subscriptionId` string, uuid — Gets or sets the SubscriptionId
  - `webhookUrl` string, nullable — Gets or sets the WebhookUrl
  - `webhookSecretKey` string, nullable — Gets or sets the SecretKey

## Other responses

- `400` — Something went wrong!
- `401` — Unauthorized request

---

[API](https://skmtc.dev/youlend/apis/prequalification.md) · [All operations](https://skmtc.dev/youlend/apis/prequalification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/youlend/prequalification/revisions/a76313c6cc3d/schema)
