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.
Minimum length is
34, maximum length is34. Format should match the following pattern:^AC[0-9a-fA-F]{32}$.
Body
-
The name to associate with the new address.
-
The number and street address of the new address.
-
The city of the new address.
-
The state or region of the new address.
-
The postal code of the new address.
-
The ISO country code of the new address.
-
A descriptive string that you create to describe the new address. It can be up to 64 characters long.
-
Whether to enable emergency calling on the new address. Can be:
trueorfalse. -
Whether we should automatically correct the address. Can be:
trueorfalseand 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 additional number and street address of the address.
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'City=city&Region=region&Street=street&IsoCountry=US&PostalCode=postal_code&CustomerName=customer_name&FriendlyName=friendly_name'
{"City" => "city", "Region" => "region", "Street" => "street", "IsoCountry" => "US", "PostalCode" => "postal_code", "CustomerName" => "customer_name", "FriendlyName" => "friendly_name"}
{
"sid": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"city": "SF",
"region": "CA",
"street": "4th",
"verified": false,
"validated": false,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"iso_country": "US",
"postal_code": "94019",
"date_created": "Tue, 18 Aug 2015 17:07:30 +0000",
"date_updated": "Tue, 18 Aug 2015 17:07:30 +0000",
"customer_name": "name",
"friendly_name": "Main Office",
"street_secondary": "Suite 300",
"emergency_enabled": false
}