JavaScript SDK: swarmhit.workspaces.members.invite(workspaceId, params)
Sends an invite (by email) into the workspace. Role defaults to member.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/workspaces/string/members" \ -H "Content-Type: application/json" \ -d '{ "email": "jane@acme.com", "role": "member" }'{ "data": { "ok": true }}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.
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).