Skip to content

TotpSetup

A new TOTP secret to add to an authenticator app.

object
secret
required

The secret in base32, for typing it into the app.

string
uri
required

The otpauth://totp/... URI of the secret.

string
qr_code
required

Schema: QrCode

object
setup_token
required

An opaque token that carries the secret to POST /two_factor/totp.

string
expires_at
required

When setup_token stops working.

string format: date-time

Example generated

{
"secret": "example",
"uri": "example",
"qr_code": {},
"setup_token": "example",
"expires_at": "2026-04-15T12:00:00Z"
}

For LLMs and coding agents:llms.txt,llms-full.txt, llms-small.txt

Analytics on this site