cURL
curl --request POST \ --url https://api.quiva.ai/accounts/recovery-codes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]" } '
{ "data": [ "ABCD-1234", "EFGH-5678", "IJKL-9012" ] }
Generates new recovery codes for a user
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User email (optional, defaults to current user)
Recovery codes issued successfully