API Reference
Re-enroll TOTP
POST
/api/users/me/totp/re-enroll
Verifies the current password, then generates a new TOTP secret. Must be confirmed via /api/users/me/totp/confirm.
Operation IDreEnrollTotp
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Request body
This request body is required.
Content typeapplication/json
requestobject1 property
current_passwordstringrequiredSuccess response body
200New TOTP enrollment data
New TOTP enrollment data
Content typeapplication/json
responseobject2 properties
totp_secretstringtotp_uristringError responses
400Validation error
Validation error
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "VALIDATION_ERROR",
"message": "Invalid input"
}401Current password incorrect
Current password incorrect
No response content schema is documented.
429Too many requests
Too many requests
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "RATE_LIMITED",
"message": "Too many failed TOTP attempts. Try again later."
}