Skip to main content

Overview

useDeclineWorkspaceInvite returns a callable that declines an invitation. Authorization: self-service. The invite must be addressed to the signed-in user (identity-matched), and a verified email is required — the same gate as accept. Otherwise a squatter who signed up with someone else’s address could burn that person’s invite by declining it.

Usage Example

Parameters

string
required
The invitation UUID.

Returns

{ success: boolean }.

Error codes