{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-wallet-api-key-schema.json",
  "title": "API key",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hitbtc-api-keys-api-openapi.yml#/components/schemas/wallet_ApiKey",
  "type": "object",
  "required": [
    "api_key_first_six",
    "key_name",
    "exchange_read",
    "exchange_trade",
    "bank_read",
    "bank_withdraw",
    "is_active",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "api_key_first_six": {
      "type": "string",
      "description": "First 6 symbols of the public key.\n"
    },
    "key_name": {
      "type": "string",
      "description": "Name of the key.\n"
    },
    "exchange_read": {
      "type": "boolean",
      "description": "\"Orderbook, History, Trading balance\" API key access right.\n"
    },
    "exchange_trade": {
      "type": "boolean",
      "description": "\"Place/cancel orders\" API key access right.\n"
    },
    "bank_read": {
      "type": "boolean",
      "description": "\"Payment information\" API key access right.\n"
    },
    "bank_withdraw": {
      "type": "boolean",
      "description": "\"Withdraw cryptocurrencies\" API key access right.\n"
    },
    "allowed_ips": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/wallet_IPAddressCommon"
      },
      "description": "A list of whitelisted IPs.\n"
    },
    "is_active": {
      "type": "boolean",
      "description": "Flag indicating the API key is active.\n"
    },
    "created_at": {
      "type": "string",
      "description": "The date and time the key was created.\n"
    },
    "updated_at": {
      "type": "string",
      "description": "The date and time the key was updated.\n"
    }
  },
  "$defs": {
    "wallet_IPAddressCommon": {
      "title": "IP address",
      "oneOf": [
        {
          "type": "string",
          "format": "ipv4"
        },
        {
          "type": "string",
          "format": "ipv6"
        }
      ],
      "description": "IP address of the request sender provided by the client or detected automatically."
    }
  }
}