Base URL
https://api.hailsentinel.com/v1 Authentication
All requests require a Bearer token in the Authorization header. Create a key in Console > API Keys (Admin or Manager role); it is shown once. What a key can reach depends on the workspace plan, set out in the plan table below.
Rotating a key
Rotate a key from the console (Console > API Keys > Rotate) at any time. You'll get a brand-new key with the same scopes, shown once. The old key isn't cut off immediately: it keeps working for a 30-day grace period so you have time to deploy the new one, then stops authenticating on its own.
Restricting a key
When you create a key you can limit it to as many as 20 IP ranges (CIDR). A request from any other address gets 403 forbidden before the key's scopes or plan are checked. Leave the list empty for no restriction.
Rate limits
Every API key is rate limited per minute; the limit for each plan is in the plan table. Rate limit headers are included in every response: X-RateLimit-Remaining, X-RateLimit-Reset. Repeated invalid-key attempts are locked out separately (by source IP and by the key being guessed) and return 429 too_many_failed_attempts.
Response format
All responses are JSON, returned as the resource directly (e.g. a cells array for detections, an hourly array for forecasts), with no envelope wrapper. Errors include a machine-readable error code and a human-readable message.
Idempotent retries
Pass an Idempotency-Key header (up to 255 characters, scoped per endpoint) on the billed creates: POST /v1/alerts/subscribe, /v1/webhooks, /v1/verify, /v1/verify/area, /v1/verify/portfolio, /v1/verify/report, /v1/exports, /v1/portfolio/locations, and /v1/areas. For 24 hours a repeat of the same key returns the original status and body with Idempotent-Replay: true and X-Credits-Cost: 0, and is never charged. Every 2xx and every 4xx that is a property of the request (a validation 400, a 404, a 409) is stored, so a corrected request needs a new key. The partial-write 502 on POST /v1/portfolio/locations is stored too, because a retry would duplicate the rows that already landed. Not stored, so the same key may be retried: every other 5xx, every 402 and 429, and 403 account_suspended. A second request with the same key while the first is still running gets 409 idempotency_key_in_progress; briefly retry. If the first request never answers (its instance was lost), the key is released after 2 minutes and the retry runs.
Freshness & caching
Every market-data GET (hail/current, hail/forecast, hail/risk, hail/nowcast, outlooks/spc, warnings, hail/outlook, hail/swaths, storms, coverage, tiles, hail/history, events) returns a real data_timestamp (or an equivalently-named field where the source has its own freshness concept: data_as_of, fetched_at, model.run_time) and an ETag header. Send it back as If-None-Match on your next request and get 304 Not Modified with an empty body instead of re-downloading bytes you already have. A 304 is billed the same as the 200 it mirrors, so it saves bandwidth, not credits. Verified freshness: radar-fusion-derived endpoints (current conditions, history, swaths, storms, events, warnings, nowcast) refresh on the storm-scanner's real ~2-minute scan cadence, typically current within 5 minutes; hail/forecast and outlooks/spc run hourly (short-range-model-driven); hail/risk's climatology component refreshes weekly; hail/outlook (Day 2-7) refreshes daily. coverage is a static radar-geometry prior with no scan cadence, so it has no data_timestamp; that is not an oversight.