{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-transit-key-schema.json",
  "title": "TransitKey",
  "description": "A transit encryption key. Key material never leaves KnoxCall.\nThe list endpoint returns a projection without `tenant_id`,\n`created_by`, and `sandbox`.\n",
  "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/TransitKey",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "tenant_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "key_type": {
      "type": "string",
      "enum": [
        "aes256-gcm",
        "hmac-sha256",
        "hmac-sha512",
        "rsa-2048",
        "rsa-3072",
        "rsa-4096",
        "ecdsa-p256",
        "ecdsa-p384",
        "ed25519",
        "ecdh-p256"
      ]
    },
    "mode": {
      "type": "string",
      "enum": [
        "cloud-only",
        "bundled"
      ],
      "description": "`cloud-only` keys never leave KnoxCall; `bundled` keys can be exported wrapped for edge use."
    },
    "current_version": {
      "type": "integer",
      "description": "The active key version. Rotation increments this."
    },
    "deletion_allowed": {
      "type": "boolean",
      "description": "Whether key versions may be destroyed."
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": [
        "string",
        "null"
      ],
      "description": "The API key or user that created the key."
    },
    "sandbox": {
      "type": "boolean",
      "description": "Whether this key lives in Test (sandbox) mode."
    }
  }
}