Send Pool SMS API
Send an outbound SMS via Pools API from your TxTRIA account
POST
https://txtria.com/api/sendpoolsms
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
To | Phone number you want to send SMS to | Yes | +1832324XXXX |
pool_id | TxTRIA pool_id you want to send SMS from | Yes | 5CA5A20A9D300 |
Body | SMS text | Yes | Hello! |
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
$url = 'https://txtria.com/api/sendpoolsms';
$data = array(
'To' => '+18323249XXX',
'pool_id' => '5CA5A20A9D300',
'Body' => 'Hello+from+TxTRIA', // URL Encoded
'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",
"status": "queued [Possible status: queued or error]",
"message": "Message queued successfully",
"tracking_id": "b0c5381b8db3b06decec42560112XXXX",
"mobile_phone": "+183232XXXXX",
"assigned_pool_phone": "58760XXXXX"
}