auth-tokens

Get Post

POST
Gets the token metadata corresponding to the given token ID under the given Dev organization.

Request

This endpoint expects an object.
token_id
stringRequired
The unique identifier of the token under a given Dev organization.

Response

This endpoint returns an object
token
object
POST
1curl -X POST https://api.devrev.ai/auth-tokens.get \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "token_id": "token_id"
6}'
200Successful
1{
2 "token": {
3 "id": "id",
4 "client_id": "client_id",
5 "created_date": "2023-01-01T12:00:00Z",
6 "display_id": "display_id",
7 "expires_at": "2023-01-01T12:00:00Z",
8 "issued_at": "2023-01-01T12:00:00Z",
9 "modified_date": "2023-01-01T12:00:00Z",
10 "requested_token_type": "urn:devrev:params:oauth:token-type:aat",
11 "scopes": [
12 "scopes"
13 ],
14 "status": "active",
15 "subject": "subject",
16 "token_hint": "token_hint"
17 }
18}