Returns the dynamic emergency addresses according to filters
Dynamic Emergency Address Responses
Array of objects (DynamicEmergencyAddress) | |
object (Metadata) |
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.DynamicEmergencyAddress.list(filter={"status":"pending","country_code":"string"})
{- "data": [
- {
- "administrative_area": "IL",
- "country_code": "US",
- "created_at": "2018-02-02T22:25:27.521Z",
- "extended_address": "string",
- "house_number": 311,
- "house_suffix": "string",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f1",
- "locality": "Chicago",
- "postal_code": "60654",
- "record_type": "dynamic_emergency_address",
- "sip_geolocation_id": "XYZ123",
- "status": "pending",
- "street_name": "Superior",
- "street_post_directional": "string",
- "street_pre_directional": "W",
- "street_suffix": "string",
- "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 address.
Dynamic Emergency Address Response
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
{- "administrative_area": "IL",
- "country_code": "US",
- "extended_address": "string",
- "house_number": 311,
- "house_suffix": "string",
- "locality": "Chicago",
- "postal_code": "60654",
- "street_name": "Superior",
- "street_post_directional": "string",
- "street_pre_directional": "W",
- "street_suffix": "string"
}
{- "data": {
- "administrative_area": "IL",
- "country_code": "US",
- "created_at": "2018-02-02T22:25:27.521Z",
- "extended_address": "string",
- "house_number": 311,
- "house_suffix": "string",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f1",
- "locality": "Chicago",
- "postal_code": "60654",
- "record_type": "dynamic_emergency_address",
- "sip_geolocation_id": "XYZ123",
- "status": "pending",
- "street_name": "Superior",
- "street_post_directional": "string",
- "street_pre_directional": "W",
- "street_suffix": "string",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Deletes the dynamic emergency address based on the ID provided
Dynamic Emergency Address Response
object (DynamicEmergencyAddress) | |||||||||||||||||||||||||||||||||||
|
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.DynamicEmergencyAddress.retrieve('id') res.delete()
{- "data": {
- "administrative_area": "IL",
- "country_code": "US",
- "created_at": "2018-02-02T22:25:27.521Z",
- "extended_address": "string",
- "house_number": 311,
- "house_suffix": "string",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f1",
- "locality": "Chicago",
- "postal_code": "60654",
- "record_type": "dynamic_emergency_address",
- "sip_geolocation_id": "XYZ123",
- "status": "pending",
- "street_name": "Superior",
- "street_post_directional": "string",
- "street_pre_directional": "W",
- "street_suffix": "string",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Returns the dynamic emergency address based on the ID provided
Dynamic Emergency Address Response
object (DynamicEmergencyAddress) | |||||||||||||||||||||||||||||||||||
|
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.DynamicEmergencyAddress.retrieve("id")
{- "data": {
- "administrative_area": "IL",
- "country_code": "US",
- "created_at": "2018-02-02T22:25:27.521Z",
- "extended_address": "string",
- "house_number": 311,
- "house_suffix": "string",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f1",
- "locality": "Chicago",
- "postal_code": "60654",
- "record_type": "dynamic_emergency_address",
- "sip_geolocation_id": "XYZ123",
- "status": "pending",
- "street_name": "Superior",
- "street_post_directional": "string",
- "street_pre_directional": "W",
- "street_suffix": "string",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}