Base URL: https://api.wxalerts.org
Passing the exam or completing the General course issues a
spotter credential with a number of the form WX-SPT-2026-04821. A credential carries a level, general or advanced, and is good for 12 months from the day it
was earned, longer with continuing education. These routes show the holder their
credential, draw the certificate, let them confirm the name it prints, and let
anyone check a number.
Routes are signed in, using the app’s Bearer token or the site’s session cookie,
except GET /training/verify/{credential_no}, which is public. A cookie request needs the X-Requested-With: wxalerts header on POST and PUT. Bearer requests
never need it.
Errors common to signed in routes
| Status | Body | When |
|---|---|---|
401 |
{"detail": "Not signed in."} or {"detail": "Session expired."} |
no valid credential |
401 |
{"detail": {"code": "api_key_not_accepted", "message": "..."}} |
an API key was used |
403 |
{"detail": "Missing X-Requested-With header."} |
a cookie write without the header |
403 |
{"detail": {"code": "account_disabled" or "account_deleted", "message": "..."}} |
|
422 |
{"detail": [{"type": "...", "loc": [...], "msg": "...", "input": ...}]} |
the request failed validation. Default format |
GET /training/certificate
Signed in. The holder’s own credential. An account that has never passed gets 200 with certified false and nulls, not 404.
Response
200:
| Field | Type | Notes |
|---|---|---|
certified |
boolean | worked out on every request from the dates against today, not from a stored flag |
credential_no |
string or null | |
holder_name |
string or null | the name printed on the certificate |
certified_on |
string or null | YYYY-MM-DD |
certified_until |
string or null | YYYY-MM-DD, a year from certified_on, later with continuing education |
pdf_url |
string or null | the address of the PDF route. Null when there is no credential or it was revoked |
verify_url |
string or null | the public page that checks the number |
revoked |
boolean | |
level |
string or null | general or advanced |
ce_required |
integer | continuing education items needed to extend, 3 |
ce_in_window |
integer | completed so far in the current window |
ce_window_ends |
string or null | YYYY-MM-DD |
name_confirmed |
boolean | the holder has confirmed the printed name |
A lapsed credential keeps its number, level and PDF, with certified false.
{
"certified": true,
"credential_no": "WX-SPT-2026-04821",
"holder_name": "Pat Example",
"certified_on": "2026-11-23",
"certified_until": "2027-11-23",
"pdf_url": "https://api.wxalerts.org/training/certificate.pdf",
"verify_url": "https://wxalerts.org/verify?c=WX-SPT-2026-04821",
"revoked": false,
"level": "general",
"ce_required": 3,
"ce_in_window": 0,
"ce_window_ends": null,
"name_confirmed": true
}
Caching: Cache-Control: no-store.
GET /training/certificate.pdf
Signed in. The certificate, drawn on demand. An expired credential still downloads.
Response
200, Content-Type: application/pdf, Content-Disposition: attachment with a filename, Cache-Control: private, max-age=300.
Errors
| Status | Body | When |
|---|---|---|
404 |
{"detail": "No certificate issued."} |
no credential |
404 |
{"detail": "This certificate has been revoked."} |
|
409 |
{"detail": {"code": "name_unconfirmed", "message": "Confirm the name for your certificate first."}} |
confirm the name first, with PUT /training/certificate-name |
GET /training/verify/{credential_no}
Anonymous. Check a credential number. This is the only public route on this page, and it says as little as it can: a name, a level, a status and two dates. No email, score, attempts or account id.
Parameters
| Name | In | Type | Required | Bounds |
|---|---|---|---|---|
credential_no |
path | string | yes | max 48 characters. Case, spaces and the dash characters word processors substitute are normalised, then it must be the shape WX-SPT-YYYY-NNNNN |
Response
200:
| Field | Type | Notes |
|---|---|---|
credential_no |
string | normalised |
holder_name |
string | |
status |
string | valid, expired or revoked. A deleted holder’s number reads revoked |
certified_on |
string | YYYY-MM-DD |
certified_until |
string | YYYY-MM-DD |
level |
string or null | general or advanced |
{"credential_no": "WX-SPT-2026-04821", "holder_name": "Pat Example", "status": "valid", "certified_on": "2026-11-23", "certified_until": "2027-11-23", "level": "general"}
Errors
| Status | Body | When |
|---|---|---|
404 |
{"detail": "No such credential."} |
malformed, never issued, or incomplete. All the same answer on purpose |
429 |
{"detail": "Too many verification lookups. Try again shortly."} and Retry-After |
see rate limits |
Rate limits and caching
30 lookups a minute with a burst of 10 per address, and a separate tighter limit on
lookups that miss: 8 an hour with a burst of 5. Answers carry Cache-Control: no-store.
GET /training/certificate-name
Signed in. The name the certificate prints, as the holder confirmed it, with a suggestion to pre-fill the form.
Response
200:
| Field | Type | Notes |
|---|---|---|
name |
string or null | null until confirmed |
confirmed_at |
string or null | UTC |
suggestion |
string or null | the account name with its capitalisation corrected, or null when the account name cannot be a printed name. The holder must still confirm it |
Caching: Cache-Control: no-store.
POST /training/certificate-name/preview
Signed in, CSRF header for cookie requests. How a typed name will print, with its capitalisation corrected. Saves nothing.
Request body (JSON)
| Field | Type | Required | Bounds |
|---|---|---|---|
name |
string | yes | at most 400 characters in the schema. After cleaning it must be 160 characters or fewer and have at least 2 letters |
Response
200 with {"name": "Pat Example"}.
Errors
| Status | Body | When |
|---|---|---|
422 |
{"detail": {"code": "invalid_name", "message": "..."}} |
not a usable name, for example empty, too long, or fewer than 2 letters |
422 |
default list format | name missing or over 400 characters |
PUT /training/certificate-name
Signed in, CSRF header for cookie requests. Confirm the name the certificates print. It rewrites the printed name on a credential the holder already has, unless it was revoked, so a correction keeps the same number and dates. A credential email that was held for want of a confirmed name is sent straight after.
Request body and errors
The same body and errors as the preview.
Response
200 with the object from GET /training/certificate-name, now confirmed.
GET /training/nws-certificate
Signed in. NWS spotter certificates are no longer asked for, counted or shown. This route returns what the account uploaded before that stopped, so it stays visible to its owner. It changes nothing about their standing.
Response
200:
| Field | Type | Notes |
|---|---|---|
items |
array | at most 20 past uploads, newest first |
accepted |
boolean | always false |
message |
string | WxAlerts no longer asks for or uses NWS spotter certificates. Nothing is needed to file reports or to appear on the map. |
Each item has id, status, submitted_at, course, issuing_office, completed_on, name_on_certificate, file_name, reason, reviewed_at, extraction_status, read (what was read from the file), class_date, expiry_rule, expires_on and pending_review (boolean). Dates and times in an item are ISO 8601 and a time ends in +00:00.
POST /training/nws-certificate
Signed in, CSRF header for cookie requests. Retired. Always answers 410 Gone with {"detail": "WxAlerts no longer asks for or uses NWS spotter certificates. Nothing is needed to file reports or to appear on the map."}.
Nothing is read from the request.
POST /training/self-attestation
Signed in, CSRF header for cookie requests. Retired, with the same 410 Gone and body as POST /training/nws-certificate.