This method will create a new User2Factor Object for given type

GET /api/base/2fa/new/{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

Responses

  • 200 application/json

    This method will create a new User2Factor Object for given type

    Hide response attributes Show response attributes object
    • id integer
    • factor_type string
    • shared_secret string
    • qr_code_content string
    • created string(date-time)
    • updated string(date-time)
    • deleted boolean
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
}