Create address
An Address instance resource represents your or your customer's physical location within a country. Around the world, some local authorities require the name and address of the user to be on file with Twilio to purchase and own a phone number.
Path parameters
-
The SID of the Account that will be responsible for the new Address resource.
Body
-
AutoCorrectAddress boolean
Whether we should automatically correct the address. Can be:
true
orfalse
and the default istrue
. If empty ortrue
, we will correct the address you provide if necessary. Iffalse
, we won't alter the address you provide. -
The city of the new address.
-
The name to associate with the new address.
-
EmergencyEnabled boolean
Whether to enable emergency calling on the new address. Can be:
true
orfalse
. -
FriendlyName string
A descriptive string that you create to describe the new address. It can be up to 64 characters long.
-
The ISO country code of the new address.
-
The postal code of the new address.
-
The state or region of the new address.
-
The number and street address of the new address.
curl \
-X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses.json \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'AutoCorrectAddress=true&City=string&CustomerName=string&EmergencyEnabled=true&FriendlyName=string&IsoCountry=string&PostalCode=string&Region=string&Street=string'
{
"AutoCorrectAddress": true,
"City": "string",
"CustomerName": "string",
"EmergencyEnabled": true,
"FriendlyName": "string",
"IsoCountry": "string",
"PostalCode": "string",
"Region": "string",
"Street": "string"
}
{
"AutoCorrectAddress": true,
"City": "string",
"CustomerName": "string",
"EmergencyEnabled": true,
"FriendlyName": "string",
"IsoCountry": "string",
"PostalCode": "string",
"Region": "string",
"Street": "string"
}
{
"account_sid": "string",
"city": "string",
"customer_name": "string",
"date_created": "string",
"date_updated": "string",
"emergency_enabled": true,
"friendly_name": "string",
"iso_country": "string",
"postal_code": "string",
"region": "string",
"sid": "string",
"street": "string",
"uri": "https://example.com",
"validated": true,
"verified": true
}
{
"account_sid": "string",
"city": "string",
"customer_name": "string",
"date_created": "string",
"date_updated": "string",
"emergency_enabled": true,
"friendly_name": "string",
"iso_country": "string",
"postal_code": "string",
"region": "string",
"sid": "string",
"street": "string",
"uri": "https://example.com",
"validated": true,
"verified": true
}