Method: tokens.list

  • This API lists valid Chrome Device Tokens owned by a user.

  • The request uses a GET HTTP method to https://chromedevicetoken.googleapis.com/v1/tokens.

  • Optional query parameters can be used to control pagination and filter by token type.

  • The request body must be empty, and the response body contains a list of tokens and a nextPageToken for pagination.

  • This API requires the https://www.googleapis.com/auth/chromeosdevicetoken OAuth scope.

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