Create conditional query
POST/x402/v2/auto/queries
Create and activate a conditional query that monitors market data and triggers actions when conditions are met.
Allowed action types: webhook, notify, telegram_bot, llm.
Trade execution is not available via x402.
Cost: Dynamic. Base fee is 5 credits ($0.045) plus simulated LLM calls:
fast = +5 credits (+$0.045) per call, expert = +18 credits (+$0.162) per call.
Use the validate endpoint to preview costs.
Requires x-elfa-agent-secret header.
Requires x402 payment.
Request
Responses
- 200
- 201
- 400
- 402
- 422
Ok
Query created and activated
Missing or invalid parameters
Payment required (x402)
EQL validation failed