Skip to content
Hoody.com

The Realms endpoints let you enumerate the realm identifiers attached to your resources for multi-tenant isolation. A realm is a 24-character hexadecimal string that groups projects, containers, servers (accessed through pools), and auth tokens into a tenant boundary. Use these endpoints when you need to discover which realms your account spans, or when you want to attach usage counters to each realm for inventory or billing reconciliation.

Returns the deduplicated set of 24-hex realm identifiers found across your projects, containers, servers (via pool memberships), and auth tokens. The calling token must hold the resources.realms permission.

GET /api/v1/realms/

NameInTypeRequiredDescription
include_usagequerybooleanNoInclude resource counts per realm_id (projects, containers, servers, auth_tokens). When true, the response data includes a usage object keyed by realm_id. Default: false

This endpoint takes no request body.

{
"statusCode": 200,
"message": "Realm IDs retrieved successfully",
"data": {
"realm_ids": [
"507f1f77bcf86cd799439011",
"507f1f77bcf86cd799439012"
],
"total": 2
}
}

When include_usage=true, each data.realm_ids entry is mirrored in data.usage with its projects, containers, servers, and auth_tokens counts.

List realm IDs without usage counts:

Terminal window
curl -X GET 'https://api.hoody.com/api/v1/realms/' \
-H 'Authorization: Bearer <token>'

List realm IDs with usage counts:

Terminal window
curl -X GET 'https://api.hoody.com/api/v1/realms/?include_usage=true' \
-H 'Authorization: Bearer <token>'