Skip to content
Connect an agent

Keys

Read your account's sign-in security

Whether two-step sign-in is on, since when, how many recovery codes are left, and which organisations you are in that require it.

GET/user/security

TL;DR

QuestionAnswer
What does it do?Read your account's sign-in security.
What does it take?Nothing.
What does it return?Status 200 with a body of type Security.
What can go wrong?401 not signed in; 429 too many requests. Every failure uses the one error envelope.

What it does

Whether two-step sign-in is on, since when, how many recovery codes are left, and which organisations you are in that require it.

Responses

StatusMeaningBody
200The account's security.Security
401Not signed in.ErrorResponse
429Too many requests.ErrorResponse

Response body

A 200 answer has the type Security.

FieldTypeRequiredDescription
twoFactorTwoFactorStateyes
twoFactor.enabledbooleanyes
twoFactor.enabledAtinteger | nullyes
twoFactor.recoveryCodesLeftintegeryes
twoFactor.requiredByobject[]yesThe organisations the account is in that require two-step sign-in.
twoFactor.requiredBy[].slugstringyes
twoFactor.requiredBy[].namestringyes

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools