websites
Create Website
Create a static site from HTML. The site is a draft until POST …/publish runs.
POST
Create Website
Authorizations
API key from Settings > Developer > REST API
Headers
Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.
Available options:
2026-04-12, 2026-05-01 Example:
"2026-05-01"
Body
application/json
The site's page HTML.
Required string length:
1 - 5000000Site title (defaults to 'Untitled').
Maximum string length:
255A retried call with the same key replays the stored response (replayed:true) instead of creating a second site.
Maximum string length:
200Response
Successful Response
The response is of type Response Websitescreate · object.