Retrieve a Classification
Get a single classification by its unique ID or fully qualified name.
Get by ID
UUID of the classification to retrieve.
Comma-separated list of fields to include (e.g., owners).
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
Get by Fully Qualified Name
Use GET /v1/classifications/name/{fqn} to retrieve by fully qualified name.
Fully qualified name of the classification (e.g., Certification).
Comma-separated list of fields to include: owners.
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
GET /v1/classifications/{id}
from metadata.sdk import configure
from metadata.sdk.entities import Classifications
configure(
host="https://your-company.getcollate.io/api",
jwt_token="your-jwt-token"
)
# Get by ID
classification = Classifications.retrieve("06d90883-6be9-4f7e-9475-753f10a95e94")
print(f"{classification.fullyQualifiedName}: {classification.description}")
# Get by ID with fields
classification = Classifications.retrieve(
"06d90883-6be9-4f7e-9475-753f10a95e94",
fields=["owners"]
)
# Get by fully qualified name
classification = Classifications.retrieve_by_name("Certification")
# Get by name with fields
classification = Classifications.retrieve_by_name(
"Certification",
fields=["owners"]
)
{
"id": "06d90883-6be9-4f7e-9475-753f10a95e94",
"name": "Certification",
"fullyQualifiedName": "Certification",
"description": "Certifying Data Asset will provide the users with a clear idea of...",
"version": 0.1,
"updatedAt": 1769982619610,
"updatedBy": "admin",
"deleted": false,
"owners": [],
"provider": "system",
"mutuallyExclusive": true
}
Returns
Returns a classification object with all requested fields populated.
Response
Unique identifier for the classification (UUID format).
Fully qualified name of the classification.
Human-readable display name.
Description of the classification in Markdown format.
Whether tags in this classification are mutually exclusive.
Provider: user or system.
List of owners. Only included when fields contains owners.
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 classification |
404 | NOT_FOUND | Classification with given ID or FQN does not exist |