See Stacksync in action with a solution architect. Book a demo ↗
Variables

Variables

List variables

GET
/v1/workspaces/{workspace_id}/variables

The variables and secrets of the workspace in one region, newest first. A secret's value is never answered.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

Query Parameters

limit?Limit

Maximum number of items returned, at most 200

Range1 <= value <= 200
Default50
offset?Offset

Number of items skipped before the first one returned

Range0 <= value
Default0
region*Regions

Data region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them.

Value in"besg""usnv"

Response Body

OK

application/json
  1. response
data*array<>
has_more*Has More

Whether more items follow this page: request the next one with offset + limit

limit*Limit
offset*Offset
List variables
curl -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}