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

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…

Clone website

post

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
websiteIdstringRequired

The website ID

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

Success response

application/json
website_urlstringRequired

The website URL for the user to access their website 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}/clone
POST /api/horizons/v1/websites/{websiteId}/clone HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "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?