PulseWise API Documentation
Welcome to the PulseWise API documentation. This RESTful API provides access to healthcare data and analytics.
Base URL
https://api.pulsewise.com
Version
v1
Response Format
JSON
Getting Started
Quick Start Guide
- Register for an API account and obtain your API key
- Include your API key in the Authorization header of all requests
- Make your first API call to test connectivity
- Explore the available endpoints below
Test Your Connection
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.pulsewise.com/api/v1/status
Authentication
PulseWise API uses Bearer token authentication. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
The key is also accepted as an X-API-Key header, or as a
?license_key= query parameter. Prefer a header: a key in a URL
ends up in every access log between you and PulseWise.
API Endpoints
entitlement it returns
403 FEATURE_RESTRICTED.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Code Examples
Try It Live
Response:
Error:
Sample Response
A real response to , with long lists cut short.
Log Monitor ingest
Your application posts an hourly summary of what happened; PulseWise tells you when those numbers stop looking like your application. Everything below is what you need to write a client — see Log Monitor to create a source and get its key.
Send every hour, including empty ones
Post each hour even when every count is zero. A zero is a measurement; a missing hour is the absence of one. If quiet hours are skipped, "nobody used the site" becomes indistinguishable from "the site stopped reporting" — and a source that stops reporting is treated as down. Skipping empty hours will get you paged for an outage you do not have.
https://api.pulsewise.com/api/v1/logs/ingest
X-Ingest-Key: ls_…. This is the source's own key, not a
pk_ API key — it can only write that one source's counts, and revoking it
does not affect your API access.
Request
{
"hours": [
{
"hour": "2026-09-08T14:00:00Z", // start of the hour, ISO 8601, UTC
"events": { // omit a type, or send 0 — same thing
"login_success": 42,
"login_failure": 3,
"password_reset": 1
},
"distinct_users": 31, // optional
"distinct_ips": 28, // optional
"new_ips": 4, // optional
"changes": [ // optional — see Notable changes
{"event": "plugin_installed", "subject": "wordfence", "count": 1}
]
}
]
}
Batching
Up to 48 hours per request. Send one hour at a time normally; send several to catch up after downtime.
Safe to retry
Re-posting an hour replaces it rather than adding to it, so a timeout you are unsure about can simply be retried. A duplicate would otherwise look exactly like a spike.
Accepted window
Backfill up to 7 days. Hours more than 90 minutes ahead of our clock are refused — check the clock on the sending server.
Event types
Send whichever apply. Unknown names are ignored rather than rejected, so a client reporting something newer than this server does not lose the hours that came with it.
| Key | Meaning | Assessed |
|---|---|---|
| login_success | Successful logins | In the hour's total traffic |
| login_failure | Failed logins | Per hour, against that hour of the week |
| page_view | Page views | In the hour's total traffic |
| password_reset | Password resets | Over a rolling window |
| user_created | Users created | Over a rolling window |
| user_deleted | Users deleted | Over a rolling window |
| role_changed | Roles changed | Over a rolling window |
| plugin_activated | Plugins activated | Every occurrence (Notable changes) |
| plugin_deactivated | Plugins deactivated | Every occurrence (Notable changes) |
| theme_changed | Themes changed | Every occurrence (Notable changes) |
| core_updated | Core updated | Every occurrence (Notable changes) |
| post_published | Posts published | In the hour's total traffic |
| file_changed | Files changed | Over a rolling window |
| admin_login | Administrator logins | Over a rolling window |
| plugin_installed | Plugins installed | Every occurrence (Notable changes) |
| plugin_updated | Plugins updated | Every occurrence (Notable changes) |
| plugin_deleted | Plugins deleted | Every occurrence (Notable changes) |
| theme_installed | Themes installed | Every occurrence (Notable changes) |
| theme_updated | Themes updated | Every occurrence (Notable changes) |
| theme_deleted | Themes deleted | Every occurrence (Notable changes) |
| admin_granted | Administrator rights granted | Every occurrence (Notable changes) |
| option_changed | Critical settings changed | Every occurrence (Notable changes) |
| file_edited | Files edited from the dashboard | Every occurrence (Notable changes) |
| app_password_created | Application passwords created | Every occurrence (Notable changes) |
| page_published | Pages published | Over a rolling window |
| post_updated | Published posts edited | Over a rolling window |
| page_updated | Published pages edited | Over a rolling window |
| post_trashed | Posts trashed | Over a rolling window |
| page_trashed | Pages trashed | Over a rolling window |
| post_deleted | Posts deleted | Over a rolling window |
| page_deleted | Pages deleted | Over a rolling window |
| user_updated | User profiles updated | Over a rolling window |
| password_changed | Passwords changed | Over a rolling window |
| not_found | Page-not-found (404) responses | Per hour, against that hour of the week |
| comment_posted | Comments posted | Over a rolling window |
| comment_spam | Comments marked as spam | Per hour, against that hour of the week |
Types added after the first release (404s, comments, content edits and the change events)
count as measured only when you send them — send 0 for a quiet hour rather than
leaving the key out, or PulseWise cannot tell "none happened" from "not counted".
Notable changes
Some things are worth hearing about every time, however normal their rate: a plugin installed at
3am, a new administrator. List them in the hour's changes array and each is reported
once as its own finding. subject names what changed — a plugin or theme
slug, a setting's name, a file path, a version — and must never name who: no
usernames, emails or post titles. Also count each one in events under the same
name. Up to 200 entries per hour; unknown events are ignored.
| Event | Reported as | Severity |
|---|---|---|
| admin_granted | A user was given administrator rights | ALERT |
| option_changed | Critical site setting changed | ALERT |
| file_edited | A file was saved from the dashboard editor | ALERT |
| app_password_created | An application password was created | ALERT |
| plugin_installed | Plugin installed | REVIEW |
| plugin_updated | Plugin updated | REVIEW |
| plugin_deleted | Plugin deleted | REVIEW |
| plugin_activated | Plugin activated | REVIEW |
| plugin_deactivated | Plugin deactivated | REVIEW |
| theme_installed | Theme installed | REVIEW |
| theme_updated | Theme updated | REVIEW |
| theme_deleted | Theme deleted | REVIEW |
| theme_changed | Active theme switched | REVIEW |
| core_updated | WordPress updated | REVIEW |
Response
HTTP 202
{
"success": true,
"accepted": 1,
"rejected": [], // anything refused is named, never silently dropped
"next_expected_hour": "2026-09-08T15:00:00+00:00"
}
202 with a non-empty rejected array means some hours were not
stored and why. Log it — a client that ignores it will keep resending the same rejected hours
forever while its operator believes the site is monitored.
401 is an unknown or rotated key, 403 a paused source,
422 a malformed body.
A worked example
curl -X POST https://api.pulsewise.com/api/v1/logs/ingest -H "X-Ingest-Key: ls_your_key_here" -H "Content-Type: application/json" -d '{"hours":[{"hour":"2026-09-08T14:00:00Z","events":{"login_success":42,"login_failure":3},"distinct_users":31}]}'
In a Laravel application, an hourly scheduled command is usually the whole client:
// Runs hourly. Reports the hour that has just closed — including
// the hours when nothing happened, which is the point.
$hour = now()->utc()->subHour()->startOfHour();
Http::withHeaders(['X-Ingest-Key' => config('services.pulsewise.ingest_key')])
->post('https://api.pulsewise.com/api/v1/logs/ingest', [
'hours' => [[
'hour' => $hour->toIso8601String(),
'events' => [
'login_success' => Activity::type('login')->inHour($hour)->count(),
'login_failure' => Activity::type('login_failed')->inHour($hour)->count(),
'password_reset' => Activity::type('password_reset')->inHour($hour)->count(),
],
'distinct_users' => Activity::inHour($hour)->distinct('user_id')->count(),
]],
])->throw();
Send counts, not records
The endpoint accepts numbers and nothing else. No usernames, email addresses, IP addresses or log lines are wanted or stored — which keeps your users' data on your server, keeps this well clear of GDPR obligations, and means a breach here would reveal how busy you were and nothing more.
Site Monitor — scheduled malware scanning
The /api/malware/{target} endpoint above is a one-shot
check: it fetches a page and tells you whether known malware is being served right now. With
no history to compare against, it cannot tell you that something changed.
Site Monitor is the stateful half. Register a website and PulseWise fetches its home page — and any same-domain sub-pages you name — on a cadence you choose, then reports what it finds.
ALERT
Known malware is being served. A payload signature matched, packed JavaScript was found inlined in the page, or a script appeared from a host that is on a threat feed or that the site has never used before.
REVIEW
Something changed since the baseline you accepted. On a live site this is usually a plugin or theme update. Kept separate from alerts on purpose — blurring the two is what makes a scanner unreadable.
The baseline only moves when you move it
Changes are reported every scan until you accept the current state of the site. Nothing is adopted automatically, because a baseline that updates itself would absorb a slow injection one scan at a time.
Email only when there is something new
A report is sent only when a scan finds something the previous scan did not, so a change you have seen and chosen to leave unaccepted does not mail you every hour. A scan that finds nothing is silent.
Email header analysis
POST /api/email/headers takes an email’s header block and
answers three questions: who sent it and to whom, which way it travelled, and whether it is
what it claims to be. The same analysis is available without code at
/email-headers.
Send the headers as a headers field (JSON or form), or as the
raw body with Content-Type: text/plain. Nothing you send is stored.
curl -X POST "https://api.pulsewise.com/api/email/headers" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: text/plain" \
--data-binary @message-headers.txt
Two views of authentication
authentication.receiver is what the receiving server
recorded in Authentication-Results when the message arrived — the strongest
evidence, because it saw the real connection. It is trusted only when the
server that wrote it is one of the servers that received the message: anyone can put that
header in mail they send. spf, dkim and dmarc are
PulseWise’s own re-check against today’s DNS, with each DKIM signature verified
cryptographically.
The verdict
authentic— DMARC passed: the From domain vouches for it.unverified— nothing ties it to the From domain, which publishes no DMARC policy.suspicious— failed DMARC under a monitoring-only policy, or a red flag such as a display name showing another address or a domain on a phishing list.forged— failed DMARC for a domain that asks receivers to reject or quarantine such mail.inconclusive— too little was sent to judge.
route.hops lists the Received headers oldest first,
each with from, from_ip, by, tls,
timestamp and delay_seconds; handoff marks where the message
entered the recipient’s servers. findings lists everything else worth knowing
— delays, unencrypted hops, a Reply-To at another domain — each with a
severity of danger, warning or notice.
A DKIM signature can be verified from the headers alone; its body is then
not_checked. Send the whole message to have the body hash compared as well.
Storm tracking — hurricanes and typhoons
Every current-weather response also lists every active tropical cyclone in the world — hurricanes, typhoons, cyclones and tropical storms — as seen from the coordinates you asked about: how far away each one is, which direction it lies in, how strong it is, which way and how fast it is moving, and when it gets to you. It comes with current weather; there is nothing extra to enable.
Storms come from the two official forecasters that between them cover every ocean: NOAA's National Hurricane Center for the Atlantic, Eastern and Central Pacific, and the Joint Typhoon Warning Center for the Western Pacific, the North Indian Ocean and the Southern Hemisphere. Times come from their official forecast tracks.
https://api.pulsewise.com/api/weather/{latitude}/{longitude}
units — storm distances and speeds are in miles and mph unless you pass units=metric (km and km/h). The weather fields around them still default to metric, so each storm states its own distance_unit and speed_unit.timezone — an IANA zone such as America/New_York for every storm time field (default UTC). time_utc is always given alongside.Response
The storm part of a response, for a point on the Mexican coast in the path of Tropical Storm
Vance (trimmed: storms holds every storm in the same shape as
nearest_storm, and the track runs to five days).
{
"nearest_storm": {
"id": "ep222026", "name": "Vance", "designation": "22E",
"basin": "ep", "basin_name": "Eastern Pacific",
"classification": "TS", "classification_name": "Tropical Storm",
"position": { "latitude": 15.3, "longitude": -105.1,
"time": "2026-10-26T02:00:00-07:00", "time_utc": "2026-10-26T09:00:00Z" },
"distance": 306, "distance_unit": "mi",
"direction": { "degrees": 136, "compass": "SE" }, // where the storm is, from here
"intensity": { "scale": "Saffir-Simpson", "category": null, "label": "Tropical storm",
"max_sustained_wind": 65, "max_sustained_wind_kt": 55, "pressure_mb": 995 },
"movement": { "heading_degrees": 305, "heading": "NW", "speed": 6, "stationary": false },
"speed_unit": "mph",
"approaching": true,
"eta": {
"type": "arrival", // or "closest_approach"
"time": "2026-10-27T16:50:00-07:00", "time_utc": "2026-10-27T23:50:00Z",
"hours_from_now": 33.8,
"distance": 57, // the centre's distance then
"already_arrived": false,
"description": "Its tropical-storm-force winds are forecast to reach this location; ..."
},
"arrival": { "time": "2026-10-27T16:50:00-07:00", "time_utc": "2026-10-27T23:50:00Z",
"hours_from_now": 33.8, "already_arrived": false },
"arrival_note": "When tropical-storm-force winds (39 mph / 63 km/h or more) are forecast to reach this location.",
"closest_approach": { "distance": 20, "direction": { "degrees": 86, "compass": "E" },
"time": "2026-10-27T23:10:00-07:00", "time_utc": "2026-10-28T06:10:00Z",
"hours_from_now": 40.2 },
"forecast_track": [
{ "latitude": 15.6, "longitude": -105.9, "time": "2026-10-26T11:00:00-07:00",
"time_utc": "2026-10-26T18:00:00Z", "max_sustained_wind": 60, "category": null },
...
],
"advisory": { "number": "020", "issued_at": "2026-10-26T09:00:00Z",
"url": "https://www.nhc.noaa.gov/text/MIATCPEP2.shtml",
"source": "NOAA National Hurricane Center" }
},
"storms": [ { "name": "Vance", ... }, { "name": "Olana", ... }, { "name": "In-Fa", ... }, { "name": "Arnab", ... } ],
"storm_coverage": {
"complete": true,
"active_storms": 4,
"forecasters": [
{ "id": "nhc", "forecaster": "NOAA National Hurricane Center",
"basins": ["Atlantic", "Eastern Pacific", "Central Pacific"],
"status": "ok", "checked_at": "2026-10-26T14:30:26Z", "storms_tracked": 2 },
{ "id": "jtwc", "forecaster": "Joint Typhoon Warning Center",
"basins": ["Western Pacific", "North Indian Ocean", "Southern Hemisphere"],
"status": "ok", "checked_at": "2026-10-26T14:30:26Z", "storms_tracked": 2 }
],
"source": "...", "notice": "..."
}
}
Read eta.type: an ETA is one of two different answers
A storm's centre almost never passes over a given point — its winds are hundreds of miles across — so "when does it get here" is answered by its wind.
arrival: the official forecast puts your coordinates inside the storm's tropical-storm-force winds (39 mph / 63 km/h and up) frometa.time.eta.distanceis how far away the centre is at that moment. Ifalready_arrivedis true, you were inside them at the storm's last report.closest_approach: its tropical-storm-force winds are not forecast to reach you.eta.timeis when the centre passes nearest, andeta.distancehow near. For a storm moving away, that is its last reported position anddescriptionsays so.
Never present a closest approach as an arrival. A storm passing 300 miles away is not arriving.
Each storm
storms lists every active storm, nearest first; nearest_storm is the
first of them. Both are empty ([] and null) when no storm is active
anywhere.
| Field | Meaning |
|---|---|
idnamedesignation | The forecaster's id for the storm (ep222026, wp3026), its name, and its number and basin letter (22E, 30W). |
basinbasin_name | al Atlantic, ep Eastern Pacific, cp Central Pacific, wp Western Pacific, io North Indian Ocean, sh Southern Hemisphere. |
classificationclassification_name | What the forecaster calls it: TD tropical depression, TS tropical storm, HU hurricane, TY typhoon, STY super typhoon, TC tropical cyclone, STS subtropical storm, PTC potential tropical cyclone. |
position.latitudeposition.longitudeposition.timeposition.time_utc | Where the centre was at the forecaster's last report, and when. Advisories come every 3 to 6 hours (NHC) or 6 to 12 (JTWC), so this is usually a few hours old. |
distancedistance_unit | How far the centre is from your coordinates now: miles, or km with units=metric. |
direction.degreesdirection.compass | Where the storm is, seen from your coordinates: SE means the storm lies to your southeast. Not the way it is moving. |
intensity.scaleintensity.categoryintensity.labelintensity.max_sustained_windintensity.max_sustained_wind_ktintensity.pressure_mb | Strength on the Saffir-Simpson scale. category is 1–5, or null below hurricane strength, when label says Tropical storm or Tropical depression. Wind is one-minute sustained, in mph or km/h rounded to the nearest 5 the way NHC's advisories round it, and in knots as the forecaster gives it. Pressure is minimum central pressure in millibars, null when not published. |
movement.heading_degreesmovement.headingmovement.speedmovement.stationaryspeed_unit | Which way the storm is moving, and how fast it is moving forward: mph, or km/h with units=metric. Heading is null for a stationary storm. |
approaching | true when the official forecast brings the centre closer to you than it is now; null when there is no forecast to judge by. |
eta.typeeta.timeeta.time_utceta.hours_from_noweta.distanceeta.already_arrivedeta.description | When it gets to you. Always read eta.type — see above. already_arrived is given only for an arrival. null only if the storm's forecast could not be read. |
arrival.timearrival.time_utcarrival.hours_from_nowarrival.already_arrivedarrival_note | When tropical-storm-force winds are forecast to reach you, or null, with arrival_note saying why (not forecast to, the forecast does not say how far its winds reach, or there is no forecast). |
closest_approach.distanceclosest_approach.directionclosest_approach.timeclosest_approach.time_utcclosest_approach.hours_from_now | When and how close the centre passes, and on which side of you. |
forecast_track[].latitudeforecast_track[].longitudeforecast_track[].timeforecast_track[].time_utcforecast_track[].max_sustained_windforecast_track[].category | The official forecast positions, 12-hourly out to 3 days and daily to 5 (JTWC's warnings sometimes stop sooner). Enough to draw the track. |
advisory.numberadvisory.issued_atadvisory.urladvisory.source | The advisory or warning this came from, with a link to its text. |
The Saffir-Simpson scale
| Tropical depression | under 39 mph (34 kt) |
| Tropical storm | 39–73 mph (34–63 kt) |
| Category 1 | 74–95 mph (64–82 kt) |
| Category 2 | 96–110 mph (83–95 kt) |
| Category 3 | 111–129 mph (96–112 kt) |
| Category 4 | 130–156 mph (113–136 kt) |
| Category 5 | 157 mph (137 kt) and up |
Applied in every ocean, so storms compare directly. Some agencies use their own scales
— an Australian "category 3 cyclone" is not a Saffir-Simpson category 3 —
which is why intensity.scale names it.
Check storm_coverage.complete
If one forecaster cannot be reached, its oceans' storms are missing, and the nearest
storm listed may not be the nearest — a typhoon could be closer. The response
says so (complete: false, with warnings) rather than quietly
showing fewer storms. With nobody reachable, storms is empty and the
warnings say why; the weather is still returned. An empty list is only "no storms"
when complete is true.
storm_coverage
| Field | Meaning |
|---|---|
storm_coverage.complete | true when every forecaster answered. When false, read warnings before trusting nearest_storm. |
storm_coverage.active_storms | How many storms are in storms. |
forecasters[].idforecasters[].forecasterforecasters[].basinsforecasters[].storms_tracked | Each agency asked, the oceans it covers, and how many storms it is tracking. These are forecasters, not storms. |
forecasters[].statusforecasters[].checked_atforecasters[].incomplete | ok; partial (a storm's forecast or warning could not be read — named in incomplete); stale (could not be reached, so its last list is used — as of checked_at); or unavailable (could not be reached and nothing recent is held, so its storms are missing). |
storm_coverage.messagestorm_coverage.warnings | message appears when there are no active storms. warnings appear whenever the list may be incomplete, and say what is missing. |
storm_coverage.sourcestorm_coverage.notice | Attribution, and the limits of a forecast. |
A worked example
curl "https://api.pulsewise.com/api/weather/25.7617/-80.1918?timezone=America/New_York" -H "X-API-Key: pk_your_key_here"
const res = await fetch(url, { headers: { 'X-API-Key': key } }).then(r => r.json());
if (!res.storm_coverage.complete) {
console.warn(res.storm_coverage.warnings.join(' ')); // some storms may be missing
}
for (const s of res.storms) {
const when = s.eta?.type === 'arrival'
? `winds arrive ${s.eta.time} (in ${s.eta.hours_from_now} h)`
: s.eta ? `passes ${s.eta.distance} ${s.distance_unit} away at ${s.eta.time}` : 'no forecast';
console.log(`${s.name}: ${s.intensity.label}, ${s.distance} ${s.distance_unit} ${s.direction.compass}, ` +
`moving ${s.movement.heading} at ${s.movement.speed} ${s.speed_unit}; ${when}`);
}
A forecast, not a warning service
Track forecasts are uncertain — NHC's average track error is roughly 100 nautical miles at four days, and more at five — and surge, rain and surf reach far beyond a storm's tropical-storm-force winds. Times here are the official forecast taken at face value. For safety decisions, follow your national weather service and local officials.
Error Codes
| Code | Status | Description |
|---|---|---|
| 200 | OK | Request successful |
| 400 | Bad Request | Invalid request parameters |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | Access denied |
| 404 | Not Found | Resource not found |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Server error |
Error bodies
An error has one of two shapes, depending on what refused the request. When the license key check
refuses it, the body carries error.message and a machine-readable error.code:
{
"success": false,
"error": {
"message": "License key is required",
"code": "MISSING_LICENSE_KEY",
"timestamp": "2026-11-16T12:00:00.000000Z"
},
"request": { "ip_address": "...", "url": "...", "method": "GET" }
}
When an endpoint accepted the key but could not answer (a malformed IP, a place nobody can find), the message is at the top level:
{
"success": false,
"message": "Invalid IP address provided",
"request": { "ip_address": "...", "url": "...", "method": "GET" }
}
License key error codes
| error.code | Status | Meaning |
|---|---|---|
MISSING_LICENSE_KEY |
401 | No key was sent. |
INVALID_KEY_FORMAT |
400 | The key is not in the pk_ format. |
INVALID_LICENSE_KEY |
401 | No such key. |
LICENSE_INACTIVE |
401 | The key has been suspended or revoked. |
LICENSE_EXPIRED |
401 | The key has expired. |
IP_RESTRICTED |
403 | The key is limited to other IP addresses. |
DOMAIN_RESTRICTED |
403 | The key is limited to other domains. |
FEATURE_RESTRICTED |
403 | The key's plan does not include this endpoint; error.upgrade_url says where to add it. |
RATE_LIMIT_EXCEEDED |
429 | Over the key's hourly limit. Retry after the Retry-After header's seconds. |
USAGE_LIMIT_EXCEEDED |
429 | Over the key's quota for this 30-day period. |
Rate Limits
Each license key has an hourly rate limit and a request quota for each 30-day period, set by its plan.
Over the hourly limit the API answers 429 RATE_LIMIT_EXCEEDED with a Retry-After
header; over the quota, 429 USAGE_LIMIT_EXCEEDED. The defaults for a new key are:
| Plan | Requests per hour | Requests per 30 days |
|---|---|---|
| Free | 1,000 | 1,000 |
| Basic | 10,000 | 10,000 |
| Premium | 50,000 | 100,000 |
| Enterprise | 100,000 | 1,000,000 |
Usage headers
Every accepted request carries these headers:
X-RateLimit-Limit: The key's hourly rate limit.X-RateLimit-Remaining: Requests left in the key's current 30-day quota.X-Usage-Limit: The key's 30-day quota.X-Usage-Used: Requests made so far in this 30-day period.X-Plan-Type: The key's plan: free, basic, premium or enterprise.
Support
Need help with the PulseWise API? Here are some resources: