Skip to Content
Tags

List tag usage

Per-tag usage counts grouped by target type, scoped to the org.

GET
/tag-usage

Per-tag usage counts grouped by target type, scoped to the org.

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.

Required permission

view_tags

Query Parameters

namespace*string

Which kind of entity a tag can be applied to. A tag belongs to exactly one namespace.

Value in"agent""resource"

Response Body

The request has succeeded.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://your-org.aisecurity.services.us.connect.secureauth.com/api/v1/tag-usage?namespace=agent'
Example Response
{  "items": [    {      "tag_id": "39c8a0b3-fbe8-4801-95bf-e8a0792edf1d",      "mcp_count": 0,      "tool_count": 0,      "agent_slug_count": 0    }  ]}