API & Integrations

Everything you can do in the dashboard, you can also do through our API. Deploy from a script, hook it into CI/CD, or let an AI agent manage your sites.

API access requires Solo plan ($13/mo) or higher.

Getting your API key

  1. 1.Go to API Keys in the dashboard sidebar.
  2. 2.Click Generate New Key. Copy it right away — you won't see it again.
  3. 3.Pass it as a header in every request: x-api-key: your_key_here

Quick example: deploy a site

# Create a project
curl -X POST https://ezyhost.io/api/projects \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "my-site", "subdomain": "my-site"}'

# Upload a ZIP
curl -X POST https://ezyhost.io/api/upload/PROJECT_ID \
  -H "x-api-key: YOUR_KEY" \
  -F "files=@site.zip"

# That's it. Live at https://my-site.ezyhost.site

Main endpoints

GET/api/projects
POST/api/projects
GET/api/projects/:id
DELETE/api/projects/:id
POST/api/upload/:id
GET/api/seo/:id
POST/api/seo/:id/ai-fix
GET/api/analytics/:id
POST/api/domains/:id
POST/api/aibuilder/chat

Full API reference with request/response examples is available at ezyhost.io/skill.md.

Rate limits

General API calls300 per 15 minutes
File uploads2 per second
Auth endpoints15 per 15 minutes

Use cases

CI/CD deploys

Push to GitHub, build your static site, then curl the upload endpoint with the output ZIP. Instant auto-deploys.

AI agent workflows

AI coding agents can read our SKILL.md and use the API to create, build, and deploy sites autonomously. We built the API with this in mind.

Bulk management

Managing lots of small sites? Script the creation, upload, and domain setup. Each API call is a few lines of code.

Tip: If you revoke your API key, any scripts or tools using it will immediately stop working. Generate a new key before revoking the old one if you need zero downtime.