Creates a new MqttToken as a super admin
Query parameters
-
allowedPath
string Required allowed path
-
validSeconds
number number of seconds in the future. 31536000
-
iw-build-id
string build id of the client
-
iw-package-id
string package id of the client
GET
/api/base/api_token/create_mqtt_jwt
curl \
--request GET 'https://replace-with-own-host.iw-erp.de/api/base/api_token/create_mqtt_jwt?allowedPath=string' \
--header "x-session-token: $API_KEY"
Response examples (200)
{
"id": 42,
"sessionid": "string",
"selectedcustomer": {
"id": 42,
"slackchannel": "string",
"displayname": "string",
"deleted": true,
"created": "2025-05-04T09:42:00Z",
"updated": "2025-05-04T09:42:00Z"
},
"start": "2025-05-04T09:42:00Z",
"ip": "string",
"valid": true,
"is_api_key": true,
"is_dg": true,
"missing2fa": true,
"start_in_vpn": true,
"auth_by_credentials": true,
"auth_by_google": true,
"auth_by_microsoft": true,
"auth_by_cloudflare": true
}