AniList · JSON Structure

Anilist Tokenresponse Structure

TokenResponse schema from AniList GraphQL API v2

Type: object Properties: 4
AnimeMangaEntertainmentMediaSocialDatabaseGraphQLOAuth2Public APIs

TokenResponse is a JSON Structure definition published by AniList, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

token_type expires_in access_token refresh_token

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

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