TwoFactorAuthV1

Activate currently generated two factor key

Activate currently generated two factor key. A one time password based on the two factor key must be provided in order to enroll two factor authentication for the account.

post/twofactorauth/v1/enroll

Request

  • Base URL: https://api.danalock.com
  • URL: https://api.danalock.com/twofactorauth/v1/enroll
  • Auth: OAuth 2 (authorization code, authorization URL /oauth2/authorize, token URL /oauth2/token)

Headers

X-Assume-Userstring

Assume the identity of the user in another domain

Request body

totpstring

Time-based one-time password to prove that the two factor key has been enrolled in an external 2FA application

Response

activitystring
statusstring

Example response

{
  "activity": "Generate two factor authentication key",
  "status": "Success"
}

Changes

No recorded changes to this operation across all 1 revision of this API.