Mojang · JSON Structure

Minecraft Services Xbox Login Request Structure

Body for /authentication/login_with_xbox.

Type: object Properties: 2 Required: 1
Games And ComicsMinecraftGamingIdentityPlayer ProfilesSessionPublic APIs

XboxLoginRequest is a JSON Structure definition published by Mojang, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

identityToken ensureLegacyEnabled

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

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mojang/refs/heads/main/json-structure/minecraft-services-xbox-login-request-structure.json",
  "name": "XboxLoginRequest",
  "description": "Body for /authentication/login_with_xbox.",
  "type": "object",
  "properties": {
    "identityToken": {
      "type": "string",
      "description": "XSTS identity token formatted as `XBL3.0 x={userhash};{token}`.",
      "example": "XBL3.0 x=2535465465465465;eyJhbGciOiJSUzI1NiIs..."
    },
    "ensureLegacyEnabled": {
      "type": "boolean",
      "description": "When true, ensures legacy Mojang accounts can also log in.",
      "example": true
    }
  },
  "required": [
    "identityToken"
  ]
}