GET/sites/:siteSlug/deployments

List all deployments for a site in reverse chronological order. Requires the deployments:read scope.

Response

Returns data.deployments — an array of deployment objects. Each includes id, r2Prefix, fileCount, sizeBytes, isActive (boolean — whether this is the live deployment), status (draft | active), previewUrl, and createdAt.

Example response

{
  "data": {
    "deployments": [
      {
        "id": "v-2vka1lafuv0ebvru9m3",
        "r2Prefix": "v-2vka1lafuv0ebvru9m3",
        "fileCount": 5,
        "sizeBytes": 1530,
        "isActive": true,
        "status": "active",
        "previewUrl": "https://v-2vka1lafuv0ebvru9m3-my-site.zxapi.net",
        "createdAt": "2026-03-25T20:41:20.615Z"
      }
    ]
  }
}

Code examples

cURL
curl "https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/deployments" \
  -H "Authorization: Bearer zxk_live_YOUR_API_KEY"
JavaScript
const res = await fetch(`https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/deployments`, {
  headers: { Authorization: "Bearer zxk_live_YOUR_API_KEY" },
});
const data = await res.json();
console.log(data);

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

Get your API key →