ZITADEL Docs
APIsCore ResourcesV2Organization

ListOrganizationDomains

List Organization Domains

Returns the list of registered domains of an organization. The domains are used to identify to which organization a user belongs.

Required permission:

  • org.read
POST
/v2/organizations/{organization_id}/domains/search

Path Parameters

organization_id*string

OrganizationID is the unique identifier of the organization from which the domains are to be listed.

Request Body

application/json

pagination?

List limitations and ordering.

filters?

Filters define the criteria to query for.

sortingColumn?string

SortingColumn is the field the result is sorted by. Beware that if you change this, your result pagination might be inconsistent.

Value in"DOMAIN_FIELD_NAME_UNSPECIFIED" | "DOMAIN_FIELD_NAME_NAME" | "DOMAIN_FIELD_NAME_CREATION_DATE"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/v2/organizations/string/domains/search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "pagination": {
    "totalResult": 0,
    "appliedLimit": 0
  },
  "domains": [
    {
      "organizationId": "string",
      "domain": "string",
      "isVerified": true,
      "isPrimary": true,
      "validationType": "DOMAIN_VALIDATION_TYPE_UNSPECIFIED"
    }
  ]
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?