Get Tag
GET /api/v1/tags/:id
Retrieves a single tag by its ID, including usage counts.
Path Parameters
| Parameter | Type | Description |
|---|
id | string | The tag's unique identifier |
Example Request
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/tags/tag_abc123" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Response
{
"data": {
"id": "tag_abc123",
"name": "monthly",
"description": "Monthly recurring stations",
"color": "#0075ca",
"created_at": "2024-01-10T08:00:00Z",
"usage": {
"station": 3,
"line": 0,
"work_record": 5,
"total": 8
}
}
}
Errors
| Code | Description |
|---|
401 | Invalid or missing API credentials |
403 | API key lacks tags:read permission |
404 | Tag not found |
Not Found Response
{
"error": {
"code": "NOT_FOUND",
"message": "Tag not found"
}
}