Track an opportunity as a Gambit
track_opportunityTrack a Today's Market opportunity as one of YOUR Gambits (requires api:account) — the same action as Track in the Gambit app. opportunity_id comes from get_opportunities (mo_ + 32 hex). Gambit opens a Gambit for it, or joins your existing live Gambit on the same subject, and saves the card. Monitoring starts paused: turn it on with update_gambit_monitoring. Returns case_id (pass it to get_gambit), created (a new Gambit) or joined (an existing one), state, monitoring_status and monitor_interval_minutes. Safe to retry: the same opportunity never opens a second live Gambit. To retry one request exactly, pass the same idempotency_key both times (a fresh key is generated when you omit it). If you already track more than one Gambit on that subject the call answers 409 with code tracking_target_required and choices [{case_id, title}]: ask the user which one, then call again with target_case_id. scenario_id picks one of the card's plan scenarios (scenario:… from get_opportunity_detail). This places no order. The response carries app_url, the Gambit's screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenario_id | No | ||
| opportunity_id | Yes | id from get_opportunities, e.g. mo_0123… | |
| target_case_id | No | which of your Gambits to join, from a 409's choices | |
| idempotency_key | No | reuse the same key when retrying one request; generated when omitted |