Skip to main content
GET
/
api
/
v2
/
public
/
env
/
value
/
:definition_id
curl -X GET "https://app.refold.ai/api/v2/public/env/value/{definition_id}?linked_account_id=YOUR_LINKED_ACCOUNT_ID" \
  -H "x-api-key: YOUR_API_KEY"
{
  "value": "https://api.example.com",
  "encrypted": false,
  "name": "API_BASE_URL",
  "scope": "org",
  "variable_definition_id": "6a159a9741e63efd0833773f"
}
Resolve the value of a variable definition in the appropriate scope. For linked-account or workflow scope, pass the corresponding query parameter. Encrypted values are redacted in the response.

Authentication

This endpoint resolves a scoped value, so it accepts either authentication method. Option 1 — API key
x-api-key
string
Your Refold API key.
linked_account_id
string
Required (header or query) for linked-account-scoped values.
Option 2 — Session token
Authorization
string
Session token, for the account’s own scope. Format: Bearer YOUR_SESSION_TOKEN

Path Parameters

definition_id
string
required
The variable definition ID.

Query Parameters

linked_account_id
string
Resolve the linked-account-scoped value.
workflow_id
string
Resolve the workflow-scoped value.
environment
string
Override the environment.

Response

value
string
The resolved value. [REDACTED] if the definition is encrypted.
encrypted
boolean
Whether the value is encrypted.
name
string
Variable name.
scope
string
The resolved scope.
variable_definition_id
string
The definition ID.
{
  "value": "https://api.example.com",
  "encrypted": false,
  "name": "API_BASE_URL",
  "scope": "org",
  "variable_definition_id": "6a159a9741e63efd0833773f"
}
curl -X GET "https://app.refold.ai/api/v2/public/env/value/{definition_id}?linked_account_id=YOUR_LINKED_ACCOUNT_ID" \
  -H "x-api-key: YOUR_API_KEY"