getOrganizationInvitations

Retrieves organization invitations for the current user.

Organization invitations are formal requests for the user to join specific organizations. These invitations are typically sent by organization administrators or members with invitation privileges. The user can accept or decline these invitations to become a member of the organization.

Return

A ClerkResult containing a ClerkPaginatedResponse of UserOrganizationInvitation objects on success, or a ClerkErrorResponse on failure

Parameters

limit

The maximum number of organization invitations to retrieve per request. Default is 20.

offset

The number of organization invitations to skip before starting to return results. Used for pagination. Default is 0.

status

Optional filter to retrieve invitations by their status (e.g., "pending", "accepted", "declined"). If null, invitations of all statuses are returned.