# REST Resource: tokens

## Resource: Token

JSON template for token resource in Directory API.

| JSON representation |
|---|
| ``` { "clientId": string, "scopes": [ string ], "userKey": string, "anonymous": boolean, "displayText": string, "nativeApp": boolean, "kind": string, "etag": string } ``` |

| Fields ||
|---|---|
| `clientId` | `string` The Client ID of the application the token is issued to. |
| `scopes[]` | `string` A list of authorization scopes the application is granted. |
| `userKey` | `string` The unique ID of the user that issued the token. |
| `anonymous` | `boolean` Whether the application is registered with Google. The value is `true` if the application has an anonymous Client ID. |
| `displayText` | `string` The displayable name of the application the token is issued to. |
| `nativeApp` | `boolean` Whether the token is issued to an installed application. The value is `true` if the application is installed to a desktop or mobile device. |
| `kind` | `string` The type of the API resource. This is always `admin#directory#token`. |
| `etag` | `string` ETag of the resource. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/workspace/admin/directory/reference/rest/v1/tokens/delete` | Deletes all access tokens issued by a user for an application. |
| ### `https://developers.google.com/workspace/admin/directory/reference/rest/v1/tokens/get` | Gets information about an access token issued by a user. |
| ### `https://developers.google.com/workspace/admin/directory/reference/rest/v1/tokens/list` | Returns the set of tokens specified user has issued to 3rd party applications. |