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.htmlEndpoints
| Request | What it does |
|---|---|
| GET /api/deploy | Your account, plan and the websites the key can deploy to |
| POST /api/deploy | Deploy. JSON { html, site?, name?, subdomain?, expect_version?, force? } or a text/html body with ?site=…&name=… |
| POST /api/deploy/upload | Upload 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 (nameandsubdomainoptional). - The answer includes
url,site,createdandversion. Sendversionback asexpect_versionnext time: if the website changed on vertlio.com since, you get HTTP 409 with codechanged_on_vertlio(sendforce: trueto 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.