Skip to main content
POST
/
api
/
v1
/
ai
/
strategy
/
generate
curl --request POST \
  --url https://mcp.echozero.app/api/v1/ai/strategy/generate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "prompt": "Conservative SOL swing bot with tight stop loss"
}
'
{
  "success": true,
  "data": {
    "summary": {
      "title": "<string>",
      "summary": "<string>",
      "tags": [
        "<string>"
      ]
    },
    "draftConfig": {}
  }
}

Authorizations

x-api-key
string
header
required

Headers

x-signature
string

HMAC-SHA256 signature: HMAC-SHA256(secretKey, timestamp + METHOD + path + body). Optional -- when omitted, HMAC verification is skipped.

x-timestamp
string

Request timestamp in epoch milliseconds. Required when x-signature is provided. Rejected if drift exceeds 5 minutes.

Body

application/json
prompt
string
required
Maximum string length: 2000
chains
enum<string>[]
Available options:
SOLANA,
CHILIZ,
FLOW,
ARBITRUM
riskLevel
enum<string>
Available options:
LOW RISK,
MID RISK,
HIGH RISK
tags
string[]
baseBotId
string
currentConfigJson
string

Existing JSON configuration to refine

Response

Generated strategy suggestion.

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload