Set SMS URL
Set SMS URL to any number that you own
POST
https://txtria.net/api/smsurl
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
number | TxTRIA phone number | Yes | 876565XXX |
url | Inbound messages will be sent to this URL | Yes | https://mysys.com/smsurl |
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
universal | Make change to all live numbers in account | No | true |
$url = 'https://txtria.net/api/smsurl';
$data = array(
'number' => '876565XXX',
'url' => 'https://mysys.com/smsurl',
'sys_id' => 'ACfc98e7b0aae031b9fa',
'auth_token' => 'c74eac89884a126a2cca',
'universal' => 'false'
);
$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": "SMS URL has been updated successfully"
}