Reference
get_variable
Fetch an application variable by name.
get_variable
Fetch a variable configured for the application (feature flags, config blobs, text, etc.).
- Type:
13 - Requires initialization: yes
- Requires authorization: depends on variable strategy
Request and response example
get_variable
Fetch an application variable by name.
Request fields
| Field | Type | Required | Meaning |
|---|---|---|---|
name | string | yes | Variable name (as configured in the dashboard). |
Response fields
| Field | Type | Meaning |
|---|---|---|
content | string | Variable value/content. |
status | int | Result status. |
Common statuses
| Status | Meaning |
|---|---|
1 | ok |
3 | not_authorized (if the variable requires auth and the session is not authorized) |
400 | variable_not_found |
401 | variable_paused |
404 | variable_name_too_long |
6 | internal_server_error |