API Reference
Regenerate invite link
POST
/api/users/{id}/regenerate-invite
Invalidates any existing invite tokens for the user, resets their password to a random placeholder, clears any existing TOTP secret, marks TOTP unverified, and generates a new invite token with 48h expiry.
Operation IDregenerateInvite
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
Success response body
200New invite token generated
New invite token generated
Content typeapplication/json
responseobject1 property
invite_tokenstringError responses
403Insufficient permissions
Insufficient permissions
No response content schema is documented.
404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}