---
title: "Create a webhook endpoint."
method: POST
path: "/v1/webhook-endpoints"
tags: ["Webhooks"]
---

# Create a webhook endpoint.

`POST /v1/webhook-endpoints`

## Request

- Base URL: `https://api.domainee.dev`
- URL: `https://api.domainee.dev/v1/webhook-endpoints`
- Auth: HTTP bearer

The response contains the signing secret. It is returned exactly once, so store it now.

## Request body

- object
  - `url` string, uri, required: Where Domainee POSTs the event.
  - `events` string[]: Events to receive. An empty array subscribes to none.

## Response `201`

Endpoint created.

- object
  - `endpoint` WebhookEndpoint, required
    - `id` string, required
    - `workspaceId` string
    - `url` string, uri, required
    - `events` string[], required
    - `enabled` boolean
    - `createdAt` string, date-time
  - `secret` string, required: HMAC signing secret. Shown only in this response.

## Other responses

- `400`: The request body or query failed validation.
- `401`: Missing, malformed, revoked, or expired Bearer token.

---

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