Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Organization

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*organization_id

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

Request Body

application/json
  1. body
domain*domain

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.

Response Body

Success

application/json
  1. response
creationDate?creation_date

CreationDate is the timestamp when the Organization Domain was created.

Formatdate-time
Example Request
curl -X POST 'https://example.com/v2/organizations/string/domains' \  -H 'Content-Type: application/json' \  -d '{  "domain": "string"}'
Example Response200
{  "creationDate": "2023-01-15T01:30:15.01Z"}

Was this page helpful?