core_authenticated_sessions_list
GET/core/authenticated_sessions/
AuthenticatedSession Viewset
Request
Query Parameters
last_ip string
last_user_agent string
ordering string
Which field to use when ordering the results.
page integer
A page number within the paginated result set.
page_size integer
Number of results to return per page.
search string
A search term.
user__username string
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
pagination
object
required
next numberrequired
previous numberrequired
count numberrequired
current numberrequired
total_pages numberrequired
start_index numberrequired
end_index numberrequired
results
object[]
required
uuid uuid
current booleanrequired
Check if session is currently active session
user_agent
object
required
Get parsed user agent
device
object
required
User agent device
brand stringrequired
family stringrequired
model stringrequired
os
object
required
User agent os
family stringrequired
major stringrequired
minor stringrequired
patch stringrequired
patch_minor stringrequired
user_agent
object
required
User agent browser
family stringrequired
major stringrequired
minor stringrequired
patch stringrequired
string stringrequired
geo_ip
object
nullable
required
Get GeoIP Data
continent stringrequired
country stringrequired
lat doublerequired
long doublerequired
city stringrequired
asn
object
nullable
required
Get ASN Data
asn integerrequired
as_org stringnullablerequired
network stringnullablerequired
user integerrequired
last_ip stringrequired
last_user_agent string
last_used date-timerequired
expires date-timenullable
{
"pagination": {
"next": 0,
"previous": 0,
"count": 0,
"current": 0,
"total_pages": 0,
"start_index": 0,
"end_index": 0
},
"results": [
{
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"current": true,
"user_agent": {
"device": {
"brand": "string",
"family": "string",
"model": "string"
},
"os": {
"family": "string",
"major": "string",
"minor": "string",
"patch": "string",
"patch_minor": "string"
},
"user_agent": {
"family": "string",
"major": "string",
"minor": "string",
"patch": "string"
},
"string": "string"
},
"geo_ip": {
"continent": "string",
"country": "string",
"lat": 0,
"long": 0,
"city": "string"
},
"asn": {
"asn": 0,
"as_org": "string",
"network": "string"
},
"user": 0,
"last_ip": "string",
"last_user_agent": "string",
"last_used": "2024-09-27T14:26:18.053Z",
"expires": "2024-09-27T14:26:18.053Z"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Loading...