Skip to content

List custom domains

GET/v1/deployments/{uid}/custom-domains

Returns the custom domains attached to the deployment, with their verification status.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The deployment's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The deployment's custom domains.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the custom domain.

deployment_uidstring

UID of the deployment the domain is attached to.

domain_namestringRequired

The custom domain.

statusstringRequired

pending until verified and routed, active once traffic is served, failed when DNS verification failed (see last_error).

One ofpendingverifiedactivefailed

verification_txtstringRequired

Value to publish in a TXT record at rumpty-challenge.<domain_name>.

last_errorstring

Reason for the last failure. Omitted when there is none.

created_atstring (date-time)Required

When the domain was added.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The resource does not exist or you cannot access it.

Errors use the standard error format.