API Stability Long-Term

The validateAccessTokenV2() GraphQL query field is used to validate a given Access Token.

Syntax

Below is the syntax for the validateAccessTokenV2() query field:

graphql
validateAccessTokenV2(
      accessToken: string!
   ): AccessTokenValidatorResultType!

Below is an example of how this query field might be used:

Show:
graphql
query {
  validateAccessTokenV2(
      accessToken: "0U3ySo0mVIgMsRR1XSPhHxoNnLpI3U1A~dmLr436nTEBjUzBpdLEUEyreQxH8GdFYmlw6Q3d9RThO"
    )
    {sessionId, showTermsAndConditions}
}

Returned Datatypes

AccessTokenValidatorResultType has a couple of parameters and some sub-parameters. Below is a list of them along with a description of each:

Table: AccessTokenValidatorResultType

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 23, 2024
sessionIdstring  Long-TermThe unique identifier of the session.
showTermsAndConditionsShowTermsAndConditions  Long-TermShow the terms and conditions. See ShowTermsAndConditions.