Start typing to search.

API Reference

Re-enroll TOTP

View Markdown
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 bearer·API key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.

Request body

This request body is required.

Content typeapplication/json

requestobject
1 property
current_passwordstringrequired

Success response body

200New TOTP enrollment data

New TOTP enrollment data

Content typeapplication/json

responseobject
2 properties
totp_secretstring
totp_uristring

Error responses

400Validation error

Validation error

Content typeapplication/json

responseobject
2 properties
errorstring
messagestring
Example 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

responseobject
2 properties
errorstring
messagestring
Example response
{
  "error": "RATE_LIMITED",
  "message": "Too many failed TOTP attempts. Try again later."
}