Number Tags
Add/Remove phone number tags. Use the 'add' action to add a tag to the system to begin tagging phone numbers. Use the 'delete' action to remove a tag from the system and clear the tag assigned to any phone number. Use the 'get' action to get a list of phone numbers with a tag. Use 'set' and 'unset' action to give a phone number a tag and remove a tag from a phone number.
POST
https://txtria.net/api/tags
Query Parameter
Key | Description | Keys Required With Action | Required | Example |
---|---|---|---|---|
action | Tagging functions | add, delete, get, set, or unset | yes | set |
name | Name of your tag | add | yes | MyTag1 |
number | Number you want to tag or untag | set, unset | Yes | 8332022818 |
tag_id | Tag id assigned when a tag is created/added | delete, get, set, unset | Yes | e2936c097d03c72e69afc1fbd962d3b4 |
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... | |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
$url = 'https://txtria.net/api/tagging';
$data = array(
'action' => 'add',
'name' => 'MyTag1',
'number' => '',
'tag_id' => '',
'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": "e2936c097d03c72e69afc1fbd962d3b4"
}