Skip to main content
POST
/
accounts
/
recovery-codes
Issue recovery codes
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"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
email
string<email>

User email (optional, defaults to current user)

Response

Recovery codes issued successfully

data
string[]
required