Domains
Custom domains can be used to give your deployments a unique URL.
List an organization's domains
/v1/organizations/{organizationId}/domains
Link
header of the response.Parameters
Name | Type | Description |
---|---|---|
page | integer | |
limit | integer | |
organizationId (required) | string (uuid) | Organization ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | The ID of the domain. |
organizationId | string (uuid) | The ID of the organization that the domain is associated with. |
domain | string | The domain value. |
token | string | |
isValidated | boolean | Whether the domain's ownership is validated or not. |
certificates | array | TLS certificates for the domain. |
provisioningStatus | undefined | |
projectId | string (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. |
createdAt | string (date-time) | |
updatedAt | string (date-time) | |
dnsRecords | array | These records are used to verify the ownership of the domain. |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Add a domain to an organization
/v1/organizations/{organizationId}/domains
Parameters
Name | Type | Description |
---|---|---|
organizationId (required) | string (uuid) | Organization ID |
Request Body (JSON)
Name | Type | Description |
---|---|---|
domain | string |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | The ID of the domain. |
organizationId | string (uuid) | The ID of the organization that the domain is associated with. |
domain | string | The domain value. |
token | string | |
isValidated | boolean | Whether the domain's ownership is validated or not. |
certificates | array | TLS certificates for the domain. |
provisioningStatus | undefined | |
projectId | string (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. |
createdAt | string (date-time) | |
updatedAt | string (date-time) | |
dnsRecords | array | These records are used to verify the ownership of the domain. |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Get a domain by ID
/v1/domains/{domainId}
Parameters
Name | Type | Description |
---|---|---|
domainId (required) | string (uuid) | Domain ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | The ID of the domain. |
organizationId | string (uuid) | The ID of the organization that the domain is associated with. |
domain | string | The domain value. |
token | string | |
isValidated | boolean | Whether the domain's ownership is validated or not. |
certificates | array | TLS certificates for the domain. |
provisioningStatus | undefined | |
projectId | string (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. |
createdAt | string (date-time) | |
updatedAt | string (date-time) | |
dnsRecords | array | These records are used to verify the ownership of the domain. |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Associate a domain with a deployment
/v1/domains/{domainId}
Parameters
Name | Type | Description |
---|---|---|
domainId (required) | string (uuid) | Domain ID |
Request Body (JSON)
Name | Type | Description |
---|---|---|
deploymentId (nullable) | object |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Delete a domain
/v1/domains/{domainId}
Parameters
Name | Type | Description |
---|---|---|
domainId (required) | string (uuid) | Domain ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Verify a domain
/v1/domains/{domainId}/verify
Parameters
Name | Type | Description |
---|---|---|
domainId (required) | string (uuid) | Domain ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Upload TLS certificate for a domain
/v1/domains/{domainId}/certificates
Parameters
Name | Type | Description |
---|---|---|
domainId (required) | string (uuid) | Domain ID |
Request Body (JSON)
Name | Type | Description |
---|---|---|
privateKey | string | The PEM encoded private key for the TLS certificate |
certificateChain | string | The PRM encoded certificate chain for the TLS certificate |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Provision TLS certificates for a domain
/v1/domains/{domainId}/certificates/provision
Parameters
Name | Type | Description |
---|---|---|
domainId (required) | string (uuid) | Domain ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |