Two-factor authentication

Get two-factor authentication status

GET/api/2fa/status

Returns whether two-factor authentication is enabled, configured, or required for the current user, including the reason it is required.

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