Get login logs

GET /data/events/login-logs/last

Retrieve all login logs with filtering support. Filters can be specified in the query string to narrow down results by date range and limit.

Query parameters

  • before

    Filter logs before this date and time

  • limit

    Maximum number of login logs to return

Responses

  • 200 application/json

    List of login logs successfully retrieved

    Hide response attributes Show response attributes object
    • id string(uuid)

      Login log unique identifier

    • user_id string(uuid)

      User identifier

    • ip_address string

      IP address of the login

    • user_agent string

      User agent string

    • success boolean

      Whether the login was successful

    • created_at string(date-time)

      Login timestamp

GET /data/events/login-logs/last
curl \
 --request GET 'http://api.example.com/data/events/login-logs/last' \
 --header "Authorization: $API_KEY"
Response examples (200)
[
  {
    "id": "a24a6ea4-ce75-4665-a070-57453082c25",
    "user_id": "b35b7fb5-df86-5776-b181-68564193d36",
    "ip_address": "192.168.1.100",
    "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
    "success": true,
    "created_at": "2023-01-01T12:00:00Z"
  }
]