ZITADEL Docs
APIsCore ResourcesV1Instance Lifecycle

ListDomains

List Domains

Deprecated: use instance service v2 ListCustomDomains instead.

Returns the Custom Domains of an instance.

POST
/instances/{instance_id}/domains/_search

Path Parameters

instance_id*string

list limitations and ordering

Request Body

application/json

query?
sortingColumn?string

the field the result is sorted

Value in"DOMAIN_FIELD_NAME_UNSPECIFIED" | "DOMAIN_FIELD_NAME_DOMAIN" | "DOMAIN_FIELD_NAME_PRIMARY" | "DOMAIN_FIELD_NAME_GENERATED" | "DOMAIN_FIELD_NAME_CREATION_DATE"
queries?

criterias the client is looking for

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/instances/string/domains/_search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "totalResult": 0,
    "processedSequence": 0,
    "viewTimestamp": "1s"
  },
  "sortingColumn": "DOMAIN_FIELD_NAME_UNSPECIFIED",
  "result": [
    {
      "details": {
        "sequence": 0,
        "creationDate": "1s",
        "changeDate": "1s",
        "resourceOwner": "string"
      },
      "domain": "string",
      "primary": true,
      "generated": true
    }
  ]
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?