The login endpoint can be used to verify that a login of an end-user is within the limit of devices that are allowed to be used within a certain period of time (in days). Provide the following data structure in the body of the request (example):
“useragent”: “Mozilla/5.0 (Linux; Android 10; SM-G996U Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.36”,
appid: Define a sufficiently long, unique string to identify your application (10-1024 characters long).
userid: Your internal id of the end-user represented as a string.
deviceid: should be used to uniquely identify mobile devices
useragent: the userAgent from the client request passed on to a webserver.
ip: the IP address of the end-user request
maxDevices: pass on the maximum number of devices per user as integer (optional, default = 5)
maxDuration: pass on the maximum number of days of history to be used as integer (optional, default = 30)
The service will reply with a statusCode 200 when the request was processed successfully, otherwise statusCode 400.
the field loginRequestApproved contains either true or false; False if the request exceeds the defined limit of devices for this user.