Skip to main content
POST
Invite Team Member
Send an invitation to a new team member via email. If the user already has a Rolla account, they will be added directly. New users will receive a registration link.

Example Request

Example Response

An existing Rolla user is added to the business and emailed an invitation to accept.
When the email does not belong to an existing user, an account is created for them, the message changes, and data also carries the magicToken from the sign-in link they were emailed.
magicToken signs the new user in and sets their password. Treat it as a secret: do not log it or forward it to anyone but the invitee. It expires 48 hours after the invitation is sent.
The roleId is optional and defaults to the Initiator role when omitted. Use /teams/roles to get available role IDs — the assignable set is initiator, approver, and business_admin (the approver and business_admin roles can only be assigned by Business Owners and Business Admins). The roleId UUID model itself is unchanged.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Body

application/json
email
string<email>
required

Email address of the person to invite

Example:

"jane@example.com"

fullname
string
required

Full name of the person to invite

Required string length: 1 - 100
Example:

"Jane Doe"

roleId
string<uuid>

Role to assign, from GET /teams/roles. Optional: defaults to the initiator role when omitted. A caller whose own role is initiator cannot assign business_admin.

Example:

"21302ed1-0e63-44e6-bb02-8db6baa2efcd"

Response

Invitation sent. message is "User account created and added to team" when the invitee had no Rolla account.

status
integer
required
Example:

201

message
string
required
Example:

"Invitation sent successfully"

success
boolean
required
Example:

true

data
object
required