Skip to content

Whether two-factor authentication is on, until when this console session lasts, recovery codes left.

GET
/api/admin/two-factor
curl --request GET \
--url https://example.com/api/admin/two-factor

OK

Media typeapplication/json
object
enabled
required
boolean
openUntil
required
null | string format: date-time
recoveryCodesLeft
required
integer format: int32

Example generated

{
"enabled": true,
"openUntil": "2026-04-15T12:00:00Z",
"recoveryCodesLeft": 1
}