Verdocs - Developer Documentation

Regenerate the caller's backup codes

POST
/v2/users/mfa/backup-codes

Request Body

application/json

Body Parameters

TypeScript Definitions

Use the request body type in TypeScript.

code*string

The current six-digit code from the user's authenticator app

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.verdocs.com/v2/users/mfa/backup-codes" \    -H "Authorization: Bearer ACCESS_TOKEN" \    -H "content-type: application/json" \    -d '{"param": "value"}'
{
  "backup_codes": "string"
}
{
  "status": "ERROR",
  "error": "string"
}
{
  "status": "ERROR",
  "error": "string"
}
{
  "status": "ERROR",
  "error": "string"
}
{
  "status": "ERROR",
  "error": "string"
}