---
title: "Creates a new webhook subscription."
method: POST
path: "/api/v1/webhook"
tags: ["WebHook"]
---

# Creates a new webhook subscription.

`POST /api/v1/webhook`

## Request

- Base URL: `https://api.approval.studio` (the document declares no server; this is the origin it was published from)
- URL: `https://api.approval.studio/api/v1/webhook`
- Auth: API key in header `Authorization`

## Request body

- CreateWebHookRequest
  - `url` string, nullable
  - `clientUID` string, nullable
  - `eventType` string, nullable

## Response `200`

OK

- WebHookApiResponse
  - `version` string, nullable
  - `statusCode` integer
  - `message` string, nullable
  - `isError` boolean, nullable
  - `responseException` unknown
  - `result` WebHook
    - `webhookUID` string, nullable
    - `url` string, nullable
    - `eventType` string, nullable
    - `secret` string, nullable
    - `created` string, date-time

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `412`: Precondition Failed
- `500`: Internal Server Error

---

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