DocumentationTutorials

Deploy API reference

The HTTP API behind npx vertlio: deploy a website, upload photos and download a website with a deploy key, from curl or any language.

Every request needs a deploy key: Authorization: Bearer vtl_…. Base address: https://vertlio.com.

Deploy one HTML file with curl

curl -X POST "https://vertlio.com/api/deploy?site=adas-kitchen" \
  -H "Authorization: Bearer $VERTLIO_TOKEN" \
  -H "Content-Type: text/html" --data-binary @index.html

Endpoints

RequestWhat it does
GET /api/deployYour account, plan and the websites the key can deploy to
POST /api/deployDeploy. JSON { html, site?, name?, subdomain?, expect_version?, force? } or a text/html body with ?site=…&name=…
POST /api/deploy/uploadUpload a photo (multipart, field image; PNG, JPG, GIF, WebP or ICO, max 5 MB). Returns { url }
GET /api/deploy/pull?site=…A website’s pages: { site, name, version, pages: [{ slug, title, html }] }

How a deploy works

  • With site: that website is replaced and stays live; the previous version is kept as a backup.
  • Without site: a new website is created and published (name and subdomain optional).
  • The answer includes url, site, created and version. Send version back as expect_version next time: if the website changed on vertlio.com since, you get HTTP 409 with code changed_on_vertlio (send force: true to deploy anyway).
  • Several pages: send one HTML document with <vertlio-page slug="/about" title="About">…</vertlio-page> blocks between a shared <vertlio-header> and <vertlio-footer>. The vertlio command builds this for you from a folder.

Limits

  • 6 MB of website code per deploy; 30 deploys an hour per key.
  • Photos: 5 MB each, 300 a day per account.
  • Your plan’s limits apply exactly as in the dashboard (number of websites, multi-page and web apps on Pro).
Still stuck? Ask Darasimi, our assistant (the chat bubble), watch the video tutorials, or email [email protected]: a real person replies.

All documentation