---
title: "[Internal] Create webhook"
method: POST
path: "/api/webhooks"
tags: ["Webhooks"]
---

# \[Internal\] Create webhook

`POST /api/webhooks`

## Request

- Base URL: `https://api.typless.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.typless.com/api/webhooks`
- Auth: none declared

## Request body

- CreateWebhookRequest
  - `event_names` string[]
  - `url` string, uri, required
  - `business_unit_ids` union[]
    - union
      - string, uuid
      - '*'

## Response `200`

Successful Response

- WebhookDTO
  - `aggregate_id` string, uuid, required
  - `tenant_id` string, uuid, required
  - `event_names` string[], required
  - `url` string, required
  - `business_unit_ids` union[], required
    - union
      - string, uuid
      - '*'
  - `active` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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