GET
/
v1
/
workspaces
import Evecloud from '@evecloud/sdk';

const client = new Evecloud({
  token: 'My Token',
});

async function main() {
  // Automatically fetches more pages as needed.
  for await (const workspaceListResponse of client.workspaces.list()) {
    console.log(workspaceListResponse.name);
  }
}

main();
{
  "data": [
    {
      "name": "My Workspace",
      "slug": "my-workspace"
    }
  ],
  "meta": {
    "before": "60f3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b",
    "after": "60f3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b"
  },
  "success": true
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

before
string

An object ID that defines your place in the list.

after
string

An object ID that defines your place in the list.

limit
integer
default:10

The number of items to return per page.

Required range: 1 <= x <= 100
order
enum<string>
default:desc

Order the results by the creation.

Available options:
asc,
desc

Response

200
application/json

Successful request.

The response is of type object.