{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-create-transit-key-request-schema.json",
  "title": "CreateTransitKeyRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-crypto-keys-api-openapi.yml#/components/schemas/CreateTransitKeyRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]+$",
      "description": "Machine name for the key (alphanumeric plus hyphens and underscores)."
    },
    "key_type": {
      "type": "string",
      "enum": [
        "aes256-gcm",
        "hmac-sha256",
        "hmac-sha512",
        "rsa-2048",
        "rsa-3072",
        "rsa-4096",
        "ecdsa-p256",
        "ecdsa-p384",
        "ed25519",
        "ecdh-p256"
      ],
      "default": "aes256-gcm",
      "description": "Key algorithm. Asymmetric types (RSA, ECDSA, Ed25519) require a Pro or Enterprise plan."
    },
    "mode": {
      "type": "string",
      "enum": [
        "cloud-only",
        "bundled"
      ],
      "description": "`cloud-only` (default) keys never leave KnoxCall; `bundled` keys can be exported wrapped for edge use."
    },
    "description": {
      "type": "string"
    }
  }
}