import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const dynamicEmergencyEndpoint = await client.dynamicEmergencyEndpoints.delete(
'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"
}
}Deletes the dynamic emergency endpoint based on the ID provided
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const dynamicEmergencyEndpoint = await client.dynamicEmergencyEndpoints.delete(
'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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Dynamic Emergency Endpoint id
Dynamic Emergency Endpoint Response
Show child attributes
An id of a currently active dynamic emergency location.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
"+13125550000"
"Jane Doe Desk Phone"
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
Identifies the type of the resource.
"dynamic_emergency_endpoint"
Status of dynamic emergency address
pending, activated, rejected "pending"
"FXDFWEDF"
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"
Was this page helpful?