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

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

async function main() {
  const workspace = await client.workspaces.create({ name: 'My Workspace' });

  console.log(workspace.data);
}

main();
{
  "data": {
    "name": "My Workspace",
    "slug": "my-workspace"
  },
  "success": true
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json

Response

200
application/json

Successful request.

The response is of type object.