# SPC outlook notifications

> Whether SPC outlook notifications are open, the card a notification opens, what the outlooks say at a saved place right now, and the unsubscribe link in outlook emails.

API reference · Reference · https://wxalerts.org/docs/api/notifications-outlook/

Base URL: `https://api.wxalerts.org`

Notifications that tell a saved place when it is inside an area the Storm
Prediction Center outlined. The settings (`outlook` on a
[saved place](/docs/api/notifications-places/)) switch them on. These routes
are what the notification opens and what the settings card shows beside the
switches. The public outlook polygons are a different thing, on
[SPC outlooks](/docs/api/outlooks/).

## `GET /notifications/outlook/status`

Whether SPC outlook notifications are open to everyone, or limited to a beta
list.

Access: anonymous. No parameters. Cached: `Cache-Control: public, max-age=300`.

| Field | Type | Description |
| --- | --- | --- |
| `open` | boolean | `false` while a beta list limits who is offered it |

```json
{ "open": true }
```

## `GET /notifications/outlook/notices/{notice_id}`

One outlook notification that was sent for one of the account's places. The
card a tapped notification opens.

Access: signed in (cookie or Bearer). Not cached (`no-store`). Sign-in errors
are on the [overview](/docs/api/notifications/).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `notice_id` | path | integer | the notice's id |

| Field | Type | Description |
| --- | --- | --- |
| `id` | integer | |
| `place_id` | integer | |
| `place_label` | string | |
| `product` | string | the SPC product key: `day1-categorical`, `day2-categorical`, `day3-categorical`, `day1-tornado`, `day1-hail`, `day1-wind`, `severe-day4` to `severe-day8`, the fire weather keys (such as `fire-day1`, `drythunder-day2`), or `md` for a mesoscale discussion |
| `day` | integer | the outlook day |
| `hazard` | string | the hazard the product is about |
| `level` | string | the level the place was inside: `TSTM`, `MRGL`, `SLGT`, `ENH`, `MDT` or `HIGH` for categorical products, `ELEV`, `CRIT`, `EXTM`, `IDRT` or `SDRT` for fire weather, a percent for probability products, or the discussion number for `md` |
| `rank` | integer | the level's rank within its product, higher is more severe. For a probability product it is the percent |
| `label` | string or null | the level's own label |
| `significant` | boolean | a significant (hatched) area |
| `upgrade` | boolean | this notice was sent because the risk rose |
| `issued_at` | string or null | UTC. When SPC issued it |
| `valid_to` | string | UTC. When the outlook ends |
| `valid_clock` | string | the end on the place's own clock, such as `6:00 AM CST` |
| `title` | string | the notification's title, composed for the place |
| `body` | string | the notification's text |
| `map_url` | string | the live map with this outlook drawn |
| `current` | boolean | whether the outlook is still in force (`valid_to` is in the future) |
| `created_at` | string | UTC. When the notification was created |

```json
{
  "id": 310,
  "place_id": 41,
  "place_label": "Home",
  "product": "day1-categorical",
  "day": 1,
  "hazard": "categorical",
  "level": "ENH",
  "rank": 5,
  "label": "Enhanced Risk",
  "significant": false,
  "upgrade": true,
  "issued_at": "2026-11-23T16:30:00Z",
  "valid_to": "2026-11-24T12:00:00Z",
  "valid_clock": "6:00 AM CST",
  "title": "Upgraded: Enhanced Risk today at Home",
  "body": "SPC Day 1 outlook: Home is in a Enhanced Risk (3 of 5) of severe storms, through 6:00 AM CST.",
  "map_url": "https://wxalerts.org/?outlook=day1-categorical",
  "current": true,
  "created_at": "2026-11-23T16:41:12Z"
}
```

`title` and `body` are composed per notice. A product the map does not draw
(Day 4 to 8, fire weather, discussions) has a `map_url` that points at SPC's
own page for it.

| Status | Body | When |
| --- | --- | --- |
| `404` | `{"detail": "No such notice."}` | no such notice on this account. Someone else's gives the same answer |
| `422` | standard list | `notice_id` is not an integer |

## `GET /notifications/outlook/places/{place_id}`

What the SPC outlooks say at a saved place right now: each current product,
the level the place is in, and whether its settings would notify at that
level.

Access: signed in. Not cached (`no-store`).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `place_id` | path | integer | a saved place on this account |

| Field | Type | Description |
| --- | --- | --- |
| `place_id` | integer | |
| `place_label` | string | |
| `available` | boolean | whether outlook notifications are offered to this account. When `false`, `products` is empty |
| `products` | array | one entry per current map product that exists right now |

Each product:

| Field | Type | Description |
| --- | --- | --- |
| `product` | string | the product key: `day1-categorical`, `day2-categorical`, `day3-categorical`, `day1-tornado`, `day1-hail` or `day1-wind` |
| `day` | integer | |
| `hazard` | string | |
| `product_label` | string | a name to show |
| `level` | string or null | `null` when the place is outside every drawn area of this product |
| `rank` | integer or null | |
| `label` | string or null | |
| `significant` | boolean | `false` when not in an area |
| `valid_to` | string | UTC |
| `would_notify` | boolean | whether this place's settings would send a notification at this level |

```json
{
  "place_id": 41,
  "place_label": "Home",
  "available": true,
  "products": [
    { "product": "day1-categorical", "day": 1, "hazard": "categorical", "product_label": "Day 1 categorical", "level": "ENH", "rank": 4, "label": "Enhanced Risk", "significant": false, "valid_to": "2026-11-24T12:00:00Z", "would_notify": true }
  ]
}
```

| Status | Body | When |
| --- | --- | --- |
| `404` | `{"detail": "No such place."}` | not a place on this account |

## `GET /notifications/outlook/unsubscribe`

Turn off SPC outlook **emails** on every place of the account, from the link
in an outlook email. Push notifications are left as they are. For a person
clicking.

Access: none. The signed link token is the credential, and it does not expire.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `t` | query | string | yes | the link token from the email |

Response: an HTML page. `200`
"Unsubscribed", `400` "That link is not valid" with "Nothing has been changed.",
or `422` standard list when `t` is missing.

## `POST /notifications/outlook/unsubscribe`

The same operation for a mail client's one-click unsubscribe control. The token
is the `t` query parameter. Same HTML responses. No CSRF header and no body.
