core_tokens_retrieve
GET/api/v3//core/tokens/:identifier/
Token Viewset
Request
Path Parameters
identifier stringrequired
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
pk uuidrequired
managed Managed by authentik (string)nullable
Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
identifier stringrequired
Possible values: <= 255 characters
, Value must match regular expression ^[-a-zA-Z0-9_]+$
intent IntentEnum (string)
Possible values: [verification
, api
, recovery
, app_password
]
user integer
user_obj
object
required
description string
expires date-timenullable
expiring boolean
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"managed": "string",
"identifier": "string",
"intent": "verification",
"user": 0,
"description": "string",
"expires": "2024-07-29T15:51:28.071Z",
"expiring": 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/core/tokens/:identifier/");
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());