Activate two-factor authentication

POST/users/{userId}/activate2FA

Base URL: https://api.tinkermode.com

Complete the Two-Factor Authentication activation process. This endpoint is used after user has seeded an authenticator app with a TOTP secret obtained from the activate2FA/start endpoint.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain API key of the matching user.

Path parameters

NameTypeRequiredConstraintsDescription
userIdintegerYesThe unique ID for the specified user.

Request body

Content type: application/json

PropertyTypeRequiredConstraintsDescription
codestringYesA time-based one-time passcode (TOTP) obtained from an authenticator app seeded by the TOTP secret generated in the previous step of activation.

Request example

{
  "code": "889301"
}

Responses

204 User has successfully activated 2FA.