This method will create a new User2Factor Object for given type
Path parameters
-
type
string Required
Query parameters
-
iw-build-id
string build id of the client
-
iw-package-id
string package id of the client
GET
/api/base/2fa/new/{type}
curl \
--request GET 'https://replace-with-own-host.iw-erp.de/api/base/2fa/new/{type}' \
--header "x-session-token: $API_KEY"
Response examples (200)
{
"id": 42,
"factor_type": "string",
"shared_secret": "string",
"qr_code_content": "string",
"created": "2025-05-04T09:42:00Z",
"updated": "2025-05-04T09:42:00Z",
"deleted": true
}