---
title: "Register a webhook endpoint (verbose path)"
method: POST
path: "/webhooks/endpoints"
tags: ["webhooks"]
---

# Register a webhook endpoint (verbose path)

`POST /webhooks/endpoints`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/webhooks/endpoints`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `session`

Alias for POST /webhooks. Returns full endpoint object including signing secret.

## Request body

- WebhookRegistrationRequest
  - `url` string, uri, required: The HTTPS endpoint that will receive webhook deliveries
  - `eventTypes` union: Event types to subscribe to. Use `"*"` for all events, or an array of specific event type strings such as `["decision.created", "decision.executed"]`.
    - '*'
    - string[]
  - `description` string: Human-readable label for this endpoint

## Response `201`

Webhook endpoint registered

- object
  - `success` boolean
  - `data` WebhookEndpointWithSecret
    - `id` string, required: Unique endpoint identifier (prefix `whe_`)
    - `url` string, uri, required
    - `eventTypes` union, required
      - '*'
      - string[]
    - `active` boolean, required
    - `description` string
    - `createdAt` integer, required: Unix timestamp (ms)
    - `lastDeliveredAt` integer: Unix timestamp of last successful delivery (ms)
    - `failureCount` integer, required
    - `secret` string: HMAC-SHA256 signing secret (prefix `whsec_`). Only returned on creation.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

## Changes

- **2026-04-18** `6f5790f2cc1c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/webhooks/endpoints/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
