curl -X GET https://cp.gosentrix.io/api/v1/tenants/{tenant_id}/webhooks \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Control Plane API
Webhooks
Manage webhook endpoints
GET
/
api
/
v1
/
tenants
/
{tenant_id}
/
webhooks
curl -X GET https://cp.gosentrix.io/api/v1/tenants/{tenant_id}/webhooks \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Configure webhooks to receive real-time event notifications.
List Webhooks
curl -X GET https://cp.gosentrix.io/api/v1/tenants/{tenant_id}/webhooks \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Create Webhook
curl -X POST https://cp.gosentrix.io/api/v1/tenants/{tenant_id}/webhooks \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhook",
"events": ["user.created", "user.updated"],
"secret": "webhook-secret-key"
}'
Update Webhook
curl -X PATCH https://cp.gosentrix.io/api/v1/tenants/{tenant_id}/webhooks/{webhook_id} \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true
}'
Webhook Events
See Webhook Events Reference for a complete list of available events.Notes
- Webhooks use HMAC signature verification
- Failed deliveries are retried (see Webhook Retries)
- See Webhooks Guide for setup details