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.
emergency_enabledbooleanRequired
Whether E911 emergency calling is enabled for this address (carrier-validated when created/updated with `emergency_enabled=true` for a US address).
validatedbooleanRequired
Whether the address was validated by the carrier (true when the carrier returned a valid or auto-corrected match).
validated_atstring or nullRequired
The RFC 3339 / ISO 8601 timestamp of the last successful carrier validation, or null if never validated.

Response Example

Response
{
"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",
"zip_code": "91905",
"emergency_enabled": false,
"validated": false,
"validated_at": null
}

Example

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com"
});
const addr = await client.addresses.get("address-id");
console.log(addr["customer_name"], addr.street);