List Workspace Invites
List all invites for a workspace. Uses current workspace context if available, otherwise requires workspace_id parameter.
Query parameters
status
Filter by invite status (pending, accepted, cancelled, expired)
workspace_id
ID of the workspace to list invites for (optional if workspace context is set)
Response
List of invites
id
token
Unique token for invite identification
email
Email address of the person being invited
role_display
Get human-readable role name.
Args: obj: The model instance being serialized (typically WorkspaceInvite)
Returns: str: The human-readable role name, or “UNKNOWN” if not found
status
Current status of the invitation
* `pending` - Pending
* `accepted` - Accepted
* `cancelled` - Cancelled
* `expired` - Expired
Allowed values:
created_at
expires_at
When this invite expires
accepted_at
When the invite was accepted
invited_by_email
invited_by_username
workspace_name
role
Role to assign when invite is accepted
* `1` - Viewer
* `2` - Editor
* `3` - Admin
* `4` - Owner
Allowed values:
message
Optional message from the inviter
Errors
400
Bad Request Error
403
Forbidden Error

