ZITADEL Docs
APIsCore ResourcesV2Organization

AddOrganizationDomain

Add Organization Domain

Add a new domain to an organization. The domains are used to identify to which organization a user belongs.

Required permission:

  • org.write
POST
/v2/organizations/{organization_id}/domains

Path Parameters

organization_id*string

OrganizationID is the unique identifier of the organization to which the domain is to be added.

Request Body

application/json

domain*string

Domain is the full qualified domain name to be added to the organization. Note that the domain has to be unique across the instance. Depending on the settings, you might have to verify the domain before it can be used.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/v2/organizations/string/domains" \  -H "Content-Type: application/json" \  -d '{    "domain": "string"  }'
{
  "creationDate": "1s"
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?