Team Invites

Create a team invitation

Changed on

Invite 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.

post/teams/{key}/invites

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Path parameters

key, string required

Team identifier (ID or slug)

Request body

object required
email, string email required

Email address of the user to invite

roleIds, string[] required

Role IDs to grant to the invited user.

access, object

Optional promoter access assignment. Omit to preserve existing team-wide behavior.

Response

OK

object required
invite, object required

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 to 1

    • breaking

      the roleIds request property's minItems was increased to 1

    • breaking

      added the pattern ^pmt_[0-9a-z]{26}$ to the request property access/promoterIds/anyOf[subschema #1]/items

    6 more changes in this revision