Community. Driven. Weather. Data.Always Ad-FreeDeveloper FriendlyChecking statusDiscord
Become a supporter
Sign in

Contacts and people

Add people and their text, voice, email and webhook destinations, ask them to confirm, test a webhook, set which hazards each contact hears about at each place, and the confirm and unsubscribe links in emails.


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

A contact is a destination that is not the account holder’s own phone: a text number, a phone to call, an email address or a webhook URL. A person is an optional label that groups one human’s destinations so they count once against the plan’s recipient limit. A contact is attached to a place with a rule that says which hazards it hears about there. The guides are Saved places, Rules and channels and Webhooks.

All routes here accept a session cookie or a Bearer token, except the email link routes at the end, which use a signed link token. Writes with a cookie need X-Requested-With: wxalerts. Responses are Cache-Control: no-store. Sign-in errors, 402 upgrade bodies and the 422 format are on the overview.

A phone number never comes back from any route. Contacts show destination_hint instead: •••• 0100 for a number, ab•••@example.com for an address, and only the host for a webhook. A client that wants to reuse a number sends a reference (same_number_as or use_my_number) instead of retyping it.

Contact object

Field Type Description
id integer
channel sms, email, webhook or voice
label string or null up to 80 characters
status pending or active pending until the contact confirms. Webhooks are active immediately
person_id integer or null the person it is grouped under
destination_hint string masked destination, above
verified_at string or null UTC. When it confirmed
opted_out_at string or null UTC. Set when the contact said stop. An opted-out contact cannot be re-invited
invited_at string or null UTC. When the last invitation went out
created_at string UTC
care_tier string or null standard, or assisted for a Guardian Line voice contact
assisted_reason string or null elderly or disability, assisted only
greeting_name string or null the first name the assisted call uses
relationship string or null assisted only
safety_contact_id integer or null the Safety Person, assisted only
attested_at string or null UTC, assisted only
confirmed_via string or null how the line was confirmed, assisted only: live_yes or manual_override among others
confirm_attempts integer confirmation calls missed. 0 elsewhere
frozen_at string or null UTC. Set when an assisted line missed its confirmation calls
signing_secret string or null webhooks only, and only in the response that creates one. Never returned again. Receivers verify X-WxAlerts-Signature with it
webhook_kind string or null webhooks: discord, slack, teams, google_chat or generic
webhook_failures integer webhooks: deliveries in a row that failed
delivery_state string or null webhooks, on the list route: delivering, retrying, failing (three or more failures in a row), queued, or null if nothing has been sent

GET /notifications/people

List the people on the account.

Access: signed in. No parameters.

Response 200: {"people": [{"id": 3, "label": "Mom", "created_at": "2026-10-04T12:00:00Z"}]}, ordered by label.

POST /notifications/people

Name a person to group contacts under.

Access: signed in, with the CSRF header on a cookie.

Body: label, a string of 1 to 80 characters (required). Leading and trailing spaces are trimmed.

Response 201: {"id": 3, "label": "Mom", "created_at": "..."}.

Status Body When
400 {"detail": "A person needs a name."} the label is blank after trimming
400 {"detail": "You already have somebody called Mom."} duplicate label
422 standard list label missing or over 80 characters

PATCH /notifications/people/{person_id}

Rename a person.

Access: signed in, with the CSRF header on a cookie. Path person_id is an integer. Body: label, as for POST. Response 200: the person object.

Status Body When
400 {"detail": "A person needs a name."} blank label
404 {"detail": "No such person."} not on this account

DELETE /notifications/people/{person_id}

Remove a person, keeping their contacts. The contacts stay confirmed and become ungrouped, so each counts as a recipient of its own again. Nothing is detached from a place for it, but the next attach may be refused for the limit.

Access: signed in, with the CSRF header on a cookie. Response 204. A person that is already gone also answers 204.

PUT /notifications/contacts/{contact_id}/person

File a contact under a person, or ungroup it. Regrouping never changes consent.

Access: signed in, with the CSRF header on a cookie.

Parameter In Type Required Description
contact_id path integer yes
person_id query integer no the person. Leave it out to ungroup

Response 204.

Status Body When
404 {"detail": "No such contact."}
404 {"detail": "No such person."}
422 standard list person_id is not an integer

GET /notifications/contacts

List the account’s contacts and people.

Access: signed in. No parameters.

