Skip to main content

Create a dynamic emergency endpoint.

POST 
/dynamic_emergency_endpoints

Creates a dynamic emergency endpoints.

Request

Body

required

    dynamic_emergency_address_id stringrequired

    An id of a currently active dynamic emergency location.

    callback_number stringrequired
    caller_name stringrequired

Responses

201: Dynamic Emergency Endpoint Response

401: Unauthorized

404: Resource not found

422: Unprocessable entity. Check message field in response for details.

Request samples


curl -L 'https://api.telnyx.com/v2/dynamic_emergency_endpoints' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"callback_number": "+13125550000",
"caller_name": "Jane Doe Desk Phone"
}'

Response samples


{
"data": {
"id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"record_type": "dynamic_emergency_endpoint",
"dynamic_emergency_address_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"status": "pending",
"sip_from_id": "FXDFWEDF",
"callback_number": "+13125550000",
"caller_name": "Jane Doe Desk Phone",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}