REST ClientAddresses

get

View as MarkdownOpen in Claude

Retrieve a specific address.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of the address.

Response

idstringRequiredformat: "uuid"
The unique identifier of the Address on SignalWire.
labelstringRequired
A friendly name given to the address to help distinguish and search for different addresses within your project.
countrystringRequired
The ISO 3166 Alpha 2 country code.
first_namestringRequired
First name of the occupant associated with this address.
last_namestringRequired
Last name of the occupant associated with this address.
street_numberstringRequired
The number portion of the street address.
street_namestringRequired
The name portion of the street address.
address_typeenum or nullRequired
If the address is divided into multiple sub-addresses, this identifies how the address is divided.
address_numberstring or nullRequired
If the address is divided into multiple sub-addresses, this identifies the particular sub-address.
citystringRequired
The city portion of the street address.
statestringRequired
The state/province/region of the street address. In the USA and Canada, use the two-letter abbreviated form.
postal_codestringRequired
The postal code of the street address.
zip_codestringRequired
The postal code of the street address. Alias for postal_code for backwards compatibility.

Response Example

Response
1{
2 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3 "label": "My Address",
4 "country": "US",
5 "first_name": "Emmett",
6 "last_name": "Brown",
7 "street_number": "1640",
8 "street_name": "Riverside Drive",
9 "address_type": "Apartment",
10 "address_number": "42",
11 "city": "Alexandria",
12 "state": "CA",
13 "postal_code": "91905",
14 "zip_code": "91905"
15}

Example

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9addr = client.addresses.get("address-id")
10print(addr.get("customer_name"), addr.get("street"))