For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Publish website

post

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
websiteIdstringRequired

The website ID

Example: 123e4567-e89b-12d3-a456-426614174000
Responses
200

Success response

application/json
statusstring · enumRequired

Always publishing - the build runs asynchronously after this response

Example: publishingPossible values:
published_urlstringRequired

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

Example: https://palegreen-dragonfly-303128.hostingersite.com
website_urlstringRequired

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

Example: https://horizons.hostinger.com/123e4567-e89b-12d3-a456-426614174000?location=chatgpt
website_idstringRequired

The website ID

Example: 123e4567-e89b-12d3-a456-426614174000
post/api/horizons/v1/websites/{websiteId}/publish
POST /api/horizons/v1/websites/{websiteId}/publish HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "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"
}

Last updated

Was this helpful?