Common capabilitiesAPI referenceWebhooksCreate a webhook endpoint

Create a webhook endpoint

Register a publicly reachable HTTPS URL. The whsec_ signing secret in the response is returned only once; store it securely right away.

Authentication

API Key: X-API-Key: <API Key> or Authorization: Bearer <API Key>.

Credentials in the examples are placeholders. Replace them and run the examples on your server.

Code examples

curl -X POST 'https://shixux.com/api/v1/webhook-endpoints' \  -H 'X-API-Key: yb_xxx_yyy' \  -H 'Content-Type: application/json' \  -d '{"name":"production","url":"https://example.com/webhooks/shixu"}'
{  "id": "example",  "name": "example",  "url": "https://example.com/resource",  "enabled": true,  "secret_version": 1,  "created_at": "2026-10-06T10:00:00Z",  "updated_at": "2026-10-06T10:00:00Z",  "signing_secret": "example"}

Request Body

application/json
  1. body
name*string
Length1 <= length <= 120
url*string
Formaturi
Length1 <= length <= 2083

Response Body

Request succeeded

application/json
  1. response
id*string
Match^whe_[a-f0-9]{32}$
name*string
Lengthlength <= 120
url*string
Formaturi
Lengthlength <= 2083
enabled*boolean
secret_version*integer
Range1 <= value
last_delivery_at?|null
last_success_at?|null
last_failure_at?|null
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
signing_secret*string
Match^whsec_

On this page