List Pools
Get a list of pools in your account
POST
https://txtria.com/api/getpools
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
$url = 'https://txtria.com/api/getpools';
$data = array(
'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",
"data": [
{
"pool_id": "5CA5A20A9D300",
"pool_name": "Test Pool",
"number_count": "25",
"sms_sent": "25",
"avg_daily_sent_per_800": "1",
"avg_daily_sent_all_800": "4",
"webhook": "https://webhook.com/123",
"provisioned": "true"
}
]
}