Overview
The Invitation API allows channel editors to invite other users to collaborate on channels. Invitations can be accepted, declined, or revoked, and support both edit and view-only access modes.Base Endpoint
Authentication
All Invitation API endpoints require authentication. Users can only view and manage invitations they have sent or received.Invitation Object
The Invitation object contains the following fields:Unique identifier for the invitation (UUID)
Email address of the invited user (max 100 characters)
ID of the channel to which the user is invited
Name of the channel (read-only)
Access level for the invitation:
"edit" or "view"First name of the invited user (max 100 characters, optional)
Last name of the invited user (max 100 characters, optional)
Whether the invitation has been accepted (default: false)
Whether the invitation has been declined (default: false)
Whether the invitation has been revoked by the sender (default: false)
Full name of the user who sent the invitation (read-only)
List Invitations
Retrieve invitations sent to or by the authenticated user.Query Parameters
Filter invitations sent to the authenticated user’s email address
Filter invitations by channel ID
Example Request
Example Response
Create Invitation
Invite a user to collaborate on a channel.Request Body
Email address of the user to invite
ID of the channel to share
Access level:
"edit" for edit access or "view" for view-only accessFirst name of the invited user (optional)
Last name of the invited user (optional)
Example Request
Example Response
Accept Invitation
Accept an invitation to collaborate on a channel.Path Parameters
ID of the invitation to accept
Example Request
Example Response
- If
share_modeis"edit", the user is added to the channel’s editors - If
share_modeis"view", the user is added to the channel’s viewers - The invitation’s
acceptedfield is set totrue
Decline Invitation
Decline an invitation to collaborate on a channel.Path Parameters
ID of the invitation to decline
Example Request
Example Response
Update Invitation
Update an invitation (revoke or modify fields).Path Parameters
ID of the invitation to update
Request Body
Set to
true to revoke the invitation (only available to sender)Set to
true to accept the invitation (only available to invited user, cannot be set if revoked)Set to
true to decline the invitation (only available to invited user)Example Request (Revoke)
Permissions
Invitation access is controlled as follows:- Create: User must have edit access to the channel
- View: User can view invitations they sent or received, or for channels they edit
- Accept/Decline: Only the invited user can accept or decline (cannot accept if revoked)
- Revoke: Only the sender can revoke an invitation
Access Modes
edit
Full edit access to the channel. User can create, modify, and delete content.
view
View-only access to the channel. User can browse content but cannot make changes.
Error Responses
400 Bad Request
Invalid request parameters, missing required fields, or user attempting to accept a revoked invitation
401 Unauthorized
Missing or invalid authentication token
403 Forbidden
User does not have permission to create, modify, or accept the invitation
404 Not Found
Invitation or channel not found
