JavaScript SDK: swarmhit.workspaces.members.invite(workspaceId, params)
Sends an invite (by email) into the workspace. Role defaults to member.
Authorization
bearerAuth AuthorizationBearer <token>
An API key created on the Access tokens page.
In: header
Path Parameters
id*string
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 }}