Skip to main content

Overview

useAcceptWorkspaceInvite returns a callable that accepts an invitation. The inviteId is non-secret. Accepting when you are already a member or the owner, or accepting again an invite you already accepted while you are still a member, succeeds without changing anything. Authorization: self-service. The invite must be addressed to the signed-in user (identity-matched), and a verified email is required.

Usage Example

Parameters

string
required
The (non-secret) invitation UUID.

Returns

Your standing in the workspace, a WorkspaceMemberStanding — the same record useFetchMyWorkspaceMembership returns: { user, reasons, capabilities, permissions, rank, relativeRank, title, metadata }, with every field present. It resolves with the same record whether the accept just made you a member or you already were one (or own the workspace).
An unverified accept fails with workspace/email-not-verified — prompt the user to verify their email, then retry.

Error codes