/api/v1/object/field/tag/{tagSlug}/usageGet one tag with its usage.
Get one tag with its usage.
Returns the tag with usage_count, the number of live records that hold
it, and units, that count split by object. Retired tags can be read
too. Use it before deleting a tag to show what the delete affects.
Scope: object.read.
Errors:
404— no tag has that slug.
Response 200:
{
"status": 200,
"message": "Tag usage retrieved successfully",
"data": {
"slug": "3f1c9a2e-7b4d-4e0a-9c61-2d8f5b0e41a7",
"label": "VIP",
"value": "VIP",
"color": "#F59E0B",
"is_archived": false,
"usage_count": 12,
"units": [
{ "slug": "contacts", "name": "Contacts", "count": 9 },
{ "slug": "deals", "name": "Deals", "count": 3 }
]
}
}
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Responses
Successful response
{
"slug": "string",
"label": "string",
"value": "string",
"color": "string",
"icon": "string",
"is_archived": true,
"usage_count": 1.5,
"units": "string"
}A retired tag: still rendered on records that hold it, never pickable.
Live records holding this tag across every Unit.
Bad request
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Unauthorized
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Internal server error
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Powered by heyo-docs