Login policy
No authentication needed. Tells whether an account needs an email or SMS code to log in, with the masked destination.
login-policyUser accountsAuthentication: No auth1 endpointsGet login policy
GET
/api/v2/login-policyAuthentication: No auth
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
| account | string | Required | Login name (username, email or phone number) |
Login policy object
| Field | Type | Required | Description |
|---|---|---|---|
| string | — | Masked email | |
| login_verify | LoginVerify | — | Second-factor login: none means not required; email / sms also require an email/SMS code at login (the platform must allow it and the address must be bound) |
| phone | string | — | Masked phone number |