import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const dynamicEmergencyAddress of client.dynamicEmergencyAddresses.list()) {
console.log(dynamicEmergencyAddress.id);
}{
"data": [
{
"house_number": "600",
"street_name": "Congress",
"locality": "Austin",
"administrative_area": "TX",
"postal_code": "78701",
"country_code": "US",
"id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f1",
"record_type": "dynamic_emergency_address",
"sip_geolocation_id": "XYZ123",
"status": "pending",
"house_suffix": "<string>",
"street_pre_directional": "<string>",
"street_suffix": "St",
"street_post_directional": "<string>",
"extended_address": "<string>",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"total_pages": 13,
"page_number": 3,
"total_results": 13,
"page_size": 1
}
}Returns the dynamic emergency addresses according to filters
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const dynamicEmergencyAddress of client.dynamicEmergencyAddresses.list()) {
console.log(dynamicEmergencyAddress.id);
}{
"data": [
{
"house_number": "600",
"street_name": "Congress",
"locality": "Austin",
"administrative_area": "TX",
"postal_code": "78701",
"country_code": "US",
"id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f1",
"record_type": "dynamic_emergency_address",
"sip_geolocation_id": "XYZ123",
"status": "pending",
"house_suffix": "<string>",
"street_pre_directional": "<string>",
"street_suffix": "St",
"street_post_directional": "<string>",
"extended_address": "<string>",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"total_pages": 13,
"page_number": 3,
"total_results": 13,
"page_size": 1
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Dynamic Emergency Address Responses
Show child attributes
"600"
"Congress"
"Austin"
"TX"
"78701"
US, CA, PR "US"
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f1"
Identifies the type of the resource.
"dynamic_emergency_address"
Unique location reference string to be used in SIP INVITE from / p-asserted headers.
"XYZ123"
Status of dynamic emergency address
pending, activated, rejected "pending"
"St"
ISO 8601 formatted date of when the resource was created
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date of when the resource was last updated
"2018-02-02T22:25:27.521Z"
Show child attributes
Total number of pages based on pagination settings
13
Current Page based on pagination settings (included when defaults are used.)
3
Total number of results
13
Number of results to return per page based on pagination settings (included when defaults are used.)
1
Was this page helpful?