---
title: "What a rule would have fired in the last 30 days, before it is saved: weekly metrics (live, launched, stopped, ever run) against a threshold or a change, and event metrics."
method: GET
path: "/v1/workspaces/{ws}/alerts/preview"
tags: ["alerts"]
---

# What a rule would have fired in the last 30 days, before it is saved: weekly metrics (live, launched, stopped, ever run) against a threshold or a change, and event metrics.

`GET /v1/workspaces/{ws}/alerts/preview`

## Request

- Base URL: `https://api.storequant.com`
- URL: `https://api.storequant.com/v1/workspaces/{ws}/alerts/preview`
- Auth: HTTP bearer

What a rule would have fired in the last 30 days, before it is saved: weekly metrics (live, launched, stopped, ever run) against a threshold or a change, and event metrics. Scope `alerts:read`; cache `none`.

## Path parameters

- `ws` string, required

## Query parameters

- `metric` string, required
- `ids` string
- `category` string
- `condition` 'rises_above' | 'falls_below' | 'change_up' | 'change_down' | 'event'
- `threshold` number
- `window_weeks` integer

## Response `200`

Success.

- object
  - `data` object, required
    - `count` integer, required
    - `firings` object[], required
      - `at` string, date, required
      - `value` string, required
      - `title` string, required
      - `detail` string, required
      - `brand_id` string, uuid, nullable, required
      - `href` string, nullable, required
  - `meta` object, required
    - `request_id` string, required
    - `as_of` string, date-time, required
    - `lag_hours` number
    - `cursor` string
    - `count` integer

## Other responses

- `4XX`: The one error shape.
- `5XX`: The one error shape.

## Changes

- **2026-10-19** `4fbe9d681caf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scrollstash/apis/storequant-api/changes/v1/workspaces/:ws/alerts/preview/get.md)

---

[API](https://skmtc.dev/scrollstash/apis/storequant-api.md) · [All operations](https://skmtc.dev/scrollstash/apis/storequant-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrollstash/apis/storequant-api/revisions/4fbe9d681caf?raw)
