ZITADEL Docs
APIsCore ResourcesV1Instance Objects

AddCustomDomainPolicy

POST
/orgs/{org_id}/policies/domain

Path Parameters

org_id*string

Request Body

application/json

userLoginMustBeDomain?boolean

the username has to end with the domain of its organization (uniqueness is organization based)

validateOrgDomains?boolean
smtpSenderAddressMatchesInstanceDomain?boolean
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/orgs/string/policies/domain" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?