core_authenticated_sessions_retrieve
GET/api/v3//core/authenticated_sessions/:uuid/
AuthenticatedSession Viewset
Request
Path Parameters
uuid uuidrequired
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
uuiduuid
currentbooleanrequired
Check if session is currently active session
user_agent objectrequired
geo_ip objectnullablerequired
asn objectnullablerequired
userintegerrequired
last_ipstringrequired
last_user_agentstringrequired
last_useddate-timerequired
expiresdate-timerequired
{
"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-07-29T15:51:28.071Z",
"expires": "2024-07-29T15:51:28.071Z"
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "/api/v3/core/authenticated_sessions/:uuid/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());