Skip to content

Enable TOTP with a valid code and return 10 recovery codes (shown only this once)

POST
/v1/me/totp/confirm
curl --request POST \
--url https://api.replifier.com/v1/me/totp/confirm \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'
Media typeapplication/json
object
code
required
string
/^\d{6}$/

Example generated

{
"code": "example"
}

TOTP active and recovery codes

Media typeapplication/json
object
recoveryCodes
required
Array<string>

Example generated

{
"recoveryCodes": [
"example"
]
}

Invalid data

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"
}
}

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"
}
}

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"
}
}