Skip to main content
POST
TypeScript

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

create:my_org:domains
OAuth2ClientCredentials

Create domain for organization

create:my_org:domains
OAuth2AuthCode

Create domain for organization

Body

application/json
domain
string
required

Domain name.

Pattern: ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$

Response

Domain successfully created for organization.

id
string
required
read-only

Organization domain identifier.

Pattern: ^ord_[A-Za-z0-9]{22}$
org_id
string
required
read-only

Organization identifier.

Pattern: ^org_[A-Za-z0-9]{16}$
domain
string
required

Domain name.

Pattern: ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$
status
enum<string>
required

Organization domain status.

Available options:
failed,
pending,
verified
verification_txt
string
required

Value used to verify the domain.

verification_host
string
required

Stores the full domain where the TXT record should be added.

identity_provider_association
enum<string>
read-only

Whether an identity provider in this organization is associated with the domain, independent of the domain's status. associated: an identity provider has the domain. unassociated: no identity provider has it. A domain should only be associated when status is verified.

Available options:
associated,
unassociated