Variables
Variables
List variables
GET
The variables and secrets of the workspace in one region, newest first. A secret's value is never answered.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
limit?LimitMaximum number of items returned, at most 200
Range
1 <= value <= 200Default
50offset?OffsetNumber of items skipped before the first one returned
Range
0 <= valueDefault
0region*RegionsData region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them.
Value in
"besg""usnv"OK
application/json- response
data*array<>has_more*Has MoreWhether more items follow this page: request the next one with offset + limit
limit*Limitoffset*Offsetcurl -X GET 'https://api.stacksync.com/v1/workspaces/0/variables?region=besg'{ "data": [ { "variable_id": "<variable_id>", "variable_name": "<variable_name>", "variable_resource_id": "<variable_resource_id>", "description": "<description>", "is_secret": false, "value": "<value>", "value_type": "string", "reference": "<reference>", "parent_folder_id": "<parent_folder_id>", "created_time": "2027-01-15T09:00:00Z", "last_modified_time": "2027-01-15T09:00:00Z", "region": "besg" } ], "has_more": false, "limit": 0, "offset": 0}