Introduction

zyberspace is a static site hosting platform with a full REST API. Upload a ZIP, get a live subdomain on zxapi.net, manage deployments, rollback in one call, and add custom domains — all programmatically.

Base URL

All API routes are served from your dashboard URL: https://your-dashboard.zxapi.net/api/v1/{teamSlug}/. Replace {teamSlug} with your team's slug (visible in the dashboard URL after login).

Request format

All requests and responses use application/json except deployment uploads which use multipart/form-data. All timestamps are ISO 8601 UTC strings.

Response envelope

Every successful response wraps its payload in a data key: { "data": { ... } }. Errors return { "error": "error_code", "message": "Human readable message" } with an appropriate HTTP status code.

Code examples

cURL
# Base URL pattern
curl "https://www.zyberspace.com/api/v1/{teamSlug}/team" \
  -H "Authorization: Bearer zxk_live_YOUR_API_KEY"
JavaScript
const TEAM_SLUG = "your-team-slug";
const BASE = "https://www.zyberspace.com/api/v1/${TEAM_SLUG}";

const res = await fetch(`${BASE}/team`, {
  headers: { Authorization: "Bearer zxk_live_YOUR_API_KEY" },
});
const { data } = await res.json();

Base URL: https://www.zyberspace.com

Get your API key →