This is a translation of the original English documentation page. Help us make it better.



object mfa.create(object/array MFA methods)

This method allows to create new MFA methods.

This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.


(object/array) MFA methods to create.

The method accepts MFA methods with the standard MFA method properties.

Return values

(object) Returns an object containing the IDs of the created MFA methods under the mfaids property. The order of the returned IDs matches the order of the passed items.


Creating MFA methods

Create a "Zabbix TOTP" MFA method utilizing time-based one-time passwords (TOTP), with the hash function for generating TOTP codes set to SHA-1 and the verification code length set to 6 digits.


           "jsonrpc": "2.0",
           "method": "mfa.create",
           "params": {
               "type": 1,
               "name": "Zabbix TOTP",
               "hash_function": 1,
               "code_length": 6
           "id": 1


           "jsonrpc": "2.0",
           "result": {
               "mfaids": [
           "id": 1


CMfa::create() in ui/include/classes/api/services/CMfa.php.