Check out our upcoming events and meetups! View events →
Returns the dynamic emergency endpoint based on the ID provided
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const dynamicEmergencyEndpoint = await client.dynamicEmergencyEndpoints.retrieve(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
);
console.log(dynamicEmergencyEndpoint.data);{
"data": {
"dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"callback_number": "+13125550000",
"caller_name": "Jane Doe Desk Phone",
"id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"record_type": "dynamic_emergency_endpoint",
"status": "pending",
"sip_from_id": "FXDFWEDF",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const dynamicEmergencyEndpoint = await client.dynamicEmergencyEndpoints.retrieve(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
);
console.log(dynamicEmergencyEndpoint.data);{
"data": {
"dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"callback_number": "+13125550000",
"caller_name": "Jane Doe Desk Phone",
"id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"record_type": "dynamic_emergency_endpoint",
"status": "pending",
"sip_from_id": "FXDFWEDF",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}