import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const civicAddresses = await client.externalConnections.civicAddresses.list('id');
console.log(civicAddresses.data);{
"data": [
{
"id": "07a4dc5d-9b3b-4ba2-88a4-6ba172316c65",
"record_type": "civic_address",
"city_or_town": "Austin",
"city_or_town_alias": "",
"company_name": "Telnyx",
"country": "US",
"county_or_district": "US",
"default_location_id": "18ded4bb-b694-44c1-a89b-a35b7acd4c9e",
"description": "Austin Office",
"house_number": "600",
"house_number_suffix": "",
"locations": [
{
"id": "18ded4bb-b694-44c1-a89b-a35b7acd4c9e",
"additional_info": "",
"description": "Austin Office",
"is_default": true
},
{
"id": "d420a57f-c4ae-4697-87e1-fbefd9e86f72",
"additional_info": "14th Floor",
"description": "",
"is_default": false
}
],
"postal_or_zip_code": "78701",
"state_or_province": "TX",
"street_name": "Congress Street",
"street_suffix": ""
}
]
}Returns the civic addresses and locations from Microsoft Teams.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const civicAddresses = await client.externalConnections.civicAddresses.list('id');
console.log(civicAddresses.data);{
"data": [
{
"id": "07a4dc5d-9b3b-4ba2-88a4-6ba172316c65",
"record_type": "civic_address",
"city_or_town": "Austin",
"city_or_town_alias": "",
"company_name": "Telnyx",
"country": "US",
"county_or_district": "US",
"default_location_id": "18ded4bb-b694-44c1-a89b-a35b7acd4c9e",
"description": "Austin Office",
"house_number": "600",
"house_number_suffix": "",
"locations": [
{
"id": "18ded4bb-b694-44c1-a89b-a35b7acd4c9e",
"additional_info": "",
"description": "Austin Office",
"is_default": true
},
{
"id": "d420a57f-c4ae-4697-87e1-fbefd9e86f72",
"additional_info": "14th Floor",
"description": "",
"is_default": false
}
],
"postal_or_zip_code": "78701",
"state_or_province": "TX",
"street_name": "Congress Street",
"street_suffix": ""
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifies the resource.
"1293384261075731499"
Successful response
Show child attributes
Uniquely identifies the resource.
"542c3bca-d247-42bc-8fe7-e01d16ecd761"
Identifies the type of the resource.
"civic_address"
"Chicago"
"Telnyx"
"US"
"US"
Identifies what is the default location in the list of locations.
"Texas Office"
"600"
"78701"
"TX"
"Congress"
"St"
Show child attributes
Uniquely identifies the resource.
"542c3bca-d247-42bc-8fe7-e01d16ecd761"
"14th Floor"
"Austin Office"
Represents whether the location is the default or not.
Was this page helpful?