Skip to content

Start enabling the authenticator app: generates a pending secret and returns the otpauth URI for the QR code

POST
/v1/me/totp/setup
curl --request POST \
--url https://api.replifier.com/v1/me/totp/setup

20-byte secret stored encrypted, pending for 15 minutes; issuer Replifier and the user email. The dashboard draws the QR code. Calling it again replaces the pending secret. Registering TOTP counts as a first factor: it follows the same rule as passkeys (403 mfa_required with a factor already registered and a single-factor session; 403 mfa_enrollment_required outside the window). 409 totp_already_enabled if already active.

URI otpauth://totp/…

Media typeapplication/json
object
uri
required
string

Example generated

{
"uri": "example"
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Conflict

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}