Horizons: Websites

Clone website

Clone a Hostinger Horizons website into a new website.\n Use this tool when the user wants a copy of an existing website, for example to try out changes without touching the original.\n This tool returns the ID and URL of the newly created copy. The original website is left untouched.\n To edit the copy, use the Edit website tool with the returned website ID, or the user can open the provided website URL in Hostinger Horizons interface.

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

Path parameters

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

The website ID

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