Skip to main content
POST
/
accounts
/
auth-with-recovery-code
Authenticate with recovery code
curl --request POST \
  --url https://api.quiva.ai/accounts/auth-with-recovery-code \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "mfa_token_abcdef1234567890",
  "code": "ABCD-1234"
}
'
{
  "data": {
    "refresh_token": "<string>",
    "auth_token": "<string>",
    "passkey_enabled": true,
    "totp_enabled": true
  }
}

Body

application/json
token
string
required

MFA token received from password authentication

code
string
required

Recovery code

Response

Authentication successful

data
object
required