Create a team invitation
Changed onInvite a user to join a team by email. Team key can be ID or slug. Creates a pending invitation with a secure token that expires in 7 days. The invited user will receive an email with an acceptance link.
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Path parameters
Team identifier (ID or slug)
Request body
Email address of the user to invite
Role IDs to grant to the invited user.
Optional promoter access assignment. Omit to preserve existing team-wide behavior.
Response
OK
Pending team invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates a TeamMember record and deletes the invitation.
Example response
{
"invite": {
"permissions": []
}
}Changes
- breaking
the
access/promoterIds/anyOf[subschema #1]request property's minItems was increased to1 - breaking
the
roleIdsrequest property's minItems was increased to1 - breaking
added the pattern
^pmt_[0-9a-z]{26}$to the request propertyaccess/promoterIds/anyOf[subschema #1]/items
6 more changes in this revision
- breaking