Skip to main content
POST
Validate a custom domain for several services

Authorizations

Authorization
string
header
required

JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '

Path Parameters

environmentId
string<uuid>
required

Environment ID

Body

application/json

The full state of a custom domain name of an environment.

domain
string
required

The domain name.

Example:

"my.domain.tld"

services
object[]
required

Every service the domain routes to, each with one / route served by its default port. Between 1 and 50 services; more than one only when the environment routing_capabilities.can_share is true.

Required array length: 1 - 50 elements
generate_certificate
boolean
default:true

Whether Qovery generates a certificate for the domain. Set it to false when a CDN or another party manages the certificate.

use_cdn
boolean
default:false

Whether the domain is behind a CDN. If true, Qovery only checks that the domain points to an IP; otherwise it checks that the domain resolves to the service load balancer.

original_domain
string | null

The current name of a domain being edited, so the rows the services hold for it are ignored. Null or absent for a new domain.

Example:

"old.domain.tld"

Response

The conflicts of the request. An empty errors list means the domain can be saved.

errors
object[]
required

Every conflict of the request. Empty when the domain can be saved.