GET /devices
Retrieve the list of all login devices for the current user.
Sessions & Devices `bearerAuth` application/json
Referenced Schemas
dto.DeviceListResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
items |
array of
See dto.DeviceResponse |
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.DeviceResponse
User device info (with security enhancement fields)
| Field | Type | Required | Example | Constraints | Description |
browser |
string |
No |
Safari |
|
Browser |
created_at |
string |
No |
2026-01-01T00:00:00Z |
|
First login |
device_fingerprint |
string |
No |
sha256:abc123def |
|
Device fingerprint |
device_name |
string |
No |
My iPhone |
|
Device name |
id |
string |
No |
dev_abc123 |
|
Device ID |
ip |
string |
No |
192.168.1.1 |
|
IP |
is_trusted |
boolean |
No |
True |
|
Is trusted |
last_seen |
string |
No |
2026-04-15T10:30:00Z |
|
Last used |
login_count |
integer |
No |
42 |
|
Login count |
os |
string |
No |
iOS 17 |
|
OS |
session_id |
string |
No |
sess_123 |
|
Associated session |
trust_score |
integer |
No |
85 |
|
Trust score |
type |
string |
No |
mobile |
|
Type |
user_id |
string |
No |
usr_abc123 |
|
User ID |
dto.SimpleResponseWrapper
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.PageInfo
| Field | Type | Required | Example | Constraints | Description |
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 |