Create validation request
An OutgoingCallerId resource represents a single verified number that may be used as a caller ID when making outgoing calls via the REST API and within the TwiML
Path parameters
-
The SID of the Account responsible for the new caller ID resource.
Body
-
CallDelay integer
The number of seconds to delay before initiating the verification call. Can be an integer between
0
and60
, inclusive. The default is0
. -
Extension string
The digits to dial after connecting the verification call.
-
FriendlyName string
A descriptive string that you create to describe the new caller ID resource. It can be up to 64 characters long. The default value is a formatted version of the phone number.
-
The phone number to verify in E.164 format, which consists of a + followed by the country code and subscriber number.
-
StatusCallback string(uri)
The URL we should call using the
status_callback_method
to send status information about the verification process to your application. -
StatusCallbackMethod string(http-method)
The HTTP method we should use to call
status_callback
. Can be:GET
orPOST
, and the default isPOST
.Values are
HEAD
,GET
,POST
,PATCH
,PUT
, orDELETE
.
curl \
-X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'CallDelay=42&Extension=string&FriendlyName=string&PhoneNumber=string&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD'
{
"CallDelay": 42,
"Extension": "string",
"FriendlyName": "string",
"PhoneNumber": "string",
"StatusCallback": "https://example.com",
"StatusCallbackMethod": "HEAD"
}
{
"CallDelay": 42,
"Extension": "string",
"FriendlyName": "string",
"PhoneNumber": "string",
"StatusCallback": "https://example.com",
"StatusCallbackMethod": "HEAD"
}
{
"account_sid": "string",
"call_sid": "string",
"friendly_name": "string",
"phone_number": "string",
"validation_code": "string"
}
{
"account_sid": "string",
"call_sid": "string",
"friendly_name": "string",
"phone_number": "string",
"validation_code": "string"
}