Skip to main content
POST
Create a strategy draft

Authorizations

x-api-key
string
header
required

Workspace API key for public agent API access

Body

application/json
name
string
required
Maximum string length: 100
Example:

"BTC momentum breakout"

strategyAst
object
required

Canonical strategy protocol payload. Use this when the client already authors StrategyAstV1 directly.

Example:
settings
object
required
description
string
Maximum string length: 1000
Example:

"Enter when price crosses above a fast EMA and RSI confirms momentum."

signalGraph
object

Higher-level AI agent authoring graph. The backend compiles this to canonical strategyAst before validation and persistence.

Example:

Response

201

Strategy draft created