Create a Webhook Configuration
Create a Webhook Configuration
POST
/v1/Porting/Configuration/Webhook
curl \
--request POST 'https://numbers.twilio.com/v1/Porting/Configuration/Webhook' \
--user "username:password" \
--header "Content-Type: application/json"
Request examples
{}
Response examples (201)
{
"url": "https://numbers.twilio.com/v1/Porting/Configuration/Webhook",
"notifications_of": [
"PortInWaitingForSignature",
"PortInInProgress",
"PortInCompleted",
"PortInActionRequired",
"PortInCanceled",
"PortInExpired",
"PortInPhoneNumberWaitingForSignature",
"PortInPhoneNumberSubmitted",
"PortInPhoneNumberPending",
"PortInPhoneNumberCompleted",
"PortInPhoneNumberRejected",
"PortOutPhoneNumberCompleted"
],
"port_in_target_url": "https://www.example.com/port-in",
"port_out_target_url": "https://www.example.com/port-out"
}