Sites
Create, list, get, and delete websites. Each site gets a private GitHub repo, a vibesites.link subdomain, and CDN hosting.
POST
/api/v1/sitesCreate a new site. Generates a GitHub repo, commits the template, builds, and deploys.
Auth:
Bearer tokenRequest Body
| Field | Type | Description |
|---|---|---|
| name | string | Site name (e.g., "Bean & Brew") |
| template | string (optional) | "blank" or "landing" (default: "landing") |
Response
200 OK
{ "data": { "id": "uuid", "slug": "bean-and-brew-k4x9", "url": "https://bean-and-brew-k4x9.vibesites.link" } }GET
/api/v1/sitesList all sites for the authenticated user.
Auth:
Bearer tokenResponse
200 OK
{ "data": [{ "id": "uuid", "name": "...", "slug": "...", "build_status": "success" }] }GET
/api/v1/sites/:idGet a single site with full details — settings, structure map, build status, custom domain.
Auth:
Bearer tokenURL Parameters
| id | Site ID (UUID) |
Response
200 OK
{ "data": { "id": "uuid", "name": "...", "slug": "...", "custom_domain": "...", "build_status": "success", "settings": {...} } }DELETE
/api/v1/sites/:idDelete a site permanently. Removes the site, GitHub repo, and CDN assets.
Auth:
Bearer tokenURL Parameters
| id | Site ID |
Response
200 OK
{ "data": { "deleted": true } }