DEPLOY AND MANAGE WEBSITES FROM YOUR OWN CODE
Deploy a Website With One HTTP Call
Create websites from a ZIP archive, write and read individual files, pull form entries, and move between workspaces, all with one API key. Every endpoint is documented, and a Postman collection is ready to import.
Get your API key Read the API docsREQUEST
curl -X POST https://api.static.app/v1/sites/zip \
-H "Authorization: Bearer sk_xxxx" \
-F "[email protected]"
RESPONSE
{
"status": "success",
"pid": "xxxxxxxxxx",
"slug": "example-site",
"url": "https://example-site.static.app"
}
Omit domain for a random static.app subdomain, or pass pid to update an existing website instead of creating another. Full reference.