ZITADEL Docs
APIsCore ResourcesV2User

RegisterTOTP

Start the registration of a TOTP generator for a user

Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device..

POST
/v2/users/{user_id}/totp

Path Parameters

user_id*string

Response Body

application/json

application/json

curl -X POST "https://loading/v2/users/string/totp"
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  },
  "uri": "string",
  "secret": "string"
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?