Skip to main content
GET
/
users
/
{user_id}
/
totp
Get information about TOTP enrollment
curl --request GET \
  --url {schemes}://api.upsun.com/users/{user_id}/totp \
  --header 'Authorization: Bearer <token>'
{
  "issuer": "<string>",
  "account_name": "<string>",
  "secret": "<string>",
  "qr_code": "aSDinaTvuI8gbWludGxpZnk="
}

Authorizations

Authorization
string
header
required

Path Parameters

user_id
string<uuid>
required

The ID of the user.

Example:

"d81c8ee2-44b3-429f-b944-a33ad7437690"

Response

OK

issuer
string<uri>
account_name
string

Account name for the enrollment.

secret
string

The secret seed for the enrollment

qr_code
string<byte>

Data URI of a PNG QR code image for the enrollment.