{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mojang/json-schema/mojang-player-certificates-schema.json",
  "title": "PlayerCertificates",
  "description": "Player keypair payload returned by /player/certificates.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mojang-keys-api-openapi.yml#/components/schemas/PlayerCertificates",
  "type": "object",
  "properties": {
    "keyPair": {
      "type": "object",
      "description": "PEM-encoded RSA keypair.",
      "properties": {
        "privateKey": {
          "type": "string"
        },
        "publicKey": {
          "type": "string"
        }
      }
    },
    "publicKeySignature": {
      "type": "string",
      "description": "Mojang signature over the public key (legacy)."
    },
    "publicKeySignatureV2": {
      "type": "string",
      "description": "Mojang signature including player UUID (v2)."
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time",
      "description": "Keypair expiry time."
    },
    "refreshedAfter": {
      "type": "string",
      "format": "date-time",
      "description": "Earliest time the client should re-request the keypair."
    }
  }
}