Skip to Content
Tags

List tag assignments

List all tag assignments for a given target_type in the org.

GET
/tag-assignments/{target_type}

List all tag assignments for a given target_type in 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

Path Parameters

target_type*string

The kind of entity a tag is assigned to.

Value in"agent_slug""mcp""tool"

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-assignments/agent_slug'
Example Response
{  "items": [    {      "target_key": "string",      "tag_ids": [        "f822a538-5d10-4249-89b6-dd557ee5945e"      ],      "catalog_tag_ids": [        "6fe79125-f632-436e-991b-fb898e2ac3f4"      ]    }  ]}