Create an address
POST/addresses
To create a new Address, make a POST request to the Address resource.
Permissions
The API token must include the following scopes: Numbers.
Request
- application/json
Body
required
A friendly name given to the address to help distinguish and search for different addresses within your project.
The ISO 3166 Alpha 2 country code.
First name of the occupant associated with this address.
Last name of the occupant associated with this address.
The number portion of the street address.
The name portion of the street address.
(Optional) If the address is divided into multiple sub-addresses, such as an apartment or office building, this identifies how the address is divided. If the address is a single occupant address, address_type
may be omitted. Possible values are: Apartment
, Basement
, Building
, Department
, Floor
, Office
, Penthouse
, Suite
, Trailer
, Unit
.
(Optional) If the address is divided into multiple sub-addresses, such as an apartment or office building, this identifies the particular sub-address. If the address is a single occupant address, address_number
may be omitted.
The city portion of the street address.
The state/province/region of the street address. In the USA and Canada, use the two-letter abbreviated form, such as CA
for California.
The postal code of the street address.
Responses
- 201
CREATED
- application/json
- Schema
- Example (from schema)
Schema
The unique identifier of the Address on SignalWire. This can be used to show or delete the address programmatically.
A friendly name given to the address to help distinguish and search for different addresses within your project.
The ISO 3166 Alpha 2 country code.
First name of the occupant associated with this address.
Last name of the occupant associated with this address.
The number portion of the street address.
The name portion of the street address.
(Optional) If the address is divided into multiple sub-addresses, such as an apartment or office building, this identifies how the address is divided. If the address is a single occupant address, address_type
may be omitted. Possible values are: Apartment
, Basement
, Building
, Department
, Floor
, Office
, Penthouse
, Suite
, Trailer
, Unit
.
(Optional) If the address is divided into multiple sub-addresses, such as an apartment or office building, this identifies the particular sub-address. If the address is a single occupant address, address_number
may be omitted.
The city portion of the street address.
The state/province/region of the street address. In the USA and Canada, use the two-letter abbreviated form, such as CA
for California.
The postal code of the street address.
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"label": "My Address",
"country": "US",
"first_name": "Emmett",
"last_name": "Brown",
"street_number": "1640",
"street_name": "Riverside Drive",
"address_type": "Apartment",
"address_number": "42",
"city": "Alexandria",
"state": "CA",
"postal_code": "91905"
}