Skip to content

Read a user's MFA settings

GET
/mfa/users/{user}/settings
curl --request GET \
--url https://work.optidata.cloud/api/mfa/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/settings \
--header 'Authorization: Bearer <token>'

Multi-factor settings of the user, created with their defaults on first read.

user
required
string format: uuid

UUID of the user.

The user’s MFA settings.

Media typeapplication/json
object
id
integer format: int64
user_id
integer format: int64
is_2fa_enabled

Whether a second factor is required at login.

boolean
created_at
string format: date-time
updated_at
string format: date-time
key
additional properties
any
Examples
Examplesettings
{
"id": 42,
"user_id": 15,
"is_2fa_enabled": true,
"created_at": "2026-02-01T10:00:00.000000Z",
"updated_at": "2026-08-01T10:00:00.000000Z"
}

Missing, malformed or expired authentication key.

Media typeapplication/json

Authentication failures use an error key rather than message.

object
error
required
string
Examples
Examplemissing

No bearer token sent

{
"error": "JWT passport exception: Missing bearer token in request"
}

The resource does not exist, or does not belong to the given drive.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplemissing
{
"message": "No query results for model [App\\Models\\Node] 99999999"
}

Rate limit exceeded. Retry after the window resets.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplethrottled
{
"message": "Too Many Attempts."
}