---
title: "Create an alert rule on brands the workspace tracks: a trigger (new ads, confirmed stopped ads, page changes, new partners or activity coverage), a delivery cadence, and its channels (email to the creator, optional https webhook or Slack incoming webhook). The first webhook rule answers the workspace's webhook signing secret once."
method: POST
path: "/v1/workspaces/{ws}/alerts"
tags: ["alerts"]
---

# Create an alert rule on brands the workspace tracks: a trigger (new ads, confirmed stopped ads, page changes, new partners or activity coverage), a delivery cadence, and its channels (email to the creator, optional https webhook or Slack incoming webhook). The first webhook rule answers the workspace's webhook signing secret once.

`POST /v1/workspaces/{ws}/alerts`

## Request

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

Create an alert rule on brands the workspace tracks: a trigger (new ads, confirmed stopped ads, page changes, new partners or activity coverage), a delivery cadence, and its channels (email to the creator, optional https webhook or Slack incoming webhook). The first webhook rule answers the workspace's webhook signing secret once. Scope `alerts:write`; cache `none`.

## Path parameters

- `ws` string, required

## Request body

- object
  - `name` string, required
  - `event_type` 'new_ads' | 'paused_ads' | 'page_change' | 'new_partner' | 'coverage', required
  - `brand_ids` string[], required
  - `cadence` 'daily' | 'weekly'
  - `enabled` boolean
  - `email` boolean
  - `webhook_url` string, uri
  - `webhook_kind` 'generic' | 'slack'

## Response `201`

Success.

- object
  - `data` object, required
    - `id` string, uuid, required
    - `name` string, required
    - `event_type` 'new_ads' | 'paused_ads' | 'page_change' | 'new_partner' | 'coverage', required
    - `brand_ids` string[], required
    - `cadence` 'daily' | 'weekly', required
    - `enabled` boolean, required
    - `email` boolean, required
    - `webhook` object, nullable, required
      - `kind` 'generic' | 'slack', required
      - `host` string, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `webhook_secret` string
  - `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.

---

[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/4d67a114a13c?raw)
