Get sign-in activities

Description

Retrieve a list of sign-in activities by a specified user.

Request

HTTP Method: GET

Query Parameter Description
N/A
Path Parameter Description
user-id ID of the user.
curl -X GET \
  https://<tenant-domain>/api/v1/admin/users/<user-id>/signin_activities \
  -H 'content-type: application/json' \
  -H 'x-user-email: <email-address' \
  -H 'x-user-token: <api-token>'

Response

A successful request will return a JSON Array describing login events by the specified user.

Field description

Parameter Description
id Signin Activity ID.
user_id Id of user that signed in
user_agent User agent string of client used to sign in
ip IP address of signin
created_at Timestamp describing when user logged in

Sample response

[
  {
    "id": 15,
    "user_id": 1,
    "ip": "::1",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36",
    "created_at": "2019-08-21T08:45:57.596Z"
  }
]