Skip to main content

Overview

useResendWorkspaceInvite returns a callable that refreshes a pending invitation — it sets expiresAt = now + 14 days and resends the email. It is valid on any pending invite, including one already past expiresAt (resend = refresh a lapsed invite). A terminal invite (accepted/declined/revoked) fails with 409. Authorization: capability-gated. Requires the invite capability on the workspace (owners hold it implicitly).
The underlying route is a verb-suffixed POST /workspaces/:id/invites/:inviteId/resend. Resend emits no webhook — the status stays pending, so there is no lifecycle transition.
Your project must have workspaces.inviteAcceptUrl set, exactly as useCreateWorkspaceInvite requires — resending an email with nowhere to deep-link is equally pointless. Without it the call fails with 409 workspace/missing-invite-accept-url and expiresAt is left untouched. See Project settings.

Usage Example

Parameters

string
required
The workspace UUID.
string
required
The invitation UUID.

Returns

Returns the refreshed WorkspaceInvitation object, with a reset expiresAt.

Error codes