Convert Query Draft
POST/v2/auto/queries/drafts/:draftId/convert
Convert a draft into an active query.
Auth
Required header (always):
x-elfa-api-key: <api_key>
HMAC is conditional — required when the stored draft has a
trade-flavoured action (market_order, limit_order, or llm callback
to those). NOT required when the draft is notification-only. If the draft
is missing or not owned by this API key, the request proceeds and the
controller returns 404. Other lookup failures fall back to HMAC
enforcement (fail-safe).
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/{draftId}/convert" and body = "".
Request
Responses
- 200
- 201
- 401
- 404
- 409
Ok
Draft converted
Missing or invalid authentication
Draft not found
Active plan limit exceeded