Skip to main content
POST
/
accounts
/
confirm-totp-registration
Confirm TOTP registration
curl --request POST \
  --url https://api.quiva.ai/accounts/confirm-totp-registration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "123456",
  "secret": "JBSWY3DPEHPK3PXP"
}
'
{
  "data": {
    "recovery_codes": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
code
string
required

TOTP code

secret
string
required

TOTP secret key

Response

TOTP registration confirmed successfully

data
object
required