{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-vault-token-detail-schema.json",
  "title": "VaultTokenDetail",
  "description": "A detokenized token — includes the original value.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-vaults-api-openapi.yml#/components/schemas/VaultTokenDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "token": {
      "type": "string"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "value": {
      "type": "string",
      "description": "The original value (UTF-8)."
    },
    "value_b64": {
      "type": "string",
      "description": "The original value, base64-encoded (for binary-safe handling)."
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "crypto_key_version": {
      "type": "integer",
      "description": "The vault key version that encrypted this token."
    }
  }
}