Skip to main content
POST
/
api
/
v1
/
ai
/
strategy
/
save
curl --request POST \
  --url https://mcp.echozero.app/api/v1/ai/strategy/save \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "status": "DRAFT",
  "agentId": "507f1f77bcf86cd799439011"
}
'
{
  "success": true,
  "data": "507f1f77bcf86cd799439011"
}

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

Same body as POST /v1/strategies / GraphQL CreateTradingBotInput — see McpCreateTradingBotBodyDto.

The body is of type object.

Response

Created trading bot id.

success
boolean
required
Example:

true

data
string
required
Example:

"507f1f77bcf86cd799439011"