GET
/
v1
/
workspaces
Authorization
const { setToken, Workspaces } = require('@evecloud/sdk');

setToken('TOKEN');

Workspaces.list().then(workspaces => {
    console.log(workspaces.data);
}).catch((error) => {
    console.log(error);
});
{
  "data": {
    "created_at": "2023-05-14T11:15:34.177Z",
    "id": "67f26fa2",
    "name": "Acme Inc.",
    "slug": "acme-inc",
    "status": "active",
    "updated_at": "2023-06-19T13:20:01.503Z",
    "uuid": "67f26fa2-0218-4e7d-91ed-942f3f5c5147"
  },
  "meta": {
    "limit": 10,
    "page": 1,
    "total": 1
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json
data
object
meta
object