User Invitations
User invitation workflow for adding users to tenants. Provides endpoints to list pending invitations for the authenticated user, accept or decline invitations (validates email verification), and send invitation emails to users. Invitations include token-based security, email verification requirements, and status tracking (pending, accepted, declined).
-
GET
Get pending invitations
Returns:
- 200 OK with list of pending invitations (empty list if none)
- 400 Bad Request if email is not verified
- 401 Unauthorized if not authentic...
/api/user-invitations
-
PUT
Process an invitation
Responds to the user's invitation to join the tenant.
Returns:
- 200 OK with response details
- 400 Bad Request if token invalid or email...
/api/user-invitations
-
POST
Send an invitation
Sends an invitation email to a user to join a tenant.
Returns:
- 200 OK if invitation was sent
- 400 Bad Request if user already accepted...
/api/user-invitations