/v1/vms/{uid}/domainsReturns 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
uidstringRequiredThe VM's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The VM's custom domains.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the custom domain.
vm_uidstringUID of the VM the domain is attached to.
vm_app_uidstringDeprecated. Same value as vm_uid (it holds the VM's UID, not a VM app's). Use vm_uid.
domain_namestringRequiredThe custom domain.
statusstringRequiredpending until verified and routed, active once traffic is served, failed when DNS
verification or routing failed (see last_error).
One ofpendingverifiedactivefailed
verification_txtstringRequiredValue to publish in a TXT record at rumpty-challenge.<domain_name>.
last_errorstringReason for the last failure. Omitted when there is none.
created_atstring (date-time)RequiredWhen the domain was added.
Errors
| Status | Meaning |
|---|---|
400 | The request was malformed or failed validation. |
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The resource does not exist or you cannot access it. |
Errors use the standard error format.