Method: tokens.verify
Stay organized with collections
Save and categorize content based on your preferences.
Verify a Chrome Device Token.
HTTP request
GET https://chromedevicetoken.googleapis.com/v1/tokens/{name}:verify
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. The name of the token to verify. Format: tokens/{token}
|
Query parameters
Parameters |
tokenType |
enum (TokenType )
|
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response message for verifying token.
JSON representation |
{
"token": {
object (Token )
},
"tokenStatus": enum (TokenStatus )
} |
Fields |
token |
object (Token )
|
tokenStatus |
enum (TokenStatus )
|
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/chromeosdevicetoken
TokenStatus
Enums |
UNSPECIFIED_TOKEN_STATUS |
Token Status unspecified. |
VALID |
Device token is valid |
INVALID |
Device token is invalid |
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\u003eThis document details how to verify a Chrome Device Token using the \u003ccode\u003everify\u003c/code\u003e API endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe API requires a \u003ccode\u003eGET\u003c/code\u003e request to a specific URL with the token name as a path parameter and optional token type as a query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes the token details and its status (valid, invalid, or unspecified).\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required using the \u003ccode\u003ehttps://www.googleapis.com/auth/chromeosdevicetoken\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: tokens.verify\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.VerifyTokenResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n- [TokenStatus](#TokenStatus)\n\nVerify a Chrome Device Token.\n\n### HTTP request\n\n`GET https://chromedevicetoken.googleapis.com/v1/tokens/{name}:verify`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|----------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the token to verify. Format: tokens/{token} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------|\n| `tokenType` | `enum (`[TokenType](/chrome/chrome-device-token/rest/v1/tokens#TokenType)`)` |\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 verifying token.\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"token\": { object (/chrome/chrome-device-token/rest/v1/tokens#Token) }, \"tokenStatus\": enum (/chrome/chrome-device-token/rest/v1/tokens/verify#TokenStatus) } ``` |\n\n| Fields ||\n|---------------|-----------------------------------------------------------------------------------------|\n| `token` | `object (`[Token](/chrome/chrome-device-token/rest/v1/tokens#Token)`)` |\n| `tokenStatus` | `enum (`[TokenStatus](/chrome/chrome-device-token/rest/v1/tokens/verify#TokenStatus)`)` |\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/chromeosdevicetoken`\n\nTokenStatus\n-----------\n\n| Enums ||\n|----------------------------|---------------------------|\n| `UNSPECIFIED_TOKEN_STATUS` | Token Status unspecified. |\n| `VALID` | Device token is valid |\n| `INVALID` | Device token is invalid |"]]