Horizons: Websites

Publish website

Publish a Hostinger Horizons website so its latest changes go live.\n Use this tool when the user asks to publish, deploy or make their website live.\n This tool starts the publish process and returns the URL the website will be live on. Publishing happens asynchronously and takes a few minutes.\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that the website is being published and you should provide the published URL to the user immediately.

post/api/horizons/v1/websites/{websiteId}/publish

Path parameters

websiteIdstring required
Example:123e4567-e89b-12d3-a456-426614174000

The website ID

Response

Success response

status'publishing' required

Always publishing - the build runs asynchronously after this response

published_urlstring required

The URL the published website will be live on in a few minutes

website_urlstring required

The website URL for the user to track progress in Hostinger Horizons interface

website_idstring required

The website ID

Example response

{
  "status": "publishing",
  "published_url": "https://palegreen-dragonfly-303128.hostingersite.com",
  "website_url": "https://horizons.hostinger.com/123e4567-e89b-12d3-a456-426614174000?location=chatgpt",
  "website_id": "123e4567-e89b-12d3-a456-426614174000"
}

Changes

Changed in 1 of the 117 revisions of this API.1