GET/sites/:siteSlug

Fetch a single site by its slug. Returns site metadata. Requires the sites:read scope.

Path parameter

siteSlug: The site's URL slug (e.g. my-site). Must belong to the team identified in the URL.

Response

Returns data.site with all fields. Returns 404 not_found if the site does not exist or belongs to a different team.

Code examples

cURL
curl "https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site" \
  -H "Authorization: Bearer zxk_live_YOUR_API_KEY"
JavaScript
const res = await fetch(`https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site`, {
  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 →