JavaScript SDK: swarmhit.workspaces.list()
For an organization workspace, lists the workspaces inside it with each
one's seat allocation, connected senders and member count, plus
the organization's seat pool (pool / allocated / available). When the
connected workspace is not an organization, returns isOrganization: false
and an empty workspaces list.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/workspaces"{ "data": { "isOrganization": true, "plan": "string", "pool": 0, "allocated": 0, "available": 0, "workspaces": [ { "id": "string", "name": "string", "seatAllocation": 0, "sendersUsed": 0, "mailboxesUsed": 0, "seatsUsed": 0, "memberCount": 0 } ] }}List a workspace's members GET
**JavaScript SDK:** [`swarmhit.workspaces.members.list(workspaceId)`](/smart-api/sdk/methods#workspaces.members) The workspace's own `members` and pending `invites`, plus the read-only `orgMembers` (organization owners/admins granted access to the workspace).
Remove a workspace member or revoke an invite DELETE
**JavaScript SDK:** [`swarmhit.workspaces.members.remove(workspaceId, memberId, params?)`](/smart-api/sdk/methods#workspaces.members) Removes a member from the workspace, or revokes a pending invite. Pass `?type=invite` (with the invite email as `memberId`) to revoke an invite; `type` defaults to `user`. The workspace's owner, organization members and the last admin cannot be removed here (400).