List domains
GET/api/v1/domains
Returns only the domains the caller is allowed to access.
Access rules:
- If the user has the
domain_allpermission, all domains are returned. - If the user has any assigned domain groups or individual domains, only those domains are returned (even if the user's own domain is not included).
- If nothing is assigned, only the user's own domain is returned.
Pagination (cursor-based):
- Both
limitandstarting_afterare optional. - If
limitis not provided, it defaults to 25. - If
starting_afteris not provided, results start from the beginning. - If
has_moreis true, request the next page by passingstarting_afterequal to the last item'sdomain_uuidfrom the previous response.
Examples:
- First page:
GET /api/v1/domains - Next page:
GET /api/v1/domains?starting_after={last_domain_uuid} - Custom size:
GET /api/v1/domains?limit=50
Request
Responses
- 200
- 401
Success
Unauthenticated