retrieve User Recent Login

GET {{baseUrl}}/api/user/recent-login?offset=<string>&limit=<string>&userId=<string>

Retrieves the last number of login records. OR Retrieves the last number of login records for a user.

Request Params

KeyDatatypeRequiredDescription
offsetstringThe initial record. e.g. 0 is the last login, 100 will be the 100th most recent login.
limitstring(Optional, defaults to 10) The number of records to retrieve.
userIdstringThe Id of the user.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;logins&quot;:[{&quot;applicationName&quot;:&quot;\u003cstring\u003e&quot;,&quot;location&quot;:{&quot;city&quot;:&quot;\u003cstring\u003e&quot;,&quot;country&quot;:&quot;\u003cstring\u003e&quot;,&quot;latitude&quot;:&quot;\u003cdouble\u003e&quot;,&quot;longitude&quot;:&quot;\u003cdouble\u003e&quot;,&quot;region&quot;:&quot;\u003cstring\u003e&quot;,&quot;zipcode&quot;:&quot;\u003cstring\u003e&quot;,&quot;displayString&quot;:&quot;\u003cstring\u003e&quot;},&quot;loginId&quot;:&quot;\u003cstring\u003e&quot;},{&quot;applicationName&quot;:&quot;\u003cstring\u003e&quot;,&quot;location&quot;:{&quot;city&quot;:&quot;\u003cstring\u003e&quot;,&quot;country&quot;:&quot;\u003cstring\u003e&quot;,&quot;latitude&quot;:&quot;\u003cdouble\u003e&quot;,&quot;longitude&quot;:&quot;\u003cdouble\u003e&quot;,&quot;region&quot;:&quot;\u003cstring\u003e&quot;,&quot;zipcode&quot;:&quot;\u003cstring\u003e&quot;,&quot;displayString&quot;:&quot;\u003cstring\u003e&quot;},&quot;loginId&quot;:&quot;\u003cstring\u003e&quot;}]}