{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mojang/json-schema/mojang-entitlements-schema.json",
  "title": "Entitlements",
  "description": "Account entitlements for Minecraft store items.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mojang-entitlements-api-openapi.yml#/components/schemas/Entitlements",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "description": "Owned entitlement items.",
      "items": {
        "$ref": "#/$defs/EntitlementItem"
      }
    },
    "signature": {
      "type": "string",
      "description": "Mojang signature over the items array."
    },
    "keyId": {
      "type": "string",
      "description": "Key identifier used for the signature."
    }
  },
  "$defs": {
    "EntitlementItem": {
      "type": "object",
      "description": "A single Minecraft entitlement item.",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Entitlement name (e.g. product_minecraft, game_minecraft)."
        },
        "source": {
          "type": "string",
          "description": "How the entitlement was granted (PURCHASE, GIFT, MS_STORE)."
        },
        "signature": {
          "type": "string",
          "description": "Mojang signature for this item."
        }
      }
    }
  }
}