AniList · Schema

TokenResponse

TokenResponse schema from AniList GraphQL API v2

AnimeMangaEntertainmentMediaSocialDatabaseGraphQLOAuth2Public APIs

Properties

Name Type Description
token_type string
expires_in integer Token lifetime in seconds (1 year)
access_token string JWT access token
refresh_token string AniList does not currently support refresh tokens
View JSON Schema on GitHub

JSON Schema

anilist-tokenresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/anilist/refs/heads/main/json-schema/anilist-tokenresponse-schema.json",
  "title": "TokenResponse",
  "description": "TokenResponse schema from AniList GraphQL API v2",
  "type": "object",
  "properties": {
    "token_type": {
      "type": "string",
      "example": "Bearer"
    },
    "expires_in": {
      "type": "integer",
      "description": "Token lifetime in seconds (1 year)",
      "example": 31536000
    },
    "access_token": {
      "type": "string",
      "description": "JWT access token"
    },
    "refresh_token": {
      "type": "string",
      "nullable": true,
      "description": "AniList does not currently support refresh tokens"
    }
  }
}