Webhook Endpoints
Register a webhook endpoint
curl -X POST https://api.subscriby.net/v1/webhook-endpoints \
-H "Authorization: Bearer $SUBSCRIBY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Zapier trigger",
"url": "https://hooks.zapier.com/hooks/catch/...",
"events": ["subscription.created", "payment.succeeded"]
}'
Answers 201 with the endpoint and, at the top level beside data, the plaintext signing secret.
The secret appears once. The plaintext secret (prefixed whsec_) appears at the top level of the response only here and on rotate-secret. Subsequent reads never surface it; copy it into your consumer's secret storage immediately.
post/v1/webhook-endpoints
Request
- Base URL: https://api.subscriby.net
- URL: https://api.subscriby.net/v1/webhook-endpoints
- Auth: HTTP bearer
Headers
Idempotency-Keystring uuid required
A key unique to this operation, such as a fresh UUID. The same key replays the original 2xx response for 24 hours (with Idempotent-Replay: true), so a retry after a timeout never repeats the write; the same key with a different body is refused with 409.
Request body
Response
201 with the resource and a top-level secret.
Example response
{
"data": {
"id": "c62a08f4-1b7d-4e35-9860-a37f5d21e0b9",
"name": "Zapier trigger",
"url": "https://hooks.zapier.com/hooks/catch/...",
"events": [
"subscription.created"
],
"is_active": true,
"created_at": "2026-05-18T10:05:00Z",
"updated_at": "2026-05-18T10:05:00Z"
},
"secret": "whsec_a1b2c3..."
}Changes
No recorded changes to this operation across all 1 revision of this API.