Developer
API documentation
Create, manage, and delete hosted sites programmatically. Available on Solo plans and above.
Authentication
All API requests require a Bearer token in the Authorization header. Generate your API key from account settings.
Authorization: Bearer hup_your_api_key_here
Endpoints
GET
/api/v1/sitesList all your sites.
Response
{ "sites": [{ "id", "title", "slug", "status", "primaryUrl" }] }POST
/api/v1/sitesCreate a new site.
Request body
multipart/form-data with file, title, slug, and optional password
Response
{ "site": { "id", "slug", "url", "title" } }GET
/api/v1/sites/:siteIdGet a specific site.
Response
{ "site": { "id", "title", "slug", "status", "primaryUrl" } }DELETE
/api/v1/sites/:siteIdDelete a site permanently.
Response
{ "deleted": true }Rate limits
API requests are rate limited to 60 requests per minute per API key. If you exceed this limit, you will receive a 429 response.