# Spotter inbox and conversations

> The spotter's inbox of their reports and the feedback on them, the conversation a meteorologist can start on a report, replying, muting, and flagging a message.

API reference · Reference · https://wxalerts.org/docs/api/spotter-threads/

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

A verified meteorologist can ask the spotter behind a report one question at a
time, to verify it. The spotter sees those questions in their inbox and answers
them. Conversations are for verification only. They close for everyone after 7
days without a message, and at once when the report is withdrawn.

All routes here are signed in, using the app's Bearer token or the site's session
cookie. The CSRF header, the `401` and `403` errors and the default `422` format are
at the top of
[Spotter reports](/docs/api/spotter-reports/#signed-in-errors-common-to-every-route-below).
The meteorologist side is on [Meteorologist vetting](/docs/api/vetting/).

### Error format on this page

The conversation routes report their own failures as
`{"detail": {"code": "...", "message": "..."}}` with these codes:

| Status | `code` | Meaning |
| --- | --- | --- |
| `403` | `not_yours`, `not_meteorologist`, `not_on_thread` | the caller may not do this |
| `404` | `no_report`, `no_thread`, `no_question`, `no_reply`, `no_message`, `no_flag` | the thing does not exist, or is not the caller's |
| `409` | `closed`, `muted`, `left`, `question_open`, `not_open`, `not_answerable`, `already_answered`, `empty`, `no_spotter`, `own_report`, `superseded`, `photo_not_asked`, `no_photo`, `hidden`, `already_promoted`, `own_message`, `gone`, `resolved` | the conversation is in a state that refuses the action |

Each route below says which of these it can return.

### The conversation object

`ThreadView`, returned by the routes that read or change a conversation.

| Field | Type | Notes |
| --- | --- | --- |
| `ref` | string | the report's reference |
| `state` | string | `open` or `closed` |
| `closed_reason` | string or null |  |
| `opened_at`, `last_activity_at` | string | UTC |
| `participants` | array | `label`, `role` (`meteorologist` or `spotter`), `message_id`, `muted`, `left` |
| `messages` | array | oldest first, see below |
| `answerable_question_ids` | array of integer | the open questions the caller may answer |
| `can_ask` | boolean | whether the caller could ask a question now |
| `my_open_question_id` | integer or null | the caller's open question, as a meteorologist |
| `unread` | integer | messages the caller has not read |

Each message has `id`, `kind` (`question` or `reply`), `author_role`, `author_label` (a meteorologist is shown by their verified label, not an account name), `mine` (boolean), `body`, `prompt` (for a question, one of `location`, `photo`, `time`, `still_visible`, or null), `question_state` (`open`, `answered`, `withdrawn` or `expired`), `in_reply_to_id`, `photo_ref`, `photo_url`, `promoted` (the reply was published as a public remark), `created_at` and `hidden`.

The standard prompts read: `location` "Can you confirm where the event was relative to you?", `photo` "Do you have a photo of what you saw?", `time` "Is the time on your report correct?", `still_visible` "Is it still visible from where you are?".

```json
{
  "ref": "bcd2fgh3jk",
  "state": "open",
  "closed_reason": null,
  "opened_at": "2026-11-23T19:30:00Z",
  "last_activity_at": "2026-11-23T19:30:00Z",
  "participants": [{"label": "NWS Des Moines forecaster", "role": "meteorologist", "message_id": 311, "muted": false, "left": false}],
  "messages": [{"id": 311, "kind": "question", "author_role": "meteorologist", "author_label": "NWS Des Moines forecaster", "mine": false, "body": "Do you have a photo of what you saw?", "prompt": "photo", "question_state": "open", "in_reply_to_id": null, "photo_ref": null, "photo_url": null, "promoted": false, "created_at": "2026-11-23T19:30:00Z", "hidden": false}],
  "answerable_question_ids": [311],
  "can_ask": false,
  "my_open_question_id": null,
  "unread": 1
}
```

A push notification goes to the spotter's app when a question arrives, when a
meteorologist marks their report, and when a public remark is added. Its data
payload is `{"type": "report_feedback", "ref": "...", "event": "question"}` with `event` one of `question`, `mark` or `remark`.

## `GET /spotter/inbox`

Signed in. Every report the caller filed, or that names them as the observer,
newest filed first, with what meteorologists made of it and the state of its
conversation.

### Parameters

| Name | In | Type | Required | Default | Bounds |
| --- | --- | --- | --- | --- | --- |
| `before` | query | string | no | none | an ISO 8601 date and time. The previous page's `next_before` |
| `limit` | query | integer | no | 20 | 1 to 50 |

### Response

`200`:

| Field | Type | Notes |
| --- | --- | --- |
| `items` | array | reports, below |
| `next_before` | string or null | UTC. Pass back as `before`. Null on the last page |
| `total_unread` | integer | unread across all the caller's conversations, not just this page |

Each item has `ref`, `event_type`, `occurred_at`, `status`, `visibility`, `visibility_reason`, `visibility_reason_label`, `vet_summary` (`good`, `invalid`, `narrative`), `remark_count`, `latest_remark` (`id`, `author_label`, `body`, `created_at`, or null), `thread_state` (`open`, `closed` or null), `open_questions`, `unread` and `last_activity_at`.

```json
{"items": [{"ref": "bcd2fgh3jk", "event_type": "hail", "occurred_at": "2026-11-23T19:12:00Z", "status": "published", "visibility": "public", "visibility_reason": null, "visibility_reason_label": null, "vet_summary": {"good": 1, "invalid": 0, "narrative": 0}, "remark_count": 0, "latest_remark": null, "thread_state": "open", "open_questions": 1, "unread": 1, "last_activity_at": "2026-11-23T19:30:00Z"}], "next_before": null, "total_unread": 1}
```

### Errors

`422` in the default list format when `before` is not a date and time or `limit` is
out of range.

## `GET /spotter/reports/{ref}/thread`

Signed in. The conversation on a report, for the spotter it belongs to. A
conversation belongs to the report's spotter, fixed when it starts. Anyone else gets
`404`, so a reference alone does not confirm a private conversation exists.

### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `ref` | path | string | yes |

### Response

`200` with the conversation object above.

### Errors

| Status | Code | When |
| --- | --- | --- |
| `404` | `no_report` or `no_thread` | no such report, or no conversation that is yours |

## `POST /spotter/reports/{ref}/thread/replies`

Signed in, CSRF header for cookie requests. Answer a question. One reply per open
question, naming it.

### Request body (JSON)

| Field | Type | Required | Bounds |
| --- | --- | --- | --- |
| `question_id` | integer | yes | an open question in this conversation, from a meteorologist you have not muted |
| `body` | string | yes | 1 to 1000 characters. The text is filtered before others see it |
| `photo_ref` | string or null | no | max 16 characters. A photograph already attached to this report, and only on a question that asked for a photo |

### Response

`200` with the conversation object.

### Errors

| Status | Code | When |
| --- | --- | --- |
| `404` | `no_report`, `no_thread` |  |
| `409` | `empty` | the reply is empty after filtering |
| `409` | `not_answerable` | the question is not open for a reply |
| `409` | `already_answered` | it already has a reply |
| `409` | `muted` | you muted that meteorologist |
| `409` | `photo_not_asked` | a photo on a question that did not ask for one |
| `409` | `no_photo` | the photo is not one of this report's photographs |
| `409` | `closed` | the conversation is closed |
| `422` |  | default list format for a missing `question_id` or an over long `body` |

## `POST /spotter/reports/{ref}/thread/read`

Signed in, CSRF header for cookie requests. Mark the conversation read up to now.
Returns `204 No Content`.

### Errors

`404` with `no_report` or `no_thread`.

## `POST /spotter/reports/{ref}/thread/mute`

Signed in, CSRF header for cookie requests. Mute the meteorologist who wrote a given
message. Their open question is withdrawn and they cannot ask again on this report
until unmuted.

### Request body (JSON)

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `message_id` | integer | yes | a meteorologist's message in this conversation |

### Response

`200` with the conversation object.

### Errors

| Status | Code | When |
| --- | --- | --- |
| `404` | `no_report`, `no_thread`, `no_message` |  |
| `409` | `gone` | that meteorologist's account no longer exists |

## `POST /spotter/reports/{ref}/thread/unmute`

Signed in, CSRF header for cookie requests. Undo a mute. The request body and the
errors are the same as for mute. Returns the conversation object.

## `POST /threads/messages/{message_id}/flag`

Signed in, CSRF header for cookie requests. Flag a message to the administrators.
For the spotter, or any verified meteorologist, on a message they did not write.
Flagging the same message twice is a no-op. Returns `204 No Content`.

### Parameters

| Name | In | Type | Required | Bounds |
| --- | --- | --- | --- | --- |
| `message_id` | path | integer | yes |  |
| `reason` | body | string | yes | `harassment`, `spam`, `off_topic`, `media_request` or `other`. `media_request` is for a meteorologist asking for photos or video to use |
| `note` | body | string or null | no | max 1000 characters |

### Errors

| Status | Code | When |
| --- | --- | --- |
| `404` | `no_message` | no such message, or not in a conversation you are part of |
| `409` | `own_message` | you cannot flag your own message |
| `422` |  | default list format for an unknown `reason` |
