Generate WebAuthn recovery token
Generate a recovery token for a WebAuthn account
POST
/{apiBasePath}/{tenantId}/webauthn/recover/account/tokenPath parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
tenantIdstringThe tenant against which the request is made. If left empty, the default tenant will be used.
Header parameters
ridstringThe WebAuthn recipe ID
Request body
application/jsonemailemailrequiredEmail address
Responses
200Recovery token generation response
One of:
object
statusstatusOKSuccess status indicator
Allowed:
OKgeneralErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
object
statusstringAllowed:
RECOVER_ACCOUNT_NOT_ALLOWEDreasonstring404Resource not found error
string500Internal server error
stringTry it
Server
Parameters
Bodyapplication/json
Request
curl -X POST "/auth/public/webauthn/recover/account/token" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'const response = await fetch("/auth/public/webauthn/recover/account/token", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"email": "[email protected]"
})
});import requests
response = requests.post(
"/auth/public/webauthn/recover/account/token",
headers={
"Content-Type": "application/json"
},
json={
"email": "[email protected]"
},
)Response
{
"status": "OK"
}"Not Found""Internal Error"