Docs
Workspace Settings

List workspaces

The workspaces the key can reach. A personal (ti_pk_) key returns every workspace in its organization; it needs the workspace:provision scope and a creator who is an organization owner. A workspace (ti_ws_) key returns only the one workspace it is bound to, as a single-element array; it needs the workspace:read scope. A missing scope, or a personal key whose creator is not an organization owner, is refused with 403.

GET
/v2/workspaces

Response Body

curl -X GET "https://lynx-api.trulyinbox.com/v2/workspaces"
{
  "data": [
    {
      "id": 0,
      "name": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "quota": {
        "dailyWarmupBudget": 0
      },
      "role": "owner"
    }
  ],
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "details": {},
    "retry_after": 34
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "details": {},
    "retry_after": 34
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}