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 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.
API Token authentication
The website ID
123e4567-e89b-12d3-a456-426614174000Success response
The website URL for the user to access their website 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}/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?