Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Instance Objects

AddCustomDomainPolicy

POST
/admin/v1/orgs/{org_id}/policies/domain

Path Parameters

org_id*org_id

Request Body

application/json
  1. body
userLoginMustBeDomain?user_login_must_be_domain

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

validateOrgDomains?validate_org_domains
smtpSenderAddressMatchesInstanceDomain?smtp_sender_address_matches_instance_domain

Response Body

Success

application/json
  1. response
details?
Example Request
curl -X POST 'https://example.com/admin/v1/orgs/string/policies/domain' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "details": {    "sequence": 0,    "creationDate": "2023-01-15T01:30:15.01Z",    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string"  }}

Was this page helpful?