cURL
curl --request POST \ --url https://api.example.com/v1beta/secrets/{uuid}/totp \ --header 'Authorization: Bearer <token>'
{ "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "code": "<string>" }
Generate a current TOTP code for a login secret that has 2FA configured.
Enter your API key as the bearer token. Set header: Authorization to Bearer <api_key>
Authorization
Bearer <api_key>
The UUID of the secret.
Successful response
Unique identifier of the secret.
Current 6-digit TOTP code.