Retrieve a Domain
Get a single domain by its unique ID or fully qualified name.
Get by ID
UUID of the domain to retrieve.
Comma-separated list of fields to include (e.g., owners,children,experts).
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
Get by Fully Qualified Name
Use GET /v1/domains/name/{fqn} to retrieve by fully qualified name.
Fully qualified name of the domain (e.g., TestDomain or Engineering.DataPlatform).
Comma-separated list of fields to include: owners, children, experts.
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
from metadata.sdk import configure
from metadata.sdk.entities import Domains
configure(
host="https://your-company.getcollate.io/api",
jwt_token="your-jwt-token"
)
# Get by ID
domain = Domains.retrieve("a0729e98-e946-4e25-acde-10e8a2294ba1")
print(f"{domain.fullyQualifiedName}: {domain.domainType}")
# Get by ID with fields
domain = Domains.retrieve(
"a0729e98-e946-4e25-acde-10e8a2294ba1",
fields=["owners", "children", "experts"]
)
# Get by fully qualified name
domain = Domains.retrieve_by_name("TestDomain")
# Get by name with fields
domain = Domains.retrieve_by_name(
"TestDomain",
fields=["owners", "children", "experts"]
)
{
"id": "a0729e98-e946-4e25-acde-10e8a2294ba1",
"domainType": "Aggregate",
"name": "TestDomain",
"fullyQualifiedName": "TestDomain",
"description": "Lorem ipsum...",
"version": 0.1,
"updatedAt": 1769984330261,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/domains/a0729e98-e946-4e25-acde-10e8a2294ba1",
"deleted": false,
"owners": [],
"children": []
}
Returns
Returns a domain object with all requested fields populated.
Response
Unique identifier for the domain (UUID format).
Fully qualified name of the domain.
Human-readable display name.
Description of the domain in Markdown format.
Type of domain: Source-aligned, Consumer-aligned, or Aggregate.
List of owners. Only included when fields contains owners.
Child domain references. Only included when fields contains children.
Subject matter experts. Only included when fields contains experts.
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 domain |
404 | NOT_FOUND | Domain with given ID or FQN does not exist |