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.
My Address
First name of the occupant associated with this address.
Emmett
Last name of the occupant associated with this address.
Brown
The number portion of the street address.
1640
The name portion of the street address.
Riverside Drive
(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
.
Apartment
(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.
42
The city portion of the street address.
Alexandria
The state/province/region of the street address. In the USA and Canada, use the two-letter abbreviated form, such as CA
for California.
CA
The postal code of the street address.
91905
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.
My Address
First name of the occupant associated with this address.
Emmett
Last name of the occupant associated with this address.
Brown
The number portion of the street address.
1640
The name portion of the street address.
Riverside Drive
(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
.
Apartment
(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.
42
The city portion of the street address.
Alexandria
The state/province/region of the street address. In the USA and Canada, use the two-letter abbreviated form, such as CA
for California.
CA
The postal code of the street address.
91905
{
"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"
}