Method: tokens.list
Stay organized with collections
Save and categorize content based on your preferences.
List valid Chrome Device Tokens owned by a user.
HTTP request
GET https://chromedevicetoken.googleapis.com/v1/tokens
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters |
pageSize |
integer
Requested page size. Server may return fewer records than requested. If unspecified, server will return 20 by default.
|
pageToken |
string
A token identifying a page of results the server should return.
|
tokenType |
enum (TokenType )
Token type to list
|
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response message for listing valid tokens owned by a user.
JSON representation |
{
"token": [
{
object (Token )
}
],
"nextPageToken": string
} |
Fields |
token[] |
object (Token )
List of tokens.
|
nextPageToken |
string
A token to retrieve next page of results. It is set to empty if no tokens remain in results.
|
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/chromeosdevicetoken
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-16 UTC."],[[["\u003cp\u003eList valid Chrome Device Tokens owned by a user using the \u003ccode\u003eGET\u003c/code\u003e method and the \u003ccode\u003ehttps://chromedevicetoken.googleapis.com/v1/tokens\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eControl the results through query parameters like \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003etokenType\u003c/code\u003e to specify the desired response.\u003c/p\u003e\n"],["\u003cp\u003eThe response body will include a list of tokens and a \u003ccode\u003enextPageToken\u003c/code\u003e if there are additional results available.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/chromeosdevicetoken\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: tokens.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListTokensResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nList valid Chrome Device Tokens owned by a user.\n\n### HTTP request\n\n`GET https://chromedevicetoken.googleapis.com/v1/tokens`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Requested page size. Server may return fewer records than requested. If unspecified, server will return 20 by default. |\n| `pageToken` | `string` A token identifying a page of results the server should return. |\n| `tokenType` | `enum (`[TokenType](/chrome/chrome-device-token/rest/v1/tokens#TokenType)`)` Token type to list |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message for listing valid tokens owned by a user.\n\n| JSON representation ||\n|-----------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"token\": [ { object (/chrome/chrome-device-token/rest/v1/tokens#Token) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------|\n| `token[]` | `object (`[Token](/chrome/chrome-device-token/rest/v1/tokens#Token)`)` List of tokens. |\n| `nextPageToken` | `string` A token to retrieve next page of results. It is set to empty if no tokens remain in results. |\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/chromeosdevicetoken`"]]