Set custom domain
Attach a custom hostname on a managed Vee3 domain to a hosted static website.
← All Pages endpoints · Capability overview
/v1/pages/{page_id}/custom-domainhttps://api.vee3.io/v1/pages/{page_id}/custom-domain
Attach a custom hostname on a managed Vee3 domain to a hosted static website.
Authorization
Send your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
MCP
The same capability is available as an MCP tool on Vee3 hosted MCP.
Tool name
pages.set_custom_domainParameters2 fields
page_idstringRequiredPage id to attach the custom domain to.
custom_domainstringRequiredHostname to attach, such as www.example.com or example.com. Must be on a domain this Vee3 account already manages. At most 253 characters.
max length 253
Response11 fields
page_idstringUnique identifier for the page.
namestringDisplay name for the page, if set.
slugstringPage slug.
statusstringCurrent page status.
urlstringPublic HTTPS URL for the page. Uses the custom domain when one is attached.
hostnamestringPreview hostname ({slug}.vee3.site). Always present, including when a custom domain is attached.
custom_domainstringCustom hostname attached to the page, if any.
messagestringNote that DNS and TLS can take several minutes to become available, and sometimes up to about 30 minutes.
created_atstringWhen the page was created.
updated_atstringWhen the page record was last updated.
last_deployed_atstringWhen files were last deployed to the page.
HTTP errors: unauthorized, validation_error, insufficient_tokens, payment_required, page_not_found, page_custom_domain_not_managed, page_custom_domain_taken, page_custom_domain_not_allowed, dns_not_using_namecheap