read
catalog

Search and list products in the current store. Supports filtering by lifecycle_state (e.g. "active", "draft", "winner")

Changed on

Search and list products in the current store. Supports filtering by lifecycle_state (e.g. "active", "draft", "winner") or whether they have an active pending decision, sorting by recency or ROAS, and limiting results. Returns id, title, state, vendor, price, last decision, and current ROAS.

post/api/v1/tools/query_products

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
      Scopescatalog:read

Request body

object required
filter, object

Optional filters to narrow the product list.

sort, 'created_desc' | 'updated_desc' | 'roas_desc'

Sort order. Defaults to updated_desc.

limit, integer

Max results 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