{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prowl-chat/json-schema/prowl-chat-create-mcpkey-request-schema.json",
  "title": "CreateMCPKeyRequest",
  "description": "POST /api/mcp/keys body.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prowl-chat-openapi.json#/components/schemas/CreateMCPKeyRequest",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120,
      "title": "Name",
      "default": ""
    },
    "allowed_categories": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Allowed Categories"
    },
    "denied_categories": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Denied Categories"
    },
    "daily_spend_limit_usd": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Daily Spend Limit Usd"
    },
    "total_spend_limit_usd": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Spend Limit Usd"
    },
    "ip_allowlist": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Ip Allowlist"
    }
  },
  "type": "object"
}