core_authenticated_sessions_list
GET/api/v3//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
pagination
object
required
results
object[]
required
{
"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"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET '/api/v3/core/authenticated_sessions/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'