Create Webhook Endpoint
Create a new webhook for a developer app.
The developer app must belong to the authenticated user (via X-API-Key). Each app can have one webhook per service type.
Supported service types: sms, voice, otp, whatsapp
Authentication: X-API-Key header required
Authorizations
Headers
Body
Schema for creating a new webhook.
The ID of the developer app this webhook belongs to
"550e8400-e29b-41d4-a716-446655440000"
Type of service for this webhook (e.g., 'sms', 'voice', 'otp', 'whatsapp')
^(sms|voice|otp|whatsapp|email)$"sms"
The URL where webhook events will be sent
1 - 2083"https://example.com/webhook"
Secret token for signing outgoing webhook requests
16 - 255"my_secret_token_123"
Response
Successful Response
Schema for webhook response.
Unique identifier for the webhook
The ID of the developer app
Type of service
The webhook URL
When the webhook was created
When the webhook was last updated
Secret token (masked for security)