read
automation

Recent entries from the decision log of the catalogue decision engine only (prices, tiers, discounts); the Marketing Bra

Changed on

Recent entries from the decision log of the catalogue decision engine only (prices, tiers, discounts); the Marketing Brain's moves and the ads specialist's decisions are in the Brain decisions list. Each entry carries the bucket the Decisions page files it under: live (applied) / queued / failed / suggested / reverted / noop (no change). READ THE BUCKET BEFORE DESCRIBING A ROW. Most stores are dominated by "no change" bookkeeping — one carries 2,178 of 2,217 — so a list of recent rows is not a list of changes, and calling one a change is wrong by two orders of magnitude. Use mode to ask for one bucket: "suggested" is what a merchant can still act on, "queued" is what runs next. The whole-store counts per bucket are in get_store_overview.decisions — this call returns at most limit rows and is never a denominator.

post/api/v1/tools/get_recent_decisions

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesautomation:read

Request body

object required
mode, 'all' | 'live' | 'queued' | 'suggested' | 'reverted' | 'failed' | 'expired' | 'noop'

Which bucket to return: live (applied), queued, failed, suggested, reverted, noop (no change), or all (default).

window_days, integer

How many days back to look (default 7, max 30). Counts are whole-store.

to_state, string

Optional: filter to a target lifecycle state (e.g. "DRAFT", "WINNER").

applied, boolean

Optional: true = only rows that reached Shopify; false = only rows that did not. Prefer mode — a row that never reached Shopify is not necessarily a proposal.

handle, string

Optional: one product handle.

limit, integer

Max decisions to return (default 10, max 50).

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision