Error
A valid request URL is required to generate request examples{
"recovery_codes": [
"<string>"
]
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Two-factor
Regenerate recovery codes
Replaces the whole set — the old codes stop working — and shows the new one once. A partially-known set is worse than a fresh one, which is why this is never partial.
POST
/
v1
/
account
/
two-factor
/
recovery-codes
Error
A valid request URL is required to generate request examples{
"recovery_codes": [
"<string>"
]
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Autorizações
A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.
Corpo
application/json
The caller's current password.
Resposta
The new codes.