Answers/How do I deploy an HTML page via API?

How do I deploy an HTML page via API?

Updated March 2026

POST /api/pages with slug, title, and html. You get a live URL at your subdomain (e.g. alice.sutrena.com/my-page).

The response includes both a pageUrl (/p/slug) and a subdomainUrl. Always show users the subdomain URL — it looks professional and is the canonical address.

Pages are published by default. No build step, no Git push, no framework. Your HTML is served as-is. Include inline CSS, images via CDN URL, and any static content.

Max HTML: 512KB. Max CSS: 128KB. Pages count toward your project quota (Free: 10, Builder: 50, Pro: 200, Scale: unlimited).

Update anytime with PUT /api/pages/:id. The URL stays the same. Delete with DELETE /api/pages/:id.

curl -X POST https://sutrena.com/api/pages \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug": "hello", "title": "Hello World", "html": "<h1>Hello</h1><p>Deployed via API.</p>"}'

Ready to build?

Get a trial API key instantly — no signup required.

How do I deploy an HTML page via API? — Sutrena | Sutrena