Api
Invite a member to a workspace
Creates a pending invite for email at role, optionally with a department (marketing or compliance; defaults to marketing). 409 if a pending invite already exists for that email; 403 if the role exceeds the caller's own or a non-default department is assigned by a non-admin.
Authorization
oauthJwt AuthorizationBearer <token>
A Supabase-issued OAuth user access token. On collection endpoints, pair with a Passo-Workspace header to pick a workspace.
In: header
Path Parameters
workspaceId*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/invites" \ -H "Content-Type: application/json" \ -d '{ "email": "string", "role": "viewer" }'{ "id": "string", "email": "string", "role": "viewer", "department": "marketing", "expiresAt": "string"}