auth-tokens

List Post

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

Request

This endpoint expects an object.
client_id
stringOptional
An identifier that represents the application, which requested the token. Only relevant for application access tokens.
requested_token_type
enumOptional
The type of the requested token.
subject
stringOptional
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.
POST
1curl -X POST https://api.devrev.ai/auth-tokens.list \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
Response
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}