{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mojang/json-schema/mojang-xbox-login-request-schema.json",
  "title": "XboxLoginRequest",
  "description": "Body for /authentication/login_with_xbox.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mojang-authentication-api-openapi.yml#/components/schemas/XboxLoginRequest",
  "type": "object",
  "required": [
    "identityToken"
  ],
  "properties": {
    "identityToken": {
      "type": "string",
      "description": "XSTS identity token formatted as `XBL3.0 x={userhash};{token}`."
    },
    "ensureLegacyEnabled": {
      "type": "boolean",
      "description": "When true, ensures legacy Mojang accounts can also log in."
    }
  }
}