---
title: "List alerts"
---

> Documentation Index
> Fetch the complete documentation index at: https://api.whyviral.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List alerts

Path: WhyViral API › Alerts

`GET /alerts`

URL: `https://whyviral.ai/api/v1/alerts`

What the project’s alert rules called out, newest first: mentions worth seeing, spikes, campaign posts with a problem and runs that were cut short. Free; reading one here doesn’t mark it read.

## Authentication

Requires one of the following:

- `bearer`, http bearer, header `Authorization`
- `apiKeyHeader`, apiKey, in header, header `x-api-key`

## Query parameters

- `project` (`listAlerts.query.project`; string, optional) — A project’s id or exact name; case is ignored. Leave it out for the project active in the app.
- `unread` (`listAlerts.query.unread`; boolean, optional) — `true` for unread alerts only.
  - default: `false`
- `kind` (`listAlerts.query.kind`; string, optional) — Only this kind.
  - one of `"new_mention"`, `"negative"`, `"competitor"`, `"campaign"`, `"spike"`, `"run"`, `"balance"`
- `before` (`listAlerts.query.before`; string, optional) — Only alerts older than this: the last answer’s `next_before`.
  - format: `date-time`
- `limit` (`listAlerts.query.limit`; integer, optional) — How many rows, 1 to 50.
  - maximum: `50` · minimum: `1` · default: `20`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://whyviral.ai/api/v1/alerts \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://whyviral.ai/api/v1/alerts';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://whyviral.ai/api/v1/alerts"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The alerts.

#### Example

```json
{
  "object": "list",
  "project": {
    "id": "q17d3k9x2v8q1m4n6b0c5w7h2r9t3y8a",
    "name": "Crumbsheet"
  },
  "next_before": null,
  "data": [
    {
      "id": "a57d3k9x2v8q1m4n6b0c5w7h2r9t3y8a",
      "object": "alert",
      "kind": "new_mention",
      "source": "watch",
      "created_at": "2026-11-16T06:20:00.000Z",
      "read": false,
      "tracker": {
        "id": "t17e2m8x4c9v0b3n5q7w1r6t2y8u4i0o",
        "kind": "brand",
        "name": "Crumbsheet",
        "own": true
      },
      "mention": {
        "id": "m57d3k9x2v8q1m4n6b0c5w7h2r9t3y8a",
        "where": "said",
        "quote": "I use Crumbsheet for my prices now.",
        "at_sec": 14,
        "sentiment": "positive",
        "views": 212000,
        "posted_at": "2026-11-16T00:00:00.000Z",
        "post_url": "https://www.tiktok.com/@rosa.proofs/video/7430000000000000002",
        "creator": {
          "id": "jx7d3k9x2v8q1m4n6b0c5w7h2r9t3y8a",
          "platform": "tiktok",
          "handle": "rosa.proofs"
        }
      },
      "campaign_post": null,
      "spike": null,
      "code": null,
      "credits_left": null
    }
  ]
}
```

- `object` (`listAlerts.response.200.object`; string, required)
- `project` (`listAlerts.response.200.project`; object, required)
  - `id` (`listAlerts.response.200.project.id`; string, required) — The project’s id.
  - `name` (`listAlerts.response.200.project.name`; string, required) — Its name.
- `next_before` (`listAlerts.response.200.next_before`; any of, required) — Send it as `before` for the next page; null on the last.
  - any of the following: `string`, `null`
