Skip to main content
POST
Invite a user

Authorizations

X-API-Key
string
header
required

Organization-scoped API key. Create one in the BuildingSwell app under Organization settings, API keys.

Body

application/json
email
string<email>
required

Where to send the invitation.

name
string

Display name for the new account. Only used when the account does not exist yet.

roleId
string<uuid> | null

Role to assign.

roleType
enum<string>
default:custom

admin grants everything. custom follows roleId.

Available options:
admin,
custom

Response

The new membership.

value
object
required

A user account's membership in your organization, including the role it carries.