Returns the dynamic emergency endpoints according to filters
Dynamic Emergency Endpoints Responses
Array of objects (DynamicEmergencyEndpoint) | |
object (Metadata) |
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.DynamicEmergencyEndpoint.list(filter={"status":"pending","country_code":"string"})
{- "data": [
- {
- "callback_number": "+13125550000",
- "caller_name": "Jane Doe Desk Phone",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "record_type": "dynamic_emergency_endpoint",
- "sip_from_id": "FXDFWEDF",
- "status": "pending",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
], - "meta": {
- "page_number": 3,
- "page_size": 1,
- "total_pages": 13,
- "total_results": 13
}
}
Creates a dynamic emergency endpoints.
Dynamic Emergency Endpoint Response
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
{- "callback_number": "+13125550000",
- "caller_name": "Jane Doe Desk Phone",
- "dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
}
{- "data": {
- "callback_number": "+13125550000",
- "caller_name": "Jane Doe Desk Phone",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "record_type": "dynamic_emergency_endpoint",
- "sip_from_id": "FXDFWEDF",
- "status": "pending",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Deletes the dynamic emergency endpoint based on the ID provided
Dynamic Emergency Endpoint Response
object (DynamicEmergencyEndpoint) | |||||||||||||||||||
|
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.DynamicEmergencyEndpoint.retrieve('id') res.delete()
{- "data": {
- "callback_number": "+13125550000",
- "caller_name": "Jane Doe Desk Phone",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "record_type": "dynamic_emergency_endpoint",
- "sip_from_id": "FXDFWEDF",
- "status": "pending",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Returns the dynamic emergency endpoint based on the ID provided
Dynamic Emergency Endpoint Response
object (DynamicEmergencyEndpoint) | |||||||||||||||||||
|
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.DynamicEmergencyEndpoint.retrieve("id")
{- "data": {
- "callback_number": "+13125550000",
- "caller_name": "Jane Doe Desk Phone",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "record_type": "dynamic_emergency_endpoint",
- "sip_from_id": "FXDFWEDF",
- "status": "pending",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}