Retrieve a Tag
Get a single tag by its unique ID or fully qualified name.
Get by ID
UUID of the tag to retrieve.
Comma-separated list of fields to include (e.g., owners,children).
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
Get by Fully Qualified Name
Use GET /v1/tags/name/{fqn} to retrieve by fully qualified name.
Fully qualified name of the tag (e.g., Certification.Bronze).
Comma-separated list of fields to include: owners, children.
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
from metadata.sdk import configure
from metadata.sdk.entities import Tags
configure(
host="https://your-company.getcollate.io/api",
jwt_token="your-jwt-token"
)
# Get by ID
tag = Tags.retrieve("68ec158c-5f5e-4277-8a19-5e9e0cd5294f")
print(f"{tag.fullyQualifiedName}: {tag.description}")
# Get by ID with fields
tag = Tags.retrieve(
"68ec158c-5f5e-4277-8a19-5e9e0cd5294f",
fields=["owners", "children"]
)
# Get by fully qualified name
tag = Tags.retrieve_by_name("Certification.Bronze")
# Get by name with fields
tag = Tags.retrieve_by_name(
"Certification.Bronze",
fields=["owners", "children"]
)
{
"id": "68ec158c-5f5e-4277-8a19-5e9e0cd5294f",
"name": "Bronze",
"fullyQualifiedName": "Certification.Bronze",
"description": "Bronze certified Data Asset.",
"style": {
"color": "#C08320"
},
"version": 0.1,
"updatedAt": 1769982619666,
"updatedBy": "admin",
"classification": {
"id": "06d90883-6be9-4f7e-9475-753f10a95e94",
"type": "classification",
"name": "Certification",
"fullyQualifiedName": "Certification",
"deleted": false
},
"deleted": false,
"owners": [],
"provider": "system",
"mutuallyExclusive": false
}
Returns
Returns a tag object with all requested fields populated.
Response
Unique identifier for the tag (UUID format).
Fully qualified name of the tag.
Human-readable display name.
Description of the tag in Markdown format.
Visual styling for the tag.
Reference to the parent classification.
Provider: user or system.
List of owners. Only included when fields contains owners.
Child tag references. Only included when fields contains children.
Version number for the entity.
Error Handling
| Code | Error Type | Description |
|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to view this tag |
404 | NOT_FOUND | Tag with given ID or FQN does not exist |