read
catalog

Returns variants for a specific product, or lists the top variants by price across the store. Use when the user asks abo

Changed on

Returns variants for a specific product, or lists the top variants by price across the store. Use when the user asks about sizes, colours, SKUs, inventory levels, or specific variant pricing.

post/api/v1/tools/get_variants

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
product_id, string

UUID of the product to fetch variants for. Omit to list variants across the store.

limit, integer

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