Domainee Docs
Webhook Endpoints

Create a webhook endpoint

POST /v1/webhook-endpoints — register a URL we'll POST events to.

POST /v1/webhook-endpoints

Registers a URL we'll POST signed event payloads to. The signing secret is returned once in the response — store it before closing.

For payload format and signature verification see the Webhooks guide. For event payloads see Webhook events.

Request

curl -X POST https://api.domainee.dev/v1/webhook-endpoints \
  -H "Authorization: Bearer $DOMAINEE_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "url": "https://your-app.com/webhooks/domainee",
    "events": []
  }'

Body parameters

FieldRequiredNotes
urlMust be HTTPS. We retry up to 6 times with exponential backoff.
eventsArray of event types. Empty array [] = subscribe to all. See Webhook events.

Response — 201 Created

{
  "endpoint": {
    "id": "0d8ab7f2-...",
    "workspaceId": "cb9e05b7-...",
    "url": "https://your-app.com/webhooks/domainee",
    "events": [],
    "enabled": true,
    "createdAt": "2026-05-05T11:39:12.884Z"
  },
  "secret": "whsec_aBcDeF…"
}

The secret is returned only on this response — we never echo it back. It's used to verify HMAC signatures on every incoming webhook payload. Store it in your secret manager.

Errors

StatusCodeWhen
400bad_requestURL isn't HTTPS or unknown event type in events

On this page