Autional Autional
API Reference GitHub autional.com →

GET /admin/users/{user_id}/login-histories

Get login history records for a specified user

Account Management `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes User ID
page query integer No 1 Page number
page_size query integer No 20 Items per page

Responses

StatusDescriptionSchema
200Login historydto.LoginHistoryListResponse

Referenced Schemas

dto.LoginHistoryListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See dto.LoginHistoryResponse

No Use items uniformly
message string No
pagination object No Pagination info (nested object)
timestamp string No
total integer No Total count (flattened for direct reading)

dto.LoginHistoryResponse

User login history record

FieldTypeRequiredExampleConstraintsDescription
browser string No Chrome Browser
created_at string No 2026-04-15T10:30:00Z Login time
device_type string No desktop Device type
fail_reason string No Failure reason
id string No hist_abc123 Record ID
ip string No 192.168.1.1 IP address
location string No Beijing Geolocation
login_type string No password Login type
os string No Windows 10 Operating system
session_id string No sess_123 Session ID
status string No success Status
tenant_id string No tnt_xyz789 Tenant ID
user_agent string No Mozilla/5.0 User-Agent
user_id string No usr_abc123 User ID

gitee_com_linmes_authms_base_dto.PageInfo

FieldTypeRequiredExampleConstraintsDescription
has_next boolean No HasNext indicates whether there is a next page
has_prev boolean No HasPrev indicates whether there is a previous page
page integer No Page is the current page number (1-based)
page_size integer No PageSize is the number of items per page
total integer No Total is the total number of items across all pages
total_pages integer No TotalPages is the total number of pages