Field Type Description
contacts array of contact oldest first
people array id, label, created_at, ordered by label
contacts_per_place integer how many recipients (people, not destinations) one place may have on this plan
{
  "contacts": [
    {
      "id": 9, "channel": "sms", "label": "Mom", "status": "active", "person_id": 3,
      "destination_hint": "•••• 0100", "verified_at": "2026-10-04T12:05:00Z",
      "opted_out_at": null, "invited_at": "2026-10-04T12:00:00Z",
      "created_at": "2026-10-04T12:00:00Z", "care_tier": "standard",
      "assisted_reason": null, "greeting_name": null, "relationship": null,
      "safety_contact_id": null, "attested_at": null, "confirmed_via": null,
      "confirm_attempts": 0, "frozen_at": null, "signing_secret": null,
      "webhook_kind": null, "webhook_failures": 0, "delivery_state": null
    }
  ],
  "people": [{ "id": 3, "label": "Mom", "created_at": "2026-10-04T12:00:00Z" }],
  "contacts_per_place": 5
}

POST /notifications/contacts

Add a contact and ask it to confirm.

Access: signed in, with the CSRF header on a cookie. The plan must include the channel (Free: email and webhook; paid plans add text and voice).

Body. Give exactly one of destination, same_number_as or use_my_number.

Field Type Required Default Description
channel sms, email, webhook or voice yes
destination string, up to 255 one of three a number, address or URL as typed
same_number_as integer one of three the id of a text or voice contact on this account whose number to reuse. Phone channels only. The new contact inherits its label unless label is sent
use_my_number boolean one of three false reuse the account holder’s confirmed number. Phone channels only. Needs a confirmed text enrollment
label string, up to 80 no null
webhook_kind string, up to 16 no read from the URL discord, slack, teams, google_chat or generic. A named platform the URL does not belong to is refused
person_id integer no null an existing person on this account

Destination rules. Numbers: US or Canadian, 10 digits or 11 starting with 1, stored as E.164. Email: must contain an @ that is not first or last, lowercased; the address is proven by the confirmation message, not a pattern. Webhook: https only, port 443 only, and not a private, loopback or otherwise internal address.

Reusing a number does not reuse its consent. A voice contact made from a text contact still starts pending and gets its own confirmation call.

What happens after the row is created: email, text and voice contacts start pending and one invitation is sent straight away (a confirmation email, a text asking for a YES reply, or a call asking the person to press 1). A failed send still counts as spent, unless the provider plainly refused the request. Webhooks start active, and the response carries signing_secret.

Response 201: the contact object.

{ "channel": "email", "destination": "[email protected]", "label": "Mom", "person_id": 3 }
Status Body When
400 {"detail": "Only a text or voice contact can reuse a number from this account."} reuse requested on an email or webhook
400 {"detail": "There is no confirmed number on this account yet. Add one under text messages first, or type the number instead."} use_my_number with no active enrollment
400 {"detail": "That contact is not a phone number, so there is no number to reuse."} same_number_as names an email or webhook contact
400 {"detail": "That does not look like something we can reach."} the destination does not normalize, including a webhook URL that is not allowed
400 {"detail": "That number has opted out of our messages and cannot be added. They can text START to our number to allow them again."} the number said stop, through any account
400 {"detail": "You have already added that contact."} duplicate destination on the account
402 channel upgrade body the plan does not include the channel
403 {"detail": "This account is disabled."}
404 {"detail": "No such person."} or {"detail": "No such contact."} person_id or same_number_as not on this account
422 {"detail": "Unknown webhook type."} webhook_kind not in the list
422 {"detail": "That URL is not a Slack webhook URL."} webhook_kind does not match the URL. The platform name varies
422 standard list not exactly one of the three destination fields, channel not one of the four values, a field over its length
503 {"detail": "That channel is not configured on this deployment."} no sending credentials for the channel

POST /notifications/contacts/{contact_id}/invite

Ask a contact to confirm again, for an invitation that failed to arrive.

Access: signed in, with the CSRF header on a cookie. No body. Path contact_id is an integer. A contact may be invited at most 2 times in total. Silence is an answer, so a contact that has confirmed, opted out or used both invitations cannot be asked again.

Response 200: the contact object.

Status Body When
400 {"detail": "That contact cannot be asked again. They have either confirmed, opted out, or already been asked twice."}
402 channel upgrade body the plan no longer includes the channel. The contact keeps its row
403 {"detail": "This account is disabled."}
404 {"detail": "No such contact."}
503 {"detail": "That message could not be sent just now, so it has not been counted against this contact. Try again in a moment."} the send failed
503 {"detail": "That channel is not configured on this deployment."}

An invitation’s confirm link or reply is valid for 168 hours (7 days).

DELETE /notifications/contacts/{contact_id}

Remove a contact and every place it was attached to. The consent log is kept.

Access: signed in, with the CSRF header on a cookie. Response 204. Idempotent: a contact that does not exist, or that is not yours, also answers 204.

POST /notifications/contacts/{contact_id}/test

Send a signed test message to a webhook and report what came back. Nothing is recorded as a delivery.

