Skip to main content
POST
Complete TOTP MFA enrollment

Authorizations

Authorization
string
header
required

Basic Auth header with your app ID as the username and your app secret as the password.

Headers

privy-app-id
string
required

ID of your Privy app.

privy-user-token
string
required

Access token or custom authentication JWT for the user the request acts on.

Minimum string length: 1

Path Parameters

user_id
string
required

Body

application/json

Completes a TOTP MFA ceremony with a code from the authenticator.

code
string
required
Required string length: 6

Response

200 - application/json

TOTP MFA enrolled.

An MFA token and the current user after completing an MFA ceremony.

token
string
required

JWT proving the user completed MFA.

Minimum string length: 1
expires_at
integer
required

Unix timestamp in seconds when the MFA token expires.

Required range: x >= 0
user
User · object
required

A Privy user object.

Example: