Overview
useFetchMyWorkspaceInvites returns a callable for the signed-in user’s live pending invites (status='pending' AND expiresAt > now), matched by userId from the token, across every workspace. This is the read that powers a “You’ve been invited” screen — and unlike every other workspace-invite read, each item embeds workspace: { id, name } and a populated invitedBy (alongside the bare invitedById), since the invitee otherwise has no reach on either (a direct workspace read 404s for a non-member).
Authorization: self-service. No capability and no workspace scope — the caller is derived from the token. Surfacing is not verification-gated: a user sees invites right after signup; the verified check applies when they act on one — accept and decline.
Usage Example
Parameters
None — the user is derived from the token.Returns
Returns aMyWorkspaceInvitation[] array: each item a WorkspaceInvitation with workspace and invitedBy embedded (see the note on that page). invitedBy is null when the inviter’s user record no longer exists. Never paginated.
Related
useFetchWorkspaceInvites— the outbox counterpartuseAcceptWorkspaceInvite·useDeclineWorkspaceInvite- List My Invites API

