Skip to content

Login history

GET
/auth/login-history
curl --request GET \
--url https://localhost:3000/api/v1/auth/login-history \
--header 'Authorization: <Authorization>'

Returns the authenticated account’s authentication events, newest first. The history is capped at the 100 most recent events per account.

limit
integer

Page size (default: 20, max: 100)

cursor
string

Opaque cursor from next_cursor (|)

Login history page

Media typeapplication/json
object
events
required
Array<object>
object
created_at
required
string format: date-time
device
required
string
event_type
required
string
id
required
string format: uuid
ip
required
string
success
required
boolean
has_more
required
boolean
next_cursor
string

Example

{
"events": [
{
"created_at": "2026-11-15T10:30:00Z",
"device": "Mozilla/5.0 (X11; Linux x86_64) Firefox/133.0",
"event_type": "login",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ip": "203.0.113.7",
"success": true
}
],
"has_more": true,
"next_cursor": "2026-11-14T09:12:00Z|3fa85f64-5717-4562-b3fc-2c963f66afa6"
}

Invalid limit or cursor

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Unauthorized

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Internal error

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}