Get a list of tags


Warning. If you use the server version of Usedesk, you will have a different URL of methods. Check the URL for the API with our team —

The method returns a list of tags.
The method implements a page breakdown. The response has a maximum of 100 entries, the offset parameter is used.

* — required fields

api_token* Channel API token


Does not accept null

Offset by 1 will show the next 100 entries

query String to search

The search is performed by the text of the tag

PHP request example
$data = array(
    'api_token'=> 'e1cbe1c1c9d910ef2ae975215644cb53dd555de4',
$mch_api = curl_init(); // initialize cURL connection
curl_setopt($mch_api, CURLOPT_URL, '');
curl_setopt($mch_api, CURLOPT_RETURNTRANSFER, true);
curl_setopt($mch_api, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($mch_api, CURLOPT_TIMEOUT, 10);
curl_setopt($mch_api, CURLOPT_POST, true);
curl_setopt($mch_api, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($mch_api, CURLOPT_POSTFIELDS, $data);
$result = curl_exec($mch_api);
return $result;

Example of a response from server

Server response parameters

ticket_tag_idTag ID
tag_company_idCompany ID
nameTag value
ticket_countNumber of tickets with the matching tag