---
title: "Create Webhook"
method: POST
path: "/v1/webhooks"
---

# Create Webhook

`POST /v1/webhooks`

## Request

- Base URL: `https://api.segly.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.segly.io/v1/webhooks`
- Auth: HTTP bearer

## Request body

- WebhookCreateRequest
  - `url` string, required
  - `events` string[], required

## Response `201`

Successful Response

- WebhookCreateResponse
  - `webhook` WebhookResource, required
    - `id` string, required
    - `url` string, required
    - `events` string[], required
    - `enabled` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `secret` string, required: One-time endpoint signing secret; Segly never returns it again

## Other responses

- `422`: Validation Error

---

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