For the complete documentation index, see llms.txt. This page is also available as Markdown.

Multi-factor authentication settings

Work in progress! This API is a work in progress and may change in future releases. In this version, allowing MFA to a user automatically enables it for them.

API actions

API path: panel/user/mfa/settings.


required permissions: users: "update".

Update MFA settings

post
/panel/user/mfa/settings/update

Set the multi-factor authentication policy for specific users, or for all of them.

Both target and settings are discriminated unions on type. Note the target list is capped at 100 user IDs, unlike the menu preset assignment which allows 10000.

Authorizations
AuthorizationstringRequired

Enter the panel session hash with the "NVX " prefix, e.g. "NVX fa7bf873fab9333144e171372a321b06". Obtain the hash from the accountAuth operation.

Body
targetone ofRequired

Which users the settings apply to. The shape depends on type.

or
settingsone ofRequired

Multi-factor authentication policy. The shape depends on type.

or
Responses
200

Successful response

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/panel/user/mfa/settings/update
POST /v2/panel/user/mfa/settings/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 80

{
  "target": {
    "type": "all"
  },
  "settings": {
    "type": "allowed",
    "factor_types": [
      "email"
    ]
  }
}
{
  "success": true
}

Both target and settings vary by their type field. See Update target and MFA settings below.


required permissions: users: "read".

Read default MFA settings

post
/panel/user/mfa/settings/default/read

Read the dealer-level default multi-factor authentication policy, applied to users with no explicit setting.

value is null when no default has been configured. Takes no parameters beyond the session credential.

Authorizations
AuthorizationstringRequired

Enter the panel session hash with the "NVX " prefix, e.g. "NVX fa7bf873fab9333144e171372a321b06". Obtain the hash from the accountAuth operation.

Responses
200

The default policy

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
valueone of · nullableOptional

The configured default, or null when none is set.

or
post/panel/user/mfa/settings/default/read
POST /v2/panel/user/mfa/settings/default/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "value": {
    "type": "allowed",
    "factor_types": [
      "email"
    ]
  }
}

value is null when the dealer has not configured a default.


required permissions: users: "update".

Update default MFA settings

post
/panel/user/mfa/settings/default/update

Set the dealer-level default multi-factor authentication policy. It applies to users with no explicit setting of their own.

Authorizations
AuthorizationstringRequired

Enter the panel session hash with the "NVX " prefix, e.g. "NVX fa7bf873fab9333144e171372a321b06". Obtain the hash from the accountAuth operation.

Body
settingsone ofRequired

Multi-factor authentication policy. The shape depends on type.

or
Responses
200

Successful response

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/panel/user/mfa/settings/default/update
POST /v2/panel/user/mfa/settings/default/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "settings": {
    "type": "allowed",
    "factor_types": [
      "email"
    ]
  }
}
{
  "success": true
}

The default applies to users who have no explicit setting of their own.

Types

MFA settings

factor_types is required when type is allowed, and must not be empty.

Update target

When type is selected, ids must contain between 1 and 100 user IDs. Note this is a tighter limit than the 10000 allowed by menu preset assignment.

Settings action type

  • allowed - MFA with the specified factor types is allowed for the users.

  • disallowed - MFA is disallowed for the users.

Factor type

  • email - a multi-digit code sent by email.

Last updated

Was this helpful?