Skip to main content

Domains

Custom domains can be used to give your deployments a unique URL.

List an organization's domains

GET/v1/organizations/{organizationId}/domains
Get a list of domains associated with an organization. Links to the first, last, next, and previous pages of results are found in the Link header of the response.
Parameters
NameTypeDescription
pageinteger
limitinteger
organizationId (required)string (uuid)

Organization ID

Responses
Response Type

application/json

Response Properties
NameTypeDescription
idstring (uuid)

The ID of the domain.

organizationIdstring (uuid)

The ID of the organization that the domain is associated with.

domainstring

The domain value.

tokenstring
isValidatedboolean

Whether the domain's ownership is validated or not.

certificatesarray

TLS certificates for the domain.

provisioningStatusundefined
projectIdstring (uuid)

The ID of the project that the domain is associated with.

If the domain is not associated with any project, this field is omitted.

createdAtstring (date-time)
updatedAtstring (date-time)
dnsRecordsarray

These records are used to verify the ownership of the domain.

Add a domain to an organization

POST/v1/organizations/{organizationId}/domains
Add a new domain to the specified organization. Before use, added domain needs to be verified, and TLS certificates for the domain need to be provisioned.
Parameters
NameTypeDescription
organizationId (required)string (uuid)

Organization ID

Request Body (JSON)
NameTypeDescription
domainstring
Responses
Response Type

application/json

Response Properties
NameTypeDescription
idstring (uuid)

The ID of the domain.

organizationIdstring (uuid)

The ID of the organization that the domain is associated with.

domainstring

The domain value.

tokenstring
isValidatedboolean

Whether the domain's ownership is validated or not.

certificatesarray

TLS certificates for the domain.

provisioningStatusundefined
projectIdstring (uuid)

The ID of the project that the domain is associated with.

If the domain is not associated with any project, this field is omitted.

createdAtstring (date-time)
updatedAtstring (date-time)
dnsRecordsarray

These records are used to verify the ownership of the domain.

Get a domain by ID

GET/v1/domains/{domainId}
Get metadata about a domain by the given ID.
Parameters
NameTypeDescription
domainId (required)string (uuid)

Domain ID

Responses
Response Type

application/json

Response Properties
NameTypeDescription
idstring (uuid)

The ID of the domain.

organizationIdstring (uuid)

The ID of the organization that the domain is associated with.

domainstring

The domain value.

tokenstring
isValidatedboolean

Whether the domain's ownership is validated or not.

certificatesarray

TLS certificates for the domain.

provisioningStatusundefined
projectIdstring (uuid)

The ID of the project that the domain is associated with.

If the domain is not associated with any project, this field is omitted.

createdAtstring (date-time)
updatedAtstring (date-time)
dnsRecordsarray

These records are used to verify the ownership of the domain.

Associate a domain with a deployment

PATCH/v1/domains/{domainId}
With this API endpoint, you can associate or disassociate a domain with a deployment. Domain association is required in order to serve the deployment on the domain.
Parameters
NameTypeDescription
domainId (required)string (uuid)

Domain ID

Request Body (JSON)
NameTypeDescription
deploymentId (nullable)object
Responses
Empty response body

Delete a domain

DELETE/v1/domains/{domainId}
Delete a domain by the given ID.
Parameters
NameTypeDescription
domainId (required)string (uuid)

Domain ID

Responses
Empty response body

Verify a domain

POST/v1/domains/{domainId}/verify
This API endpoint triggers the ownership verification of a domain. It should be called after necessary DNS records are properly set up.
Parameters
NameTypeDescription
domainId (required)string (uuid)

Domain ID

Responses
Empty response body

Upload TLS certificate for a domain

POST/v1/domains/{domainId}/certificates
Upload TLS certificates for your domain.
Parameters
NameTypeDescription
domainId (required)string (uuid)

Domain ID

Request Body (JSON)
NameTypeDescription
privateKeystring

The PEM encoded private key for the TLS certificate

certificateChainstring

The PRM encoded certificate chain for the TLS certificate

Responses
Empty response body

Provision TLS certificates for a domain

POST/v1/domains/{domainId}/certificates/provision
Provision TLS certificates for your domain.
Parameters
NameTypeDescription
domainId (required)string (uuid)

Domain ID

Responses
Empty response body