Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Instance

List Custom Domains

Lists Custom Domains of the instance.

By default the instance will be determined by the context of the request, e.g. the host header. You can optionally pass an InstanceID to list the domains of a specific instance. This requires additional permissions.

Required permissions:

  • iam.read
  • system.instance.read (if InstanceID is set)
POST
/zitadel.instance.v2.InstanceService/ListCustomDomains

Header Parameters

Connect-Protocol-Version*1

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?Connect-Timeout-Ms

Define the timeout, in ms

Request Body

application/json
  1. body
instanceId?instance_id

InstanceID is the unique ID of the instance whose domains will be listed. If not set, the instance in the current context (e.g. identified by the host header) will be used. If an ID is set, the caller must have additional permissions.

pagination?

Paginate and sort the results using a limit, offset and sorting.

sortingColumn?sorting_column

The field the result is sorted by.

Value in"DOMAIN_FIELD_NAME_UNSPECIFIED""DOMAIN_FIELD_NAME_DOMAIN""DOMAIN_FIELD_NAME_PRIMARY""DOMAIN_FIELD_NAME_GENERATED""DOMAIN_FIELD_NAME_CREATION_DATE"
filters?array<||>

Filter the domains to be returned.

Response Body

Success

application/json
  1. response
domains?array<>

The list of Custom Domains matching the query.

pagination?

Contains the total number of domains matching the query and the applied limit.

Example Request
curl -X POST 'https://example.com/zitadel.instance.v2.InstanceService/ListCustomDomains' \  -H 'Connect-Protocol-Version: 1' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "domains": [    {      "instanceId": "string",      "creationDate": "2023-01-15T01:30:15.01Z",      "domain": "string",      "primary": true,      "generated": true    }  ],  "pagination": {    "totalResult": 0,    "appliedLimit": 0  }}

Was this page helpful?