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 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.
API Token authentication
The website ID
123e4567-e89b-12d3-a456-426614174000Success response
Always publishing - the build runs asynchronously after this response
publishingPossible values: The URL the published website will be live on in a few minutes
https://palegreen-dragonfly-303128.hostingersite.comThe website URL for the user to track progress in Hostinger Horizons interface
https://horizons.hostinger.com/123e4567-e89b-12d3-a456-426614174000?location=chatgptThe website ID
123e4567-e89b-12d3-a456-426614174000Unauthenticated response
Error response
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?