Upsert Query Draft
POST/v2/auto/queries/drafts
Create or update a query draft.
Auth
Required header (always):
x-elfa-api-key: <api_key>
HMAC is conditional — required when the request body's action is
trade-flavoured (market_order, limit_order, or llm callback to
those). NOT required for notification-only actions. The gate exists to
prevent a leaked API key from race-replacing a notification-only draft
with a trade draft before it is converted.
When HMAC is required, also send:
x-elfa-timestamp: <unix_seconds>
x-elfa-signature: <hex_hmac_sha256>
Signing payload: timestamp + method + path + body. For this route, sign
with path = "/queries/drafts".
Request
Responses
- 200
- 400
- 401
Ok
Missing or invalid parameters
Missing or invalid API key