Generate Strategy
Kick off content strategy generation from a user brief.
Persists the brief synchronously to strategy_brief_history BEFORE
launching the background task, so a Railway restart, LLM timeout, or
OOM mid-generation cannot lose the user’s brief. The Strategy Briefs
page reads from this table — without a synchronous write, a crashed
background task would leave nothing to display.
The background task receives the new row’s id and UPDATEs the same
row when the LLM completes (filling in strategy_snapshot +
strategy_file_id); it does NOT insert a duplicate.
The user can call /strategy/cancel to abort before the background
task saves; the brief row stays around with an empty
strategy_snapshot so it remains visible on the Briefs page.
Documentation Index
Fetch the complete documentation index at: https://docs.aitasker.co/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
User's content strategy brief
10Response
Successful Response