login-history

Get a user's login history (internal)

Internal lookup for support and fraud review. Same paging as GET /v1/login_history, plus the risk details: decision, reasons, mode, coordinates and the header family the location came from. Requires the internal API key.

get/v1/users/{user_id}/login_history

Request

  • Base URL
    https://identity-api.paymongo.com
  • URL
    https://identity-api.paymongo.com/v1/users/{user_id}/login_history
  • Auth
    none required

Path parameters

user_idstring required

User id

Query parameters

limitinteger

Page size (1-100, default 10)

afterstring

Login event id — return the page after (older than) this event

Headers

X-Internal-Api-Keystring required

Internal API key

Response

OK

has_moreboolean

Example response

{
  "data": [
    {
      "attributes": {
        "auth_method": "password",
        "created_at": "2026-10-16 02:00:00+00:00",
        "device": "Chrome on macOS",
        "device_id": "kdev_1f2e3d4c5b6a7980a1b2c3d4",
        "factor": "email",
        "geo_family": "forwarded",
        "ip_address": "49.150.111.43",
        "latitude": 14.5995,
        "location": {
          "city": "Manila",
          "country_code": "PH",
          "country_name": "Philippines",
          "region": "Metro Manila"
        },
        "longitude": 120.9842,
        "outcome": "succeeded",
        "risk_decision": "step_up",
        "risk_mode": "shadow",
        "risk_reasons": [
          "new_device"
        ],
        "session_id": "session_abc123",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.