{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quantifyme-ai/json-schema/quantifyme-ai-one-shot-request-schema.json",
  "title": "OneShotRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quantifyme-ai-openapi.json#/components/schemas/OneShotRequest",
  "properties": {
    "api_key": {
      "description": "Your API key, if you cannot set the X-API-Key header. Agents that mint a key at runtime (e.g. a ChatGPT Action calling POST /api/v1/key/trial) should pass the returned `api_key` here on every subsequent call. The X-API-Key header wins when both are present.",
      "type": "string"
    },
    "aux_feeds": {
      "$ref": "#/$defs/AuxFeeds"
    },
    "community_id": {
      "description": "Deploy an existing community strategy by id instead of generating. See GET /api/v1/community.json.",
      "type": "integer"
    },
    "deliver_to": {
      "description": "Channels to wire on deploy. Keys: webhook (bool|url), telegram (chat_id).",
      "type": "object"
    },
    "entry_token": {
      "description": "Your integration's entry token. ALWAYS send this if you have one, even when you also send api_key. It is what lets this call succeed when the key is not ready yet - agents that issue tool calls in parallel can reach this endpoint before their own createTrialKey call has returned. With a valid entry_token the deploy proceeds under a fresh anonymous identity instead of failing with 401.",
      "type": "string"
    },
    "preset": {
      "description": "Deploy a curated template instead of generating. See GET /api/v1/presets.",
      "type": "string"
    },
    "prompt": {
      "description": "At most 4,000 characters; a longer prompt is refused with 400 prompt_too_long before anything is charged.",
      "maxLength": 4000,
      "type": "string"
    },
    "symbol": {
      "description": "FX pair or BTCUSD. Defaults to EURUSD.",
      "type": "string"
    },
    "timeframe": {
      "enum": [
        "1min",
        "5min",
        "15min",
        "1h"
      ],
      "type": "string"
    }
  },
  "required": [
    "prompt"
  ],
  "type": "object",
  "$defs": {
    "AuxFeeds": {
      "description": "Extra (symbol, timeframe) feeds merged into the strategy's features as aux_* columns. Max 3; must differ from the primary.",
      "items": {
        "properties": {
          "symbol": {
            "enum": [
              "EURUSD",
              "GBPUSD",
              "USDJPY",
              "USDCHF",
              "AUDUSD",
              "NZDUSD",
              "USDCAD",
              "BTCUSD"
            ],
            "type": "string"
          },
          "timeframe": {
            "enum": [
              "1min",
              "5min",
              "15min",
              "1h"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "maxItems": 3,
      "type": "array"
    }
  }
}