Skip to content

Get two-factor status

Reports whether an authenticator app is active and how many recovery codes are left.

GET/v1/users/me/two-factor
Requires an access token.

Header Parameters

Authorization*string

OAuth 2.0 bearer token.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://auth.ecomiq.pe/v1/users/me/two-factor" \  -H "Authorization: Bearer <token>"
{  "isEnabled": true,  "recoveryCodesLeft": 1}