Skip to main content
GET
/
projects
/
{projectId}
/
variables
/
{projectVariableId}
Get a project variable
curl --request GET \
  --url {schemes}://api.upsun.com/projects/{projectId}/variables/{projectVariableId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "attributes": {},
  "is_json": true,
  "is_sensitive": true,
  "visible_build": true,
  "visible_runtime": true,
  "application_scope": [
    "<string>"
  ],
  "value": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developer.upsun.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required
projectVariableId
string
required

Response

default - application/json
id
string
required

The identifier of ProjectVariable

created_at
string<date-time> | null
required

The creation date

updated_at
string<date-time> | null
required

The update date

name
string
required

Name of the variable

attributes
Arbitrary attributes · object
required

Arbitrary attributes attached to this resource

is_json
boolean
required

The variable is a JSON string

is_sensitive
boolean
required

The variable is sensitive

visible_build
boolean
required

The variable is visible during build

visible_runtime
boolean
required

The variable is visible at runtime

application_scope
string[]
required

Applications that have access to this variable

value
string

Value of the variable

Last modified on May 7, 2026