Skip to main content
List My Invites
Returns the authenticated user’s live pending invites (status = 'pending' AND expiresAt > now), matched by userId (no email-string matching at query time — invitations bind to userId at invite time or via the signup-attach step).
Surfacing is NOT verification-gated — a user sees pending invites right after signup (which nudges them to verify). The verified-email check applies when the user acts on an invite — accept and decline.

Query Parameters

string
required
Service keys only — the user to act as, whose invites are read. Required for a key: this is an inbox read, so a key that names nobody is refused with 400 workspace/missing-user-id.A user token always acts as its own user and must not send it (400 workspace/acting-user-not-allowed). See Acting on behalf of a user.

Response

Each item is a MyWorkspaceInvitation: a WorkspaceInvitation object with one difference from every other invite read — invitedBy is a populated { id, name, username, avatar, reputation } object instead of a bare user id, and a sibling workspace: { id, name } is included. The invitee has no other reach on the workspace they’re invited to or on the inviter, so both are embedded here to make this endpoint self-sufficient for rendering an invite — see the note on the data model page for the full enriched shape.

Error Responses

A service key called this route without naming an actingUserId. An inbox belongs to a person; there is no app-level inbox to return.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
A GET takes every field, actingUserId included, in the query string, so any request body is refused: a JSON object with keys, a non-empty array, or a non-JSON payload such as multipart (then params is omitted). An absent body and {} pass.
Returned when a service key names an actingUserId that isn’t a user in this project.
See also: useFetchMyWorkspaceInvites