POST /sites with a prompt, Crevio kicks off an AI build, and you poll a Task until the site is live at a *.crevio.app subdomain. From there the API exposes the whole platform surface around the site: visitor analytics, the site’s own database, encrypted secrets (env vars), custom domains, and deployment history.
Sites use the site_ prefix and have the object type site.
Build a site from a prompt
Theprompt is a build brief — describe the brand, what you sell, and the look and feel. Crevio’s engineering agent turns it into a real codebase and deploys it. The response comes back immediately with a build_task_id you poll to watch the build.
The site is created instantly, but
is_live is false until the AI build finishes. The build runs as a Task — that’s what build_task_id is for.Poll the build task
A build is anengineering agent Task. Poll it until its status settles, then check the site’s is_live.
Start from an existing GitHub repo
Already have a codebase? Passrepository (an owner/repo you’ve connected) instead of a prompt. Crevio mounts that repo as the site’s workspace, so the engineering agent — and your build/deploy pipeline — work directly against your code.
prompt is required unless you provide repository. One or the other must be present.Access modes and visibility
access_mode controls who can reach the deployed site. Gating is enforced at the edge, not just in the app.
access_mode | Who can view the site |
|---|---|
public | Anyone with the URL (the default for websites) |
account | Signed-in members of your account |
admins_only | Account admins only |
me_only | Just you — useful while a build is in progress |
show_referral_badge flag toggles the “Powered by Crevio” badge. It defaults to on for all plans.
Custom domains
A new site lives athttps://<subdomain>.crevio.app. To put it on your own domain, attach one — either bought through Crevio or one you already own — then verify it. The full purchase-and-attach flow lives in Domains; the short version:
domain and domain_verified fields update.
The platform surface around a site
Beyond the website itself, each site exposes the operational tooling Crevio runs on its behalf.Site analytics
Pull visitor and traffic analytics for a site.Site database
Sites get a real database. Inspect the schema and run read queries through the API — handy for letting an agent answer “how many signups this week?” without leaving Crevio.Site secrets (encrypted env vars)
Sites need API keys and config — Stripe keys, a third-party token, a feature flag. Store them as encrypted secrets that are injected into the deployed worker as environment variables. Values are write-once-readable: list shows masked values, and you reveal a single secret explicitly. A secret takes aname (required), a value (required), and an optional description. The name must be uppercase letters, digits, and underscores, and cannot start with a digit.
Deployments
Every build and redeploy is recorded. List deployment history to see what’s live, building, or failed.Next steps
Domains
Buy a domain and attach it to your site.
Tasks
Understand the Task you poll while a site builds.
Webhooks
Get notified when a build completes instead of polling.
Usage & credits
See how AI builds and deploys draw down credits.

