Webhooks API
Webhook endpoints tell Custom Domain Kit where to deliver domain status events.
List Webhook Endpoints
GET /v1/applications/:applicationId/webhooksCreate Webhook Endpoint
POST /v1/applications/:applicationId/webhooks
Content-Type: application/json
{
"url": "https://app.example.com/webhooks/custom-domain-kit"
}The response includes a webhook signing secret once:
{
"webhookEndpoint": {
"id": "wh_123",
"url": "https://app.example.com/webhooks/custom-domain-kit",
"enabled": true
},
"secret": "whsec_..."
}Get Webhook Endpoint
GET /v1/applications/:applicationId/webhooks/:webhookEndpointIdUpdate Webhook Endpoint
PATCH /v1/applications/:applicationId/webhooks/:webhookEndpointId
Content-Type: application/json
{
"url": "https://app.example.com/webhooks/custom-domain-kit",
"enabled": true
}Rotate Webhook Secret
POST /v1/applications/:applicationId/webhooks/:webhookEndpointId/secretUpdate your receiver before or immediately after rotation.
Delete Webhook Endpoint
DELETE /v1/applications/:applicationId/webhooks/:webhookEndpointIdReturns 204 No Content.
