# Manage tags Create, retrieve, update, and delete tags for labeling and organizing connections. ## List tags Returns all tags in the organization's workspace. #### Path Parameters **`organization_id`** string required The unique identifier of the organization (format: `org_*`). ## Get tag Retrieve a single tag by ID. #### Path Parameters **`tag_id`** string required The tag ID. ## Create tag Create a new tag for labeling connections. #### Request Body **`name`** string required Tag display name. **`workspace_id`** string required The workspace to create the tag in. **`color`** string optional Hex color code (e.g. `#FF5733`). ## Update tag Partially update a tag's properties. #### Request Body **`name`** string optional Updated tag name. **`color`** string optional Updated hex color code. ## Delete tag Permanently delete a tag. Returns 204 No Content on success. ## Returns A tag object containing `tag_id`, `name`, `color`, and `workspace_id`. Request ```bash cURL curl "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/connectors/tags" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") tags = client.knowledge_connectors.list_tags( organization_id="org_xyz789", ) print(tags) ``` ```python Python import requests org_id = "org_xyz789" url = f"https://api.aitronos.com/v1/organizations/{org_id}/knowledge/connectors/tags" headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript JavaScript const response = await fetch( "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/connectors/tags", { headers: { Authorization: "Bearer YOUR_ACCESS_TOKEN" }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "data": [ { "tag_id": "tag_abc123", "name": "Production", "color": "#FF5733", "workspace_id": "ws_abc123" } ] } ``` ```json 4xx Error { "success": false, "error": { "code": "CONNECTOR_TAG_NOT_FOUND", "message": "The requested tag was not found.", "type": "client_error", "status": 404, "details": {}, "trace_id": "abc-123-def", "timestamp": "2025-12-22T15:30:00Z" } } ``` ## Related Resources - [Sources](/docs/api-reference/knowledge-connectors/sources) - [Destinations](/docs/api-reference/knowledge-connectors/destinations) - [Declarative Sources](/docs/api-reference/knowledge-connectors/declarative-sources)