auth-tokens

List

GET
Gets the token metadata for all the tokens corresponding to the given token type issued for a given subject.

Query parameters

client_idstringOptional
An identifier that represents the application, which requested the token. Only relevant for application access tokens.
requested_token_typeenumOptional
The type of the requested token. If no value is specified, the response will include tokens of all the types.
subjectstringOptional
The subject associated with the token. In the absence of this parameter, the ID of the authenticated entity is treated as the subject.

Response

This endpoint returns an object
tokens
list of objects
The list of token metadata.
GET
1curl https://api.devrev.ai/auth-tokens.list \
2 -H "Authorization: <apiKey>"
200Retrieved
1{
2 "tokens": [
3 {
4 "id": "id",
5 "client_id": "client_id",
6 "created_date": "2023-01-01T12:00:00Z",
7 "display_id": "display_id",
8 "expires_at": "2023-01-01T12:00:00Z",
9 "issued_at": "2023-01-01T12:00:00Z",
10 "modified_date": "2023-01-01T12:00:00Z",
11 "requested_token_type": "urn:devrev:params:oauth:token-type:aat",
12 "scopes": [
13 "scopes"
14 ],
15 "status": "active",
16 "subject": "subject",
17 "token_hint": "token_hint"
18 }
19 ]
20}