- `data` (`listAlerts.response.200.data`; array of object, required)
  - `id` (`listAlerts.response.200.data.id`; string, required) — The alert’s id.
  - `object` (`listAlerts.response.200.data.object`; string, required) — `"alert"`.
  - `kind` (`listAlerts.response.200.data.kind`; string, required) — What it is about; see the table below.
    - one of `"new_mention"`, `"negative"`, `"competitor"`, `"campaign"`, `"spike"`, `"run"`, `"balance"`
  - `source` (`listAlerts.response.200.data.source`; string, required) — The run that raised it: `search`, `watch` or `campaign`.
    - one of `"search"`, `"watch"`, `"campaign"`
  - `created_at` (`listAlerts.response.200.data.created_at`; any of, required) — When it was raised.
    - any of the following: `string`, `null`
  - `read` (`listAlerts.response.200.data.read`; boolean, required) — Whether it was marked read in the app.
  - `tracker` (`listAlerts.response.200.data.tracker`; any of, required) — `{id, kind, name, own}`: the tracker it is about; null for `campaign`, `run` and `balance`.
    - any of the following:
      - `TrackerRef`
        - `id` (`TrackerRef.id`; string, required) — The tracker’s id.
        - `kind` (`TrackerRef.kind`; string, required) — `brand` (the project’s own), `competitor`, `topic`, `hashtag` or `campaign_tag`.
          - one of `"brand"`, `"competitor"`, `"topic"`, `"hashtag"`, `"campaign_tag"`
        - `name` (`TrackerRef.name`; string, required) — Its name; a hashtag’s is the tag with its `#`.
        - `own` (`TrackerRef.own`; boolean, required) — True for the project’s own brand.
      - `null`
  - `mention` (`listAlerts.response.200.data.mention`; any of, required) — The mention of `new_mention`, `negative` and `competitor`: `{id, where, quote, at_sec, sentiment, views, posted_at, post_url, creator}`.
    - any of the following:
      - `object`
        - `id` (`listAlerts.response.200.data.mention.1.id`; string, required) — The mention’s id.
        - `where` (`listAlerts.response.200.data.mention.1.where`; string, required)
          - one of `"said"`, `"shown"`, `"written"`
        - `quote` (`listAlerts.response.200.data.mention.1.quote`; string, required) — The post’s own words, verbatim.
        - `at_sec` (`listAlerts.response.200.data.mention.1.at_sec`; any of, required)
          - any of the following: `number`, `null`
        - `sentiment` (`listAlerts.response.200.data.mention.1.sentiment`; any of, required)
          - any of the following:
            - `string`: one of `"positive"`, `"neutral"`, `"negative"`
            - `null`
        - `views` (`listAlerts.response.200.data.mention.1.views`; any of, required)
          - any of the following: `integer`, `null`
        - `posted_at` (`listAlerts.response.200.data.mention.1.posted_at`; any of, required)
          - any of the following: `string`, `null`
        - `post_url` (`listAlerts.response.200.data.mention.1.post_url`; any of, required)
          - any of the following: `string`, `null`
        - `creator` (`listAlerts.response.200.data.mention.1.creator`; any of, required)
          - any of the following:
            - `object`
              - `id` (`listAlerts.response.200.data.mention.1.creator.1.id`; string, required)
              - `platform` (`listAlerts.response.200.data.mention.1.creator.1.platform`; string, required)
                - one of `"tiktok"`, `"instagram"`, `"youtube"`, `"x"`
              - `handle` (`listAlerts.response.200.data.mention.1.creator.1.handle`; string, required) — Without `@`.
            - `null`
      - `null`
  - `campaign_post` (`listAlerts.response.200.data.campaign_post`; any of, required) — The post of `campaign`: `{campaign, post_url, posted_at, views, problems, missing_terms, competitor}`.
    - any of the following:
      - `object`
        - `campaign` (`listAlerts.response.200.data.campaign_post.1.campaign`; object, required)
          - `id` (`listAlerts.response.200.data.campaign_post.1.campaign.id`; string, required)
          - `name` (`listAlerts.response.200.data.campaign_post.1.campaign.name`; string, required)
        - `post_url` (`listAlerts.response.200.data.campaign_post.1.post_url`; string, required)
          - format: `uri`
        - `posted_at` (`listAlerts.response.200.data.campaign_post.1.posted_at`; any of, required)
          - any of the following: `string`, `null`
        - `views` (`listAlerts.response.200.data.campaign_post.1.views`; any of, required)
          - any of the following: `integer`, `null`
        - `problems` (`listAlerts.response.200.data.campaign_post.1.problems`; array of string, required)
          - one of `"undisclosed"`, `"missing_terms"`, `"competitor"`
        - `missing_terms` (`listAlerts.response.200.data.campaign_post.1.missing_terms`; array of string, required)
        - `competitor` (`listAlerts.response.200.data.campaign_post.1.competitor`; any of, required)
          - any of the following:
            - `string` — The competitor it names.
            - `null`
      - `null`
  - `spike` (`listAlerts.response.200.data.spike`; any of, required) — `{day, mentions, mean}`: a UTC day, its count and the mean of the seven days before.
    - any of the following:
      - `object`
        - `day` (`listAlerts.response.200.data.spike.1.day`; string, required)
          - format: `date`
        - `mentions` (`listAlerts.response.200.data.spike.1.mentions`; integer, required)
          - minimum: `0`
        - `mean` (`listAlerts.response.200.data.spike.1.mean`; number, required)
      - `null`
  - `code` (`listAlerts.response.200.data.code`; any of, required) — Why a `run` was limited, skipped or failed.
    - any of the following: `string`, `null`
  - `credits_left` (`listAlerts.response.200.data.credits_left`; any of, required) — The balance when a `balance` alert was raised.
    - any of the following: `integer`, `null`

