This endpoint returns all pending workspace invitations where the authenticated user’s email matches the invitation’s recipient email.The response includes:
Details about the invitation (role, type, token, expiration).
Information about the inviting user (name, email, picture).
Workspace details including name, initials, and white-label settings.
If the email is not present in the authenticated user payload, it is fetched from the database using the user ID.