Set Call Forwarding
Set call forwarding number to a TxTRIA Number
POST
https://txtria.com/api/setcallforwarding
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
number | TxTRIA number | Yes | 8323249XXX |
tid | TxTRIA number TID | Yes | 76TH765HG |
forward_to | A valid phone number | Yes | 87676787XX |
call_flow_name | Without spaces | Yes | CALL-FLOW-01 |
ringer_timeout | ringer_timeout value must be a multiple of 15 from 15 to 90 | Yes | 15 |
record_conversation | True or False | Yes | true |
call_flow_id | If present, it will update existing flow | No | 124578 |
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
$url = 'https://txtria.com/api/setcallforwarding';
$data = array(
'number' => '8332022818',
'tid' => '8A2G0J2K2818',
'forward_to' => '8332020000',
'call_flow_name' => 'CALL-FLOW-01',
'ringer_timeout' => '15',
'record_conversation' => 'true',
'sys_id' => 'ACfc98e7b0aae031b9fa',
'auth_token' => 'c74eac89884a126a2cca'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Example Response
{
"success": "1",
"message": "Successfully set call forwarding"
}