---
title: "Create Webhook"
method: POST
path: "/v1/webhooks"
tags: ["Webhooks"]
---

# Create Webhook

`POST /v1/webhooks`

## Request body

- WebhookRequest
  - `url` string, string, required — The URL to which webhook would send requests

## Response `201`

A webhook config

- WebhookCreatedResponse
  - `url` string, string, required — The URL to which webhook would send requests
  - `endpointId` string, string, required — Internal ID of endpoint
  - `events` string[], required

## Other responses

- `400` — Invalid request
- `403` — Unauthorized
- `500` — Internal error

---

[API](https://skmtc.net/soharhealth/apis/sohar-api.md) · [All operations](https://skmtc.net/soharhealth/apis/sohar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/soharhealth/sohar-api/versions/2cb5fa45c18c/schema)
