Skip to content
Coritan Docs

Client API: Deployments: Domains

The 4 Client API operations for domains.

View as Markdown

Part of Deployments.

GET /api/v1/client/deployments/{deployment_uuid}/domains

The deployment's domains: its platform name first, then its custom domains, each saying whether it is verified and whether its certificate is issued; an unverified one carries the TXT record in verification. limits.custom_domains is how many custom domains it may have: none for a template, whose addresses are its servers'.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
deployment_uuid path string (uuid) yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

POST /api/v1/client/deployments/{deployment_uuid}/domains

Add a custom domain. It gets no route until the TXT record in verification is published and checked.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
deployment_uuid path string (uuid) yes

application/json (required)

Field Type Required
hostname string yes
Status Meaning
201 Success.
422 The request is not valid. detail lists each problem.

DELETE /api/v1/client/deployments/{deployment_uuid}/domains/{hostname}

Remove a custom domain: the hostname stops reaching the deployment, and its route and certificate are deleted. The platform name cannot be removed (409 platform_domain).

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
deployment_uuid path string (uuid) yes
hostname path string yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Look for the domain's TXT record (outside any transaction)

Section titled Look for the domain's TXT record (outside any transaction)

POST /api/v1/client/deployments/{deployment_uuid}/domains/{hostname}/verify

Look for the domain's TXT record (outside any transaction). Found: the domain is verified, its route is created and, once instances serve it, its certificate ordered.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
deployment_uuid path string (uuid) yes
hostname path string yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.