curl --request POST \
--url https://{api_endpoint}/api/v1/channels/phone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"security": {
"api_key": "<string>",
"client_secret": "<string>",
"secure_trunking": false,
"authentication": false,
"username": "<string>",
"password": "<string>",
"password_is_set": false
},
"description": "<string>",
"service_provider": "sip_trunk",
"custom_invite_headers": [],
"put_caller_on_hold_on_transfer": true,
"send_provisional_response": true,
"error_handling": {}
}
'