API Stability Long-Term

The token() GraphQL query is used to get information on a token based on its unique identification.

Syntax

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

graphql
token(
      tokenId: string!
   ): Token!

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

Show:
graphql
query {
  token(
     tokenID: "JEI37lwq2V6k9I2xCtI3Xres8xQPx9F5" 
    )
    { name, expireAt }
}

Returned Datatypes

For token, there are a few parameters. Below is a list of them along with a description of each:

Table: Token

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 17, 2024
createdAtlongyes Long-TermThe date the token was created.
expireAtlong  Long-TermThe time at which the token expires.
idstringyes Long-TermThe identifier of the token.
ipFilterstring  Long-TermThe IP filter on the token.
ipFilterV2string  Long-TermThe IP filter on the token.
namestringyes Long-TermThe name of the token.