Skip to content

List custom domains

GET/v1/vms/{uid}/domains

Returns the custom domains attached to the VM, 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 VM'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 VM'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.

vm_uidstring

UID of the VM the domain is attached to.

vm_app_uidstring

Deprecated. Same value as vm_uid (it holds the VM's UID, not a VM app's). Use vm_uid.

domain_namestringRequired

The custom domain.

statusstringRequired

pending until verified and routed, active once traffic is served, failed when DNS verification or routing 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
400The request was malformed or failed validation.
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.