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

Workspaces

List workspaces

GET
/v1/workspaces

The workspaces the API key can act in, with the caller's role in each. A workspace API key lists its own workspace.

Authorization

Authorizationstringheaderrequired

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

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

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 workspaces
curl -X GET 'https://api.stacksync.com/v1/workspaces'
{  "data": [    {      "workspace_id": 0,      "workspace_name": "<workspace_name>",      "role": "viewer",      "default_region": "besg"    }  ],  "has_more": false,  "limit": 0,  "offset": 0}