Features/Pages

Pages

Agent deploys HTML. Live URL. Preview drafts, rollback with one click.

Updated March 2026

Deploy static HTML pages through the API. Landing pages, microsites, campaign pages, portfolios — anything that is HTML and CSS. No build step, no deploy pipeline, no hosting to manage. Your agent creates a page and it is immediately live at a public URL. Preview unpublished drafts via private URLs, and roll back to a previous version instantly. The web runtime for agents.

What it does

  • Deploy any HTML + CSS via a single POST request
  • Every page gets a public URL at /p/:slug — live instantly
  • Custom subdomains — serve pages at alice.sutrena.com (all plans)
  • Custom domains — point your own domain at your pages (Pro+)
  • Upload static assets (images, fonts, JS) to CDN via presigned URLs
  • Full HTML control. No templates forced on you. No restrictions on markup
  • Update pages in place — PUT to change HTML, CSS, title, or published status
  • Slug-based routing — alice.sutrena.com/about serves the page with slug 'about'
  • Root path — alice.sutrena.com/ serves the page with slug 'index'
  • Unpublish without deleting — toggle isPublished to hide a page
  • Scheduled publishing — set publishAt to auto-publish a page at a future time
  • Zip site deployment — upload Astro, Hugo, Next.js static export as a zip, live in one call
  • Page entries — server-rendered dynamic content via {{placeholder}} templates
  • Raw content types — serve robots.txt, sitemap.xml, manifest.json as raw files
  • Batch page creation — create up to 200 pages in a single API call with content-hash diffing
  • Automatic snapshots on every content update
  • One-click rollback to previous version
  • Preview URLs for unpublished drafts

How it works

curl -X POST https://sutrena.com/api/pages \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "slug": "launch",
    "title": "We are launching",
    "html": "<div class=\"hero\"><h1>Something new is coming</h1><p>Sign up to find out first.</p></div>",
    "css": ".hero { max-width: 600px; margin: 80px auto; font-family: system-ui; }"
  }'

# Returns: { "data": { "url": "/p/launch", "slug": "launch" } }
# Page is live immediately at sutrena.com/p/launch

One POST with HTML and optional CSS. The page is live at a public URL before your next line of code runs.

What it does not do

Static pages only. No server-side rendering, no database queries, no dynamic content. If you need a full web app, this is not it. If you need a page that exists on the internet and looks the way you want it to look, this works.

FAQ

Can I use my own domain for pages?

Yes. All plans get custom subdomains (alice.sutrena.com). Pro and above can add custom domains (mysite.com) with automatic SSL. Point a CNAME to cname.sutrena.com and it works.

What is the size limit for pages?

512KB for HTML, 128KB for CSS. For images and other assets, upload them separately via the assets API and reference the CDN URL in your HTML. Asset size limits depend on your plan (2MB on free, up to 50MB on Scale).

Can I upload images and other files?

Yes. POST to /api/pages/assets with the filename and content type. You get a presigned upload URL and a public CDN URL. Upload the file, use the CDN URL in your HTML. Storage limits per plan: 20MB free, 2GB Pro, unlimited Scale.

How do I update a page after deploying it?

PUT /api/pages/:id with the new HTML, CSS, or title. The page updates immediately. The slug stays the same, so the URL does not change. Sutrena automatically saves a snapshot of the previous version, so you can roll back with POST /api/pages/:id/rollback if anything goes wrong.

What is Sutrena?

Sutrena is the web runtime for AI agents. Forms, Pages, Analytics, Webhooks, Automations — all through 67 MCP tools and one REST API. Your agent creates web artifacts, humans interact with them, and your agent gets the data back. Use any one feature or all of them together.

Pages

Deploy HTML instantly

Forms

Collect structured data

Automations

DSL-based pipelines with 14 step types

Analytics

Privacy-first, no cookies

Webhooks

Slack, Discord, Telegram

Get started in two API calls

1. Get a trial key (no auth, no signup)

curl -X POST https://sutrena.com/api/trial

2. Create anything — a page, form, automation, or analytics site

# Create a form
curl -X POST https://sutrena.com/api/forms \
  -H "Authorization: Bearer st_trial_xxx" \
  -H "Content-Type: application/json" \
  -d '{"name": "waitlist", "fields": [{"name": "email", "label": "Email", "type": "email", "required": true}]}'

# Or deploy a page
curl -X POST https://sutrena.com/api/pages \
  -H "Authorization: Bearer st_trial_xxx" \
  -H "Content-Type: application/json" \
  -d '{"slug": "index", "title": "My Site", "html": "<h1>Live</h1>"}'

Ready to build?

Get a trial API key instantly with no signup, or create an account for the full experience.

Pages — Deploy Static HTML via API | Sutrena | Sutrena