Skip to Content
ZITADEL Docs
APIsCore ResourcesV2User

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*user_id

Response Body

Success

application/json
  1. response
details?
uri?uri
secret?secret
Example Request
curl -X POST 'https://example.com/v2/users/string/totp'
Example Response200
{  "details": {    "sequence": 0,    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string",    "creationDate": "2023-01-15T01:30:15.01Z"  },  "uri": "string",  "secret": "string"}

Was this page helpful?