oauth2_access_tokens_list
GET/api/v3//oauth2/access_tokens/
AccessToken Viewset
Request
Query Parameters
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.
provider integer
search string
A search term.
user integer
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": [
    {
      "pk": 0,
      "provider": {
        "pk": 0,
        "name": "string",
        "authentication_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "authorization_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "invalidation_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "property_mappings": [
          "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        ],
        "component": "string",
        "assigned_application_slug": "string",
        "assigned_application_name": "string",
        "assigned_backchannel_application_slug": "string",
        "assigned_backchannel_application_name": "string",
        "verbose_name": "string",
        "verbose_name_plural": "string",
        "meta_model_name": "string",
        "client_id": "string",
        "client_secret": "string",
        "access_code_validity": "string",
        "access_token_validity": "string",
        "refresh_token_validity": "string",
        "include_claims_in_id_token": true,
        "signing_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "encryption_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "redirect_uris": [
          {
            "matching_mode": "strict",
            "url": "string"
          }
        ],
        "jwks_sources": [
          "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        ]
      },
      "user": {
        "pk": 0,
        "username": "string",
        "name": "string",
        "is_active": true,
        "last_login": "2024-07-29T15:51:28.071Z",
        "is_superuser": true,
        "groups": [
          "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        ],
        "groups_obj": [
          {
            "pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "num_pk": 0,
            "name": "string",
            "is_superuser": true,
            "parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "parent_name": "string",
            "attributes": {}
          }
        ],
        "email": "[email protected]",
        "avatar": "string",
        "attributes": {},
        "uid": "string",
        "path": "string",
        "type": "internal",
        "uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      },
      "is_expired": true,
      "expires": "2024-07-29T15:51:28.071Z",
      "scope": [
        "string"
      ],
      "id_token": "string",
      "revoked": true
    }
  ]
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
property name* any
Validation Error
{
  "non_field_errors": [
    "string"
  ],
  "code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
  "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/oauth2/access_tokens/");
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());