API Documentation

Use the ShiftStack API to build on top of AI website generation.

Authentication

All API requests require a Bearer token in the Authorization header. Get your API key from Dashboard → API Keys.

Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx

Rate limits:

• Free plan: 10 requests/day

• Starter: 100 requests/day

• Pro: 1,000 requests/day

• Agency: Unlimited

Endpoints

GET/api/v1/websitesList all websites in your account

Example

curl https://app.shiftstackapp.com/api/v1/websites \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{ "websites": [...], "count": 5 }
POST/api/v1/websitesGenerate a new website from a prompt

Parameters

promptstringrequiredDescription of the website to build
namestringOptional name for the project

Example

curl -X POST https://app.shiftstackapp.com/api/v1/websites \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "A landing page for a coffee shop"}'

Response

{ "website": { "id": "...", "name": "...", "status": "draft" } }

JavaScript SDK

Use our JavaScript SDK for easier integration.

<script src="https://app.shiftstackapp.com/sdk/shiftstackapp.js"></script>
<script>
  const ss = new ShiftStack('YOUR_API_KEY');

  // List websites
  const { websites } = await ss.listWebsites();

  // Generate a website
  const { website } = await ss.generateWebsite('A landing page for my bakery');

  // Publish it
  await ss.publishWebsite(website.id);
</script>