Retrieve all login logs with filtering support. Filters can be specified in the query string to narrow down results by date range and limit.
GET
/data/events/login-logs/last
curl
curl -X GET "http://api.example.com/data/events/login-logs/last?before=2022-07-12T00%3A00%3A00&limit=100" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
import requests
url = "http://api.example.com/data/events/login-logs/last"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
params = {
"before": "2022-07-12T00:00:00",
"limit": 100
}
payload = None
response = requests.get(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
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"
}
]