{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mojang/json-schema/mojang-session-profile-schema.json",
  "title": "SessionProfile",
  "description": "A signed session profile with textures and metadata properties.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mojang-session-api-openapi.yml#/components/schemas/SessionProfile",
  "type": "object",
  "required": [
    "id",
    "name",
    "properties"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Player UUID without hyphens."
    },
    "name": {
      "type": "string",
      "description": "Player username."
    },
    "properties": {
      "type": "array",
      "description": "Signed property list (currently only `textures`).",
      "items": {
        "$ref": "#/$defs/SessionProperty"
      }
    },
    "profileActions": {
      "type": "array",
      "description": "Sanctions or actions Mojang has taken on the profile.",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "SessionProperty": {
      "type": "object",
      "description": "A single signed session-profile property (e.g. textures).",
      "required": [
        "name",
        "value"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Property name (typically `textures`)."
        },
        "value": {
          "type": "string",
          "description": "Base64-encoded JSON payload (skin / cape URLs and metadata)."
        },
        "signature": {
          "type": "string",
          "description": "Mojang RSA signature of `value`. Present only when the request included `unsigned=false`."
        }
      }
    }
  }
}