TODO: Resource-level docs
Create a new Webhook for the Service
Path parameters
-
The unique SID identifier of the Service.
Minimum length is
34, maximum length is34. Format should match the following pattern:^VA[0-9a-fA-F]{32}$.
Body
-
The array of events that this Webhook is subscribed to. Possible event types:
*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied -
The string that you assigned to describe the webhook. This value should not contain PII.
-
The webhook status. Default value is
enabled. One of:enabledordisabledValues are
enabledordisabled. -
The webhook version. Default value is
v2which includes all the latest fields. Versionv1is legacy and may be removed in the future.Values are
v1orv2. -
The URL associated with this Webhook.
curl \
--request POST 'https://verify.twilio.com/v2/Services/{ServiceSid}/Webhooks' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'EventTypes=string&FriendlyName=string&Status=enabled&Version=v1&WebhookUrl=string'
{
"account_sid": "string",
"date_created": "2026-05-04T09:42:00Z",
"date_updated": "2026-05-04T09:42:00Z",
"event_types": [
"string"
],
"friendly_name": "string",
"service_sid": "string",
"sid": "string",
"status": "enabled",
"url": "https://example.com",
"version": "v1",
"webhook_method": "GET",
"webhook_url": "https://example.com"
}