Skip to main content
POST
cURL
Publish a static website from a single .html file or a .zip archive. The published site must include index.html at the deploy root.
Paste your API key in the Authorization field as Bearer {api_key}.
string
required
Must be static.
string
required
Display name of the static site (max 128 characters).
file
required
Upload .html (stored as index.html) or .zip with a deployable index.html at the site root.
string
Custom alias. Leave empty for a random one.
integer
Domain id. Use 0 for the main domain.
integer
Project id owned by the authenticated user.
boolean
Enable the site. Defaults to 1.
string
Optional visitor password (max 64 characters).
cURL