### 400

`INVALID_REQUEST`: The body isn’t JSON, its `url` is missing or too long, or a parameter has a value it doesn’t take. `AMBIGUOUS_PROJECT`: Several of your projects share the name you sent; pass the project’s `id`.

#### Example

```json
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "The body isn’t JSON, its url is missing or too long, or a parameter has a value it doesn’t take."
  }
}
```

- `error` (`listAlerts.response.400.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listAlerts.response.400.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listAlerts.response.400.error.message`; string, required) — What went wrong, in words.

### 401

`INVALID_API_KEY`: The key is missing, mistyped or revoked.

#### Example

```json
{
  "error": {
    "code": "INVALID_API_KEY",
    "message": "The key is missing, mistyped or revoked."
  }
}
```

- `error` (`listAlerts.response.401.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listAlerts.response.401.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listAlerts.response.401.error.message`; string, required) — What went wrong, in words.

### 403

`ACCOUNT_DISABLED`: The key’s account is disabled.

#### Example

```json
{
  "error": {
    "code": "ACCOUNT_DISABLED",
    "message": "The key’s account is disabled."
  }
}
```

- `error` (`listAlerts.response.403.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listAlerts.response.403.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listAlerts.response.403.error.message`; string, required) — What went wrong, in words.

### 404

`NOT_FOUND`: No read, project, creator, campaign or report like this on your account.

#### Example

```json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "No read, project, creator, campaign or report like this on your account."
  }
}
```

- `error` (`listAlerts.response.404.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listAlerts.response.404.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listAlerts.response.404.error.message`; string, required) — What went wrong, in words.

### 429

`RATE_LIMITED`: Too many new reads, data requests, searches or report links; wait the `Retry-After` header’s seconds.

#### Example

```json
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Too many new reads, data requests, searches or report links; wait the Retry-After header’s seconds."
  }
}
```

- `error` (`listAlerts.response.429.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listAlerts.response.429.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listAlerts.response.429.error.message`; string, required) — What went wrong, in words.

### 500

`INTERNAL`: Something broke on our side; try again.

#### Example

```json
{
  "error": {
    "code": "INTERNAL",
    "message": "Something broke on our side; try again."
  }
}
```

- `error` (`listAlerts.response.500.error`; object, required) — Some codes add details, such as `cap`, `required` or `balance`.
  - `code` (`listAlerts.response.500.error.code`; string, required)
    - one of `"INVALID_REQUEST"`, `"UNSUPPORTED_LINK"`, `"INVALID_PERIOD"`, `"AMBIGUOUS_PROJECT"`, `"INVALID_REPORT"`, `"CREATOR_NOT_SAVED"`, `"TOO_MANY_REPORTS"`, `"INVALID_API_KEY"`, `"INSUFFICIENT_CREDITS"`, `"ACCOUNT_DISABLED"`, `"NOT_FOUND"`, `"TRACKER_NOT_FOUND"`, `"MONTHLY_LIMIT"`, `"RATE_LIMITED"`, `"INTERNAL"`, `"SEARCH_UNAVAILABLE"`
  - `message` (`listAlerts.response.500.error.message`; string, required) — What went wrong, in words.


Source: https://api.whyviral.ai/api/alerts/list/index.md
