API reference · Auth & profile
List signed-in devices
get
/auth/sessions| Authentication | Customer token (Bearer) |
|---|---|
| Access | Free user · Pro user Customer token (Bearer) — free and paid users |
The account's live sign-ins (tokens from /auth/verify), the current one first, then by last use. user_agent and ip are recorded at sign-in (null for sessions created before they were recorded); the app shows the browser and OS parsed from user_agent. last_used_at falls back to created_at. Support sessions opened by the Rawi team are not listed.
Responses
200
| Field | Type | Description |
|---|---|---|
id* | integer | Unique ID. |
current* | boolean | |
user_agent* | string | null | |
ip* | string | null | |
created_at* | string | null | When it was created (ISO 8601). |
last_used_at* | string | null |
json
[
{
"id": 41,
"current": true,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36",
"ip": "203.0.113.7",
"created_at": "2026-11-26T09:00:00Z",
"last_used_at": "2026-11-26T10:12:00Z"
},
{
"id": 38,
"current": false,
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) Safari/604.1",
"ip": "198.51.100.20",
"created_at": "2026-11-20T18:30:00Z",
"last_used_at": "2026-11-24T08:01:00Z"
}
]
401 — Missing/invalid token
| Field | Type |
|---|---|
message* | string |
code | string |
json
{
"message": "Please sign in to continue; your session has ended or is not valid.",
"code": "unauthenticated"
}
curl example
bash
curl -X GET 'http://127.0.0.1:8010/api/auth/sessions' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"