Skip to main content
Activate or deactivate your authentication factors

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
activationToken
string

Token from POST /configuration/mfa/token, with every factor on it already verified. Its factors are the ones that get switched on, and the token is spent by this call. At least one of activationToken and deactivate must be provided.

Example:

"cir_b35b868cbbb1c.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"

deactivate
enum<string>[]

Factors to switch off. Deactivating one needs no verification, so this works even when the factor's device is already lost. At least one of activationToken and deactivate must be provided.

Minimum array length: 1
Available options:
sms,
totp,
email
resetTokens
boolean
default:false

Invalidates every session of yours, the one making this request included, so everything has to sign in again under the new factors.

Example:

false

Response

Returns the authentication factors active after the change.

authenticationFactors
enum<string>[]

Authentication factors active for the user once the change has been applied. An empty array means multi-factor authentication is off.

Available options:
sms,
totp,
email