Overview
POST
/account/mfa/recovery/regeneratemfaGenerate a fresh recovery-code set (invalidates the old one); shown once
Create a record in regenerate.
Auth: bearerAuth — calls run as the authenticated user.
Responses
200
Plaintext recovery codes (returned once)
- codesstring[]
Example
{
"codes": [
"string"
]
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}409
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/account/mfa/recovery/regenerate" \
-H "Authorization: Bearer YOUR_TOKEN"JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/account/mfa/recovery/regenerate", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
},
});
const data = await res.json();