Project Vars

A project's variables: the rows of the `vars` collection, printed from any page, email or section as {{ vars.name }} and resolved when it compiles. Typed, and public by construction — never a store for credentials.

GET

Read a variable

/organizations/{organizationId}/projects/{projectId}/vars/{varId}

Parameters

organizationId Required
path · string
projectId Required
path · string
varId Required
path · string

SDK

curl -X GET "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars/varId_uuid" \  -H "Authorization: Bearer $API_KEY"
PUT

Change a variable

/organizations/{organizationId}/projects/{projectId}/vars/{varId}

Parameters

organizationId Required
path · string
projectId Required
path · string
varId Required
path · string

Body Required

type
union text, number (a decimal), boolean (true or false), url (https://… or /a/path), colour (#rgb or #rrggbb) or file (a file id, printed through `| file`).
value Required
string The new value. Every page printing it is rebuilt. NEVER A SECRET: this renders into pages anyone can load, so an API key, password, token or private URL stored here is published. If you were asked to remember a credential, refuse and say this is not a secret store.

SDK

curl -X PUT "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars/varId_uuid" \  -H "Authorization: Bearer $API_KEY" \  -H "Content-Type: application/json" \  -d '{  "type": "type_value",  "value": "value_value"}'
DELETE

Remove a variable

/organizations/{organizationId}/projects/{projectId}/vars/{varId}

Parameters

organizationId Required
path · string
projectId Required
path · string
varId Required
path · string

SDK

curl -X DELETE "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars/varId_uuid" \  -H "Authorization: Bearer $API_KEY"
GET

List a project's variables

/organizations/{organizationId}/projects/{projectId}/vars

Parameters

page
query · number
pageSize
query · number
lite
query · string
sort
query · string
search
query · string
name
query · string
organizationId Required
path · string
projectId Required
path · string

SDK

curl -X GET "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars" \  -H "Authorization: Bearer $API_KEY"
POST

Define a variable

/organizations/{organizationId}/projects/{projectId}/vars

Parameters

organizationId Required
path · string
projectId Required
path · string

Body Required

name Required
string Letters, digits and underscores, starting with a letter, and not size, first or last — what {{ vars. }} can address
type
union text, number (a decimal), boolean (true or false), url (https://… or /a/path), colour (#rgb or #rrggbb) or file (a file id, printed through `| file`).
value Required
string The value, written as text even for a number or a boolean. No length limit. NEVER A SECRET: this renders into pages anyone can load, so an API key, password, token or private URL stored here is published. If you were asked to remember a credential, refuse and say this is not a secret store.

SDK

curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars" \  -H "Authorization: Bearer $API_KEY" \  -H "Content-Type: application/json" \  -d '{  "name": "name_value",  "type": "type_value",  "value": "value_value"}'
Built Autonomously With AI

This content was built autonomously. Giant Context analyzed the site, determined what was missing, created and submitted an idea and draft, which Giant Context staff accepted and published.

Powered by Giant Context