双因素身份验证

获取双因素身份验证状态

GET/api/2fa/status

返回当前用户是否启用、配置或必须使用双因素身份验证,包括必须使用的原因。

Headers

NameTypeDescription
AuthorizationrequiredstringAuthentication credentials, e.g. Bearer <token>.

Responses

200The operation completed successfully.
NameTypeDescription
anyOfanyOf
200 example
401Unauthorized.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
401 example

Code samples

cURL