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

Deploy static site archive

Deploy a static application from an archive file.

Deploy static site archive

post

Deploy a static application from an archive file.

WARNING: this overwrites the website's existing contents and cannot be undone — verify this is intended before calling this endpoint.

This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website's directory.

This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use Create NodeJS build from archive instead, or Start Node.js build if the archive is already uploaded. For WordPress sites, use Import WordPress website.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
domainstringRequired

Domain name

Example: mydomain.tld
Body
archive_pathstringRequired

Relative path to the archive file from website root directory

Example: uploads/archive.zip
Responses
200

Success response

application/json
messagestringOptionalExample: Request accepted
post/api/hosting/v1/accounts/{username}/websites/{domain}/deploy
POST /api/hosting/v1/accounts/{username}/websites/{domain}/deploy HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "archive_path": "uploads/archive.zip"
}
{
  "message": "Request accepted"
}

Last updated

Was this helpful?