List Available Local Numbers
List available TxTRIA local numbers
POST
https://txtria.com/api/getnumbers
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
state | Number state | Yes | CA |
ratecenter | Rate-center in the given state | Yes | AGOURA |
$url = 'https://txtria.com/api/getnumbers';
$data = array(
'state' => 'BC',
'ratecenter' => 'VICTORIA',
);
$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": [
{
"number": "8332022818",
"state": "BC",
"ratecenter": "VICTORIA"
},
{
"number": "8332022819",
"state": "BC",
"ratecenter": "VICTORIA"
}
]
}