---
title: "Deploy static site archive"
method: POST
path: "/api/hosting/v1/accounts/{username}/websites/{domain}/deploy"
tags: ["Hosting: Websites"]
---

# Deploy static site archive

`POST /api/hosting/v1/accounts/{username}/websites/{domain}/deploy`

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`.

## Path parameters

- `username` string, required
- `domain` string, required

## Request body

- HostingV1WebsitesDeployArchiveRequest
  - `archive_path` string, required — Relative path to the archive file from website root directory

## Response `200`

Success response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

## Changes

- **2026-08-19** `2d2a2dc172ed` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/hosting/v1/accounts/:username/websites/:domain/deploy/post.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
