Description

Retrieve a list of signin 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-name>.tines.io/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.
identity Email associated with the user.
success Boolean representing success or failure on login.
failure_reason Reason for login failure if available.
referrer URL that that the user logged in from.
city City where the login occurred.
region Region/State/Providence where the login occurred.
country Country where the login occurred.

Sample response

[
   {
        "id": 15,
        "scope": "user",
        "strategy": "database_authenticatable",
        "identity": "user@tines.io",
        "success": true,
        "failure_reason": null,
        "user_type": "User",
        "user_id": 1,
        "context": "devise/sessions#create",
        "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",
        "referrer": "https://<tenant-name>.tines.io/users/sign_in",
        "city": null,
        "region": null,
        "country": null,
        "created_at": "2019-08-21T08:45:57.596Z"
    }
]