Access: signed in, with the CSRF header on a cookie. No body.

Response 200:

Field Type Description
ok boolean whether the receiver accepted it
detail string Delivered (204)., Rejected (404): ... or Could not reach that URL.

The payload has "type": "test" and is formatted for the webhook’s platform. Generic receivers get the signed JSON described in Webhooks.

Status Body When
403 {"detail": "This account is disabled."}
404 {"detail": "No such contact."}
422 {"detail": "Only webhooks can be sent a test."} the contact is not a webhook

A receiver that fails is reported with ok: false and still 200.

GET /notifications/places/{place_id}/contacts

Who hears about a place, with each contact’s rule there.

Access: signed in. Path place_id is an integer.

Field Type Description
place_id integer
contacts array each is a contact object plus rule
contacts_per_place integer the plan’s recipient limit

rule:

Field Type Meaning
significances array of W, A, Y, S, or null null inherits the place’s sms_significances
phenomena array of string (up to 200), or null an allow-list of VTEC codes. null means every hazard
muted_phenomena array of string (up to 200), or null a deny-list, added to whatever the place mutes and checked after the allow-list. A mute always wins
{
  "place_id": 41,
  "contacts": [{ "id": 9, "channel": "sms", "label": "Mom", "status": "active", "destination_hint": "•••• 0100", "rule": { "significances": ["W"], "phenomena": ["TO"], "muted_phenomena": null } }],
  "contacts_per_place": 5
}

The example abbreviates the contact object. Errors: 404 with {"detail": "No such place."}.

PUT /notifications/places/{place_id}/contacts/{contact_id}

Attach a contact to a place, or change its rule there. Idempotent.

Access: signed in, with the CSRF header on a cookie.

Body: optional. The three rule fields above. With no body, an existing rule is kept, and a new attachment inherits everything. With a body, an existing attachment’s rule is rewritten to exactly what was sent.

Response 204.

The limit counts people. A contact whose person is already on the place costs nothing extra; an ungrouped contact or a new person is one more recipient.

Status Body When
402 {"detail": "Your Free plan covers 1 recipient on a place. Grouping several of somebody's numbers and addresses under one person counts them once."} the plan’s recipient limit would be exceeded. The label and number vary
404 {"detail": "No such place."} or {"detail": "No such contact."} either one is not on this account
422 standard list a rule list over 200 items, or a significance outside W, A, Y, S

DELETE /notifications/places/{place_id}/contacts/{contact_id}

Stop warning a contact about a place. The contact and its consent stay.

Access: signed in, with the CSRF header on a cookie. Response 204, also when the contact was not attached. 404 with {"detail": "No such place."} for a place that is not yours.

POST /notifications/voice/subscribe

Retired. The voice add-on is no longer sold, and calls are part of the plan. The route remains so an old page or app build gets a plain answer.

Access: signed in, with the CSRF header on a cookie. No body.

Status Body When
200 {"already_active": true, "checkout_url": null, "detail": "Voice calls are already on this account."} the plan already includes voice
410 {"detail": {"error": "addon_retired", "message": "Voice calls are no longer sold on their own. They are included in the plan.", "upgrade_tier": "pro"}} otherwise

GET /notifications/contacts/confirm

Confirm an email contact from the link in its invitation. This is the page the person lands on, not a JSON route.

Access: none. The signed link token is the credential.

Parameter In Type Required Description
t query string yes the link token from the email. Valid for 7 days

Response: an HTML page, Cache-Control: no-store. Idempotent, so a mail client that prefetches the link does no harm.

Status Page When
200 “Confirmed” confirmed now or already
400 “That link is not valid” the token is bad or expired, or the contact is gone or not an email contact
409 “This address has been unsubscribed” the address opted out. A link never overrides an opt-out
422 standard list t is missing

GET /notifications/contacts/unsubscribe

Stop all messages to an email contact. For a person clicking the link in an email.

Access: none. The signed link token is the credential, and it does not expire, so a link in an old message still works.

Parameter In Type Required Description
t query string yes the link token

Response: an HTML page. 200 “Unsubscribed” (also when the contact has already been removed), 400 “That link is not valid”, or 422 standard list for a missing t. After this the account cannot re-add the address without the person confirming.

POST /notifications/contacts/unsubscribe

The same operation for a mail client’s one-click unsubscribe control (List-Unsubscribe-Post). The token is the t query parameter, as for GET. It answers with the same HTML page and statuses. No CSRF header, and no body is needed.

View this page as Markdown

May we use Microsoft Clarity to see how pages are used (clicks, scrolling and replays of a visit, with anything you type hidden), plus a random ID linking that to crash reports? Only to find bugs and confusing screens. Never advertising, never sold.