Method: tokens.create

  • Creating a Device Token may invalidate previous tokens for some token types.

  • The HTTP request to create a token uses a POST method to the specified URL.

  • The request and response bodies both contain an instance of a Token.

  • Authorization requires a specific OAuth scope for chromeosdevicetoken.

Create a Device Token.

This may invalidate previous token for some token types.

HTTP request

POST https://chromedevicetoken.googleapis.com/v1/tokens

The URL uses gRPC Transcoding syntax.

Request body

The request body contains an instance of Token.

Response body

If successful, the response body contains a newly created instance of Token.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/chromeosdevicetoken