---
title: "Create Event"
method: POST
path: "/v1/webhooks/{endpointId}/events"
tags: ["Webhooks"]
---

# Create Event

`POST /v1/webhooks/{endpointId}/events`

## Request body

- WebhookEventRequest
  - `event` string, string, required — The event name for webhook to react

## Response `201`

A webhook config

- WebhookResponse
  - `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)
