POST
/
sdk
/
{environmentId}
/
users
/
mfa
/
register
/
totp

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Body

application/json
code
string
required

The TOTP code generated by the user

type
enum<string>
required
Available options:
totp,
passkey

Response

200 - application/json
alias
string

The optional alias for the MFA device

createdAt
string

The date and time the MFA device was created

default
boolean

Whether or not this is the default MFA device for the user

id
string
Required string length: 36
type
enum<string>
Available options:
totp,
passkey
verified
boolean

Whether or not the user has a verified this MFA Device

verifiedAt
string | null

The date and time the MFA device was verified