Skip to main content
GET
/
api
/
v1
/
auth
/
2fa
/
status
Get 2Fa Status
curl --request GET \
  --url https://api.example.com/api/v1/auth/2fa/status \
  --header 'Authorization: Bearer <token>'
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.example.com/api/v1/auth/2fa/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.example.com/api/v1/auth/2fa/status"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "enabled": true,
  "backup_codes_remaining": 0
}

Authorizations

Authorization
string
header
required

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

Response

200 - application/json

OK

enabled
boolean
required
backup_codes_remaining
integer
default:0