JavaScript SDK: swarmhit.workspaces.delete(workspaceId)
Removes the workspace from the organization. Rejected with 400 while it still has connected sender accounts or mailboxes, disconnect them first.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/workspaces/string"{ "data": { "ok": true }}Create a workspace POST
**JavaScript SDK:** [`swarmhit.workspaces.create(params)`](/smart-api/sdk/methods#workspaces) Creates a workspace inside the connected organization. Optionally grant it seats from the organization pool with `seatAllocation`. Allocating more than the pool has available is rejected with `400`, unless the organization's seats are added on demand (pay as you go): then the missing seats are added to the subscription instead. Requires the connected workspace to be an organization (otherwise `403`).
Get a workspace GET
**JavaScript SDK:** [`swarmhit.workspaces.get(workspaceId)`](/smart-api/sdk/methods#workspaces) Returns one workspace inside the connected organization, including its members, the organization managers granted access via the organization (read-only), and pending invites.