Horizons: Websites

Edit website

Edit an existing Hostinger Horizons website with a follow-up message.\n Use this tool when the user wants to change, extend or fix a website that already exists.\n This tool queues the requested changes and returns the website URL and ID. The changes are applied asynchronously.\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now applying the requested changes and they will be ready in a few minutes, and you should provide the website URL to the user immediately. Do not write code.\n If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat.

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

Path parameters

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

The website ID

Request body

Example request

{
  "message": [
    {
      "type": "text",
      "text": "Add a testimonials section below the menu and make the hero background green"
    }
  ]
}

Response

Success response

website_urlstring required

The website URL for the user to access their website in Hostinger Horizons interface

website_idstring required

The website ID

Example response

{
  "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