This endpoint requires authentication. Include your Bearer token in the Authorization header.
Sends a fresh activation email for an invitation that is still in the invited state. The new email includes a newly generated activation code and preserves any updated custom message.
const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/user/invites/example-id/resend', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "message": "Reminder: please accept your invite before onboarding.",
    "redirectUrl": "https://app.royalti.io/email/activate"
  })
});
const data = await response.json();
console.log(data);