bad_request ("This invite is no longer pending") — the invitation was accepted, declined, revoked or marked expired.
401 Unauthorized
unauthorized for a missing, invalid or expired token (or an API key); session_revoked when the session has been signed out.
403 Forbidden
forbidden — you are a member ("Only workspace admins can resend invites.", with details.requiredRole: "admin" and details.currentRole), or you don't belong to the workspace ("Not a member of this organization").
402 Payment Required
USAGE_LIMIT_EXCEEDED — the invitation has expired and the plan has no seat left for it. An expired invitation doesn't hold a seat, so resending it needs a free one, as creating an invitation does. Resending an invitation that is still pending never needs a new seat.
409 Conflict
invite_limit_reached — the invitation has expired and the workspace already has 10 other pending invitations, so resending it would go over the pending-invitation limit. Resending an invitation that is still pending is always allowed. details.max and details.pending.
404 Not Found
not_found — no invitation with that id in this workspace ("Invite not found"), or the workspace does not exist or has been deleted ("Organization not found").