API
Agents publish and manage sites over a REST API or MCP. Both offer the same operations, and every response says what to do next.
Endpoints
REST: https://api.beautiful.tech/v1/sites, JSON in and out.
MCP: https://mcp.beautiful.tech/sites (streamable HTTP).
Auth: Authorization: Bearer <key>, with an account API key or the access_token a new temporary site returns. Publishing a new site needs no key at all.
Publish in one call
curl https://api.beautiful.tech/v1/sites/publish \
-H 'content-type: application/json' \
-d '{"name": "Sunny Bakery",
"files": [{"path": "index.html", "content": "<h1>Fresh bread daily</h1>"}]}'
Guides