Typescript (SDK)
Sites
Create site
Creates an additional AI site under the current account. Refuses if the proposed subdomain is taken.
POST
Typescript (SDK)
Authorizations
API key in the format: Bearer {api_token}
Body
application/json
Build brief describing the storefront to generate — brand, what you're selling, and the look and feel. Kicks off an AI build. Required unless repository is given.
Optional "owner/repo" of an existing GitHub repository (reached through a connected GitHub App installation) to start the site from instead of generating a fresh one. When set, prompt is optional and only tells the agent what to adapt.
Available options:
public, account, admins_only, me_only Response
AI site created
Available options:
public, account, admins_only, me_only 
