AniList · JSON Structure

Anilist Tokenrequest Structure

TokenRequest schema from AniList GraphQL API v2

Type: object Properties: 5 Required: 5
AnimeMangaEntertainmentMediaSocialDatabaseGraphQLOAuth2Public APIs

TokenRequest is a JSON Structure definition published by AniList, describing 5 properties, of which 5 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

grant_type client_id client_secret redirect_uri code

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

JSON Structure

anilist-tokenrequest-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-tokenrequest-structure.json",
  "name": "TokenRequest",
  "description": "TokenRequest schema from AniList GraphQL API v2",
  "type": "object",
  "properties": {
    "grant_type": {
      "type": "string",
      "enum": [
        "authorization_code"
      ],
      "example": "authorization_code"
    },
    "client_id": {
      "type": "string"
    },
    "client_secret": {
      "type": "string"
    },
    "redirect_uri": {
      "type": "uri"
    },
    "code": {
      "type": "string",
      "description": "Authorization code received from the redirect"
    }
  },
  "required": [
    "grant_type",
    "client_id",
    "client_secret",
    "redirect_uri",
    "code"
  ]
}