# Spotter profile and standing

> What an account may report and why not, the spotter's own record, the editable profile and its picture, callsign verification and team invitations.

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

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

Everything on this page is for the signed-in account and uses 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 described at the top of
[Spotter reports](/docs/api/spotter-reports/#signed-in-errors-common-to-every-route-below).
The profile a stranger can see is a separate, smaller view, described in
[Public spotter profiles](/docs/api/spotter-profiles/). Setting up a profile on the
site is covered in [Spotter accounts](/docs/accounts/spotter/).

## `GET /spotter/me`

Signed in. What this account may do, and the reason when it may not. It is worked
out on every call and nothing is cached. It does not create a profile.

### Response

| Field | Type | Notes |
| --- | --- | --- |
| `handle` | string or null | null when there is no profile |
| `can_submit` | boolean | the profile is complete and not suspended |
| `can_submit_web` | boolean | always equal to `can_submit`, kept for older clients |
| `can_relay` | boolean | the account has an approved EOC grant that may relay |
| `deny_reason` | string or null | why filing would be refused: `no_profile`, `profile_incomplete`, `suspended`, and for older clients `not_signed_in`, `no_verified_org`, `org_suspended`, `org_cannot_originate` |
| `orgs` | array | organizations the account belongs to: `id`, `slug`, `name`, `org_type`, `role`, `can_relay` |
| `profile_complete` | boolean |  |
| `missing` | array of string | profile fields still needed, from `handle`, `full_name`, `contact_email` |
| `certified` | boolean | the account holds a current spotter credential. A self report also needs this, and without it filing answers `403` with `spotter_required` |
| `can_edit_profile` | boolean | always true |
| `callsign` | string or null | only when `show_callsign` is on |
| `callsign_verified` | boolean |  |
| `share_location` | boolean | the account has the live map switched on |

```json
{
  "handle": "stormchaser42",
  "can_submit": true,
  "can_submit_web": true,
  "can_relay": false,
  "deny_reason": null,
  "orgs": [],
  "profile_complete": true,
  "missing": [],
  "certified": true,
  "can_edit_profile": true,
  "callsign": null,
  "callsign_verified": false,
  "share_location": false
}
```

## `GET /spotter/me/record`

Signed in. The caller's own three numbers. They are counted on every call, are
private to the owner and are not the public profile counts.

### Response

| Field | Type | Notes |
| --- | --- | --- |
| `reports_filed` | integer |  |
| `marked_good` | integer | reports a verified meteorologist marked good |
| `flags_upheld` | integer | flags against the account's reports that were upheld |

A new account with nothing filed returns zeros, not `404`.

```json
{"reports_filed": 14, "marked_good": 9, "flags_upheld": 0}
```

Caching: `Cache-Control: private, no-store`.

## `GET /spotter/profile`

Signed in. The account's own profile. **Creates a profile on first call** if there
is none, filled from the account name and email, with a handle derived from the
account. Any signed-in account may have one.

### Response

`200` with the profile, the one shape that carries the name, email and phone, and
only to its owner.

| Field | Type | Notes |
| --- | --- | --- |
| `handle` | string | public name |
| `handle_change_allowed_at` | string or null | UTC. When the handle may next be changed. Null when it may be changed now |
| `full_name` | string or null |  |
| `contact_email` | string or null |  |
| `contact_phone` | string or null |  |
| `callsign` | string or null |  |
| `callsign_verified` | boolean |  |
| `callsign_source` | string or null | `uls`, `uls_unmatched` or `manual` |
| `callsign_grant_date` | string or null | `YYYY-MM-DD` |
| `show_callsign` | boolean | publish the callsign on reports and the profile |
| `discoverable` | boolean | appear in the relay directory |
| `share_location` | boolean | appear on the live map |
| `photo_state` | string or null | state of the profile picture, such as `quarantined`, `published` or `blocked` |
| `photo_url` | string or null |  |
| `show_photo` | boolean |  |
| `training_notes` | string or null |  |
| `has_home_point` | boolean | the home point itself is never returned |
| `suspended` | boolean |  |
| `editable` | boolean |  |
| `public_profile` | boolean | the public page is switched on |
| `display_name` | string or null |  |
| `bio` | string or null |  |
| `primary_counties`, `secondary_counties` | array of string | county codes |
| `social_links` | array | `platform`, `url`, `handle` |
| `hidden_reason` | string or null | set when staff hid the public page |

```json
{
  "handle": "stormchaser42",
  "handle_change_allowed_at": null,
  "full_name": "Pat Example",
  "contact_email": "pat@example.org",
  "contact_phone": null,
  "callsign": null,
  "callsign_verified": false,
  "callsign_source": null,
  "callsign_grant_date": null,
  "show_callsign": false,
  "discoverable": false,
  "share_location": false,
  "photo_state": null,
  "photo_url": null,
  "show_photo": false,
  "training_notes": null,
  "has_home_point": false,
  "suspended": false,
  "editable": true,
  "public_profile": false,
  "display_name": null,
  "bio": null,
  "primary_counties": [],
  "secondary_counties": [],
  "social_links": [],
  "hidden_reason": null
}
```

## `PUT /spotter/profile`

Signed in, CSRF header for cookie requests. A **partial** update: a field that is
left out is unchanged, and a field sent as `null` is cleared (except `handle`). The
whole edit is refused if any field fails, so what the form shows is what is stored.
Returns the same shape as `GET /spotter/profile`.

### Request body (JSON)

| Field | Type | Bounds and values |
| --- | --- | --- |
| `handle` | string | 3 to 32 characters, lowercase letters, digits, `-` and `_`, starting with a letter or digit, and not a reserved word. Compared case insensitively. Cannot be null |
| `full_name` | string or null | max 160 |
| `contact_email` | string or null | max 320 |
| `contact_phone` | string or null | max 32 |
| `show_callsign` | boolean | null is ignored |
| `discoverable` | boolean | null is ignored |
| `share_location` | boolean | turning it on is refused for a suspended profile. Turning it off removes the stored position at once |
| `show_photo` | boolean | null is ignored |
| `training_notes` | string or null | max 2000 |
| `home_lat`, `home_lon` | number or null | -90 to 90 and -180 to 180. Send both or neither. Both null clears the home point |
| `public_profile` | boolean | switch the public page on or off |
| `display_name` | string or null | at most 60 characters after cleaning, plain text |
| `bio` | string or null | at most 500 characters after cleaning, plain text, line breaks allowed |
| `primary_counties` | array of string or null | at most 3 county codes (the codes from `GET /spotters/counties`), upper cased and de-duplicated, each a known county |
| `secondary_counties` | array of string or null | at most 6, and no county may be in both lists |
| `social_links` | array of objects or null | at most 5. Each has `platform` (`youtube`, `twitch`, `facebook`, `x` or `instagram`, max 16) and `url` (max 300 after trimming). The link must start with `https://`, have no spaces, and be a profile or channel link for that platform. One link per platform |

The handle can be changed once per 90 days.

### Errors

| Status | Body | When |
| --- | --- | --- |
| `403` | `{"detail": {"reason": "...", "message": "This spotter profile cannot appear on the map."}}` | `share_location` turned on for a suspended profile |
| `409` | `{"detail": "That handle is taken."}` | another profile holds the handle |
| `409` | `{"detail": "This handle can be changed again after YYYY-MM-DD."}` | inside the 90 day lock |
| `422` | `{"detail": "<sentence>"}` | a handle that is empty, wrong length, uses other characters or is reserved, a handle sent as null (`A handle cannot be cleared.`), half a home point (`A home point needs both a latitude and a longitude.`), a display name, bio, county or link that failed its rules (for example `At most 3 primary counties.`, `Unknown county code: XX.`, `Links must start with https://.`) |
| `422` | default list format | a field is the wrong type or over its schema bound |

## `PUT /spotter/profile/photo`

Signed in, CSRF header for cookie requests. Set the profile picture. The body is
`multipart/form-data` with one file field named `file`. The same limits as report
photographs apply: JPEG, PNG or WebP, at most 12 MB, at most 50 million pixels. The
picture is screened, and having one does not publish it: `show_photo` is a separate
choice. Returns the profile.

### Errors

| Status | Body | When |
| --- | --- | --- |
| `409` | `{"detail": "Your profile picture was taken down. Contact us to change it."}` | a taken down picture cannot be replaced |
| `413` | `{"detail": "That photo is larger than 12 MB."}` |  |
| `422` | `{"detail": "<sentence>"}` | the file is empty, unreadable, too large to process or not a supported format, or it was refused when screened |
| `503` | `{"detail": "..."}` | storage is not available. Try again |

## `DELETE /spotter/profile/photo`

Signed in, CSRF header for cookie requests. Remove the profile picture. Idempotent:
no picture is not an error. Returns the profile.

### Errors

| Status | Body | When |
| --- | --- | --- |
| `404` | `{"detail": "No spotter profile."}` | the account has no profile |
| `409` | `{"detail": "Your profile picture was taken down. Contact us to change it."}` |  |
| `503` | `{"detail": "..."}` | storage is not available |

## `POST /spotter/callsign/verify`

Signed in, CSRF header for cookie requests. Check an amateur radio callsign against
the FCC licence record, and store it on the profile when it checks out. The
licensee's name and address are not stored or returned.

### Request body (JSON)

| Field | Type | Required | Bounds |
| --- | --- | --- | --- |
| `callsign` | string | yes | 3 to 16 characters. Trimmed and upper cased, then letters and digits only |

### Response

`200`:

| Field | Type | Notes |
| --- | --- | --- |
| `callsign` | string | upper cased |
| `verified` | boolean | true |
| `source` | string | `uls` when the licensee name matches the profile name, `uls_unmatched` when it does not |
| `grant_date` | string or null | `YYYY-MM-DD` |
| `expiry_date` | string or null | `YYYY-MM-DD` |
| `name_mismatch` | boolean | true when `source` is `uls_unmatched` |

```json
{"callsign": "KN4OQW", "verified": true, "source": "uls", "grant_date": "2019-04-02", "expiry_date": "2029-04-02", "name_mismatch": false}
```

### Errors

| Status | Body | When |
| --- | --- | --- |
| `422` | `{"detail": "That does not look like a callsign."}` | not 3 to 16 letters and digits |
| `422` | `{"detail": "No current licence for that callsign."}` | the lookup found no valid licence |
| `503` | `{"detail": "The licence lookup is unavailable. Try again shortly."}` | the lookup service is down. The callsign may well be valid |

## `GET /spotter/invitations`

Signed in. Team invitations waiting on this account, newest first.

### Response

`200`:

```json
{"items": [{"org_id": 7, "org_name": "Story County EOC", "org_type": "eoc", "role": "operator", "invited_at": "2026-11-20T15:02:11+00:00"}]}
```

`invited_at` is UTC ISO 8601 and, in this one response, ends in `+00:00` rather than `Z`.

## `POST /spotter/orgs/{org_id}/invitation/accept`

Signed in, CSRF header for cookie requests. Accept a pending invitation to a team.
Pending membership gives no rights until accepted.

### Parameters

| Name | In | Type | Required | Bounds |
| --- | --- | --- | --- | --- |
| `org_id` | path | integer | yes | 1 to 9223372036854775807 |

### Response

`200` with `{"org_id": 7, "role": "operator", "status": "active"}`.

### Errors

| Status | Body | When |
| --- | --- | --- |
| `404` | `{"detail": "No pending invitation to that team."}` | |

## `POST /spotter/orgs/{org_id}/invitation/decline`

Signed in, CSRF header for cookie requests. Decline a pending invitation.

### Parameters

As for accept.

### Response

`200` with `{"org_id": 7, "status": "declined"}`.

### Errors

| Status | Body | When |
| --- | --- | --- |
| `404` | `{"detail": "No pending invitation to that team."}` | |
