Create or read a strategy share link
strategy_share_linkaction="create" creates or refreshes a private bearer share link for a strategy; a new link shares backtest results and gets a generated password returned once unless password or noPassword: true is passed. action="get" reads its current sharing status without creating one.
Set "action" to choose the operation. Only send the fields listed for that action.
action="create": Create a private share link for a strategy
No other fields required. Creates a private bearer link for one strategy; anyone who receives or forwards it can access the granted capabilities until it is revoked. A new link shares the owner's backtest results by default (allowPerformanceView: false turns that off); an existing link keeps its stored backtest setting. Code access and cloning are denied unless explicitly enabled. A brand-new link is password protected by default: BotSpot generates a strong password, builds it into the returned link as #pwd= (Zoom style, so the full link opens directly), and returns it once (stored only as a hash). Pass password to choose it, or noPassword: true (or password: null) to share with no password. For public marketplace listing, use publish_to_marketplace instead.
action="get": Get sharing status for a strategy
No other fields required. Returns the current sharing status for a strategy — whether it has an active private share link, when it was last shared, the share URL if available, and sharing settings (code view, clone permissions). Also reports marketplace listing status. Does NOT create a share if none exists — use strategy_share_link(action="create") to create one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which operation to run: "create", "get". See the tool description for each one. | |
| password | No | Optional password, 8 to 128 characters. Omit it to get a generated one on a new link. null shares with no password. Used with action="create". | |
| accountId | No | action="create": Optional account used only as this strategy publication data source | action="get": Optional selected performance account Used with action="create", action="get". | |
| allowClone | No | Can viewers clone/fork the strategy? Default false Used with action="create". | |
| noPassword | No | true shares the link with no password instead of generating one. Used with action="create". | |
| strategyId | No | The Strategy entity ID Used with action="create", action="get". | |
| aiStrategyId | No | action="create": The AiStrategy entity ID (alternative to strategyId) | action="get": The AiStrategy entity ID Used with action="create", action="get". | |
| allowCodeView | No | Can viewers see the strategy code? Default false Used with action="create". | |
| forceRegenerate | No | Generate a new token even if one exists. Default false Used with action="create". | |
| allowPerformanceView | No | Can viewers see the owner's backtest results? Default true for a new link; an existing link keeps its setting. Used with action="create". |