Invitations
Create Invitation
Create a new invitation.
Creates an invitation for a user to join the current user’s account. Sends an invitation email with a secure token.
Flow:
- Validate email format (handled by Pydantic)
- Check if user already exists in account
- Check if pending invitation exists
- Generate secure token
- Create invitation record
- Send invitation email
- Return invitation details (excluding token)
POST
Create Invitation
Body
application/json
Response
Successful Response
Response schema for invitation details.
Invitation ID
Account ID (UUID)
Human-readable account code in XX#### format (e.g., AB1234)
Email address of the invited user
User ID of the inviter
Expiration timestamp
Creation timestamp
Current invitation status
Available options:
pending, accepted, expired, cancelled Invitation token for constructing acceptance URL
Acceptance timestamp (if accepted)
Whether the invitation email has been sent
Timestamp when the email was sent
Create Invitation