Getting the list of titles of status/label groups through API: get_tag_groups
Sample get_tag_groups request
https://your—domain.com/api/admin/v2/?action=get_tag_groups&hash=HASH
Returns data on status and label groups
This request does not require page parameter
Returned data on status/tag groups:
- id — group unique identifier
- title — group name
- type — group type (status/label)
- access — visibility of labels of a certain label group (statuses are always visible and have public value)
public — available to all teams (including external client teams)
private — available only for your company teams
Sample JSON response
If the request succeeds, the response will contain ok status and the following data:
{
"status": "ok",
"data": [
{
"title": "GROUP_NAME_1",
"id": GROUP_ID,
"type": "status",
"access": "public"
},
{
"title": "GROUP_NAME_2",
"id": GROUP_ID,
"type": "label",
"access": "public"
},
{
"title": "GROUP_NAME_3",
"id": GROUP_ID,
"type": "label",
"access": "private"
}
]
}
Was this article helpful?
Yes, thank you!
No