Skip to main content
POST
/
api
/
auth
/
2fa
/
setup
/
confirm
Confirm Two Factor Setup
curl --request POST \
  --url https://api.example.com/api/auth/2fa/setup/confirm \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>"
}
'
{
  "backup_codes": [
    "<string>"
  ],
  "backup_codes_total": 123,
  "backup_codes_remaining": 123,
  "status": "ok"
}

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

Response

Successful Response

backup_codes
string[]
required
backup_codes_total
integer
required
backup_codes_remaining
integer
required
status
string
default:ok