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 AuthorizationBearer <token>
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, "whatsappUsed": 0, "seatsUsed": 0, "memberCount": 0 } ] }}