Skip to main content
POST
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /domains/setup Description: Validates the domain, provisions a custom hostname with automatic SSL, stores it on the tenant record, and queues background monitoring of the validation/SSL status. A tenant may have only one custom domain at a time — remove the existing one first. Authorization:
  • Required role: admin or higher
Method: POST

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
domain
string
required

Fully-qualified domain to connect to this tenant's workspace, 4-253 characters.

Example:

"app.yourlabel.com"

validationMethod
enum<string>
default:txt

How ownership of the domain is proven. DNS TXT is recommended as the simplest option.

Available options:
txt,
http,
email

Response

Custom domain setup initiated

success
boolean
Example:

true

message
string
Example:

"Custom domain setup initiated"

data
object