Base URL
All API requests should be made to this base URL with the appropriate endpoint path.
Authentication
All API requests require authentication using API keys. Include these headers with every request:
Getting Your API Keys
- Go to chilledsites.com and sign in to your account
- Click your profile avatar (bottom-left circular button)
- Click "Settings" in the dropdown menu
- Click the "API Keys" tab
- Click "Generate New API Key"
- Enter a name and select permissions (Read, Write, Deploy)
- Click "Create API Key"
- Copy and save both credentials (shown only once!)
Need detailed help? Check the step-by-step setup guide with screenshots.
Security Best Practices
- Never commit API keys to version control
- Use environment variables to store credentials
- Rotate keys regularly for security
- Use different keys for development and production
Response Format
All endpoints return standardized JSON responses with consistent structure.
Success Response
Error Response
/v1/generate
Generate Website
Create a new website from a text prompt using AI. This is the core endpoint for generating websites.
Request Body
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
prompt |
string | Yes | Description of website to generate |
agentType |
string | No | Type: website, landing, pwa, react, dashboard, portfolio |
creativeBrief |
string | No | Brand guidelines, tone, messaging |
designSelections |
object | No | Colors, fonts, layout preferences |
Response
Token Cost & Rate Limits
- Token Cost: 500-1,000 tokens per generation
- Free Tier: 10 generations/hour
- Pro Tier: 100 generations/hour
/v1/websites
List Websites
Retrieve all websites for the authenticated user.
Response
/v1/websites/{website_id}
Get Website
Retrieve a specific website with full HTML, CSS, and JavaScript code.
Path Parameters
website_id (string, required) - UUID of the website
Response
/v1/websites/{website_id}
Update Website
Update website code or metadata. All fields are optional - only include the fields you want to change.
Request Body
All parameters are optional. Include only the fields you want to update.
/v1/websites/{website_id}
Delete Website
Permanently delete a website. This action cannot be undone.
Warning: Permanent Action
Deleting a website is permanent and cannot be undone. All code, deployments, and data will be lost.
Response
/v1/websites/{website_id}/deploy
Deploy Website
Deploy a website to ChilledSites hosting. Your site will be live at a .chilledsites.com subdomain.
Request Body
The subdomain parameter is optional. If not provided, it defaults to your website name.
Response
Your Website is Live!
After deployment, your website is immediately accessible at the returned URL. SSL certificates are automatically provisioned.
/v1/user/tokens
Get Token Balance
Check your current token balance and usage statistics.
Response
Rate Limits
API usage is limited based on your subscription tier to ensure fair usage and platform stability.
| Operation | Free Tier | Pro Tier | Enterprise |
|---|---|---|---|
| Website Generation | 10/hour | 100/hour | Unlimited |
| Read Operations | 1,000/hour | 10,000/hour | Unlimited |
| Write Operations | 500/hour | 5,000/hour | Unlimited |
| Deploy | 50/hour | 500/hour | Unlimited |
Rate Limit Headers
Every API response includes rate limit information in the headers:
Rate Limit Exceeded Response
Common Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED |
401 | Invalid or missing API credentials |
FORBIDDEN |
403 | API key lacks required permissions |
NOT_FOUND |
404 | Resource doesn't exist |
INVALID_REQUEST |
400 | Missing or invalid parameters |
INSUFFICIENT_TOKENS |
402 | Not enough tokens for operation |
RATE_LIMIT_EXCEEDED |
429 | Too many requests |
INTERNAL_ERROR |
500 | Server error |
Code Examples
cURL
Generate a Website
Get a Website
Deploy a Website