Skip to Content
API ReferenceGET /content/variables

GET /content/variables

Returns the published content for a workspace as a structured JSON object.

Request

GET https://vard.app/api/content/variables

Headers:

HeaderRequiredDescription
X-Vard-API-KeyYesYour workspace API key
X-Vard-Schema-VersionNoSchema version tag. Defaults to "default"

Response

{ "hero": { "title": "Welcome to our practice", "photo": "https://assets.vard.app/..." }, "team": [ { "name": "Alice Chen", "role": "Lead Engineer", "photo": "https://..." }, { "name": "Marcus Lee", "role": "Designer", "photo": "https://..." } ], "project": { "name": "My Client Site", "slug": "my-client-site", "description": "", "logo": "" } }

The response shape matches your schema exactly. Unset fields return their default values. The project key is always included and contains workspace metadata.

Caching

The response includes Cache-Control: no-store — the SDK handles its own caching via Next.js fetch semantics. Do not rely on HTTP caching at the CDN level for this endpoint.

Example (curl)

curl https://vard.app/api/content/variables \ -H "X-Vard-API-Key: vard_live_xxxxxxxxxxxx"

Example (fetch)

const res = await fetch("https://vard.app/api/content/variables", { headers: { "X-Vard-API-Key": process.env.VARD_API_KEY! }, next: { revalidate: 60 }, }); const content = await res.json();
Last updated on
Vard SDK Documentation