API Reference
The Whisper API in three endpoints — POST /api/query, GET /api/query, GET /api/query/stats. Start here, then open the one you need.
In this section
- POST /api/queryThe main query endpoint: send read-only Cypher as JSON, bind parameters, run batch statements. Reference with code in five languages.
- GET /api/queryRun a Cypher query from a URL parameter, for quick checks and pasteable links. Reference with code in five languages.
- GET /api/query/statsGraph-wide node and edge counts, threat-intel summary, and per-layer freshness and coverage. No key needed. Code in five languages.
API Reference Documentation
The Whisper query API is three HTTP endpoints on https://graph.whisper.security. This page covers what they share — authentication, the response envelope, advisories — and links to a dedicated page for each endpoint with request and response details and ready-to-run code in five languages.
The endpoints
| Endpoint | Use it for |
|---|---|
POST /api/query | The main query endpoint. Send Cypher as JSON, with parameter binding and batch statements. A form-encoded body is accepted too. |
GET /api/query | The same query from a URL parameter — for quick checks and browser-pasteable links. |
GET /api/query/stats | Graph-wide node and edge counts, the threat-intel summary, and the freshness and coverage of every computed layer. No key needed. |
The API also publishes its own OpenAPI 3.1 description at GET /api/openapi.json. No key is needed for it either. Security reports go to security@whisper.security.
Authentication
Authentication works the same way on both query endpoints; the stats endpoint needs no key. Some queries run without a key; the deeper cross-layer traversals and the full procedure set need one. Pass it in the X-API-Key header; Authorization: Bearer <key> and Authorization: ApiKey <key> are also accepted. Sign in to get a key — there is no card to enter.
With no key at all, the query runs keyless and answers 200. When a result is thinner than you expected, confirm whether a key was applied: CALL whisper.quota() reports isAnonymous as true for a keyless request, and the response carries X-Key-Status: absent.
An unknown, revoked, expired or malformed key is rejected, not downgraded. The API answers 401 with a problem document of type https://whisper.security/errors/api-key-rejected and does not run the query. The body carries:
| Field | Holds |
|---|---|
reason | key_unknown for a key the API does not recognise, key_malformed for a value that cannot be a key (too short, or containing whitespace). |
error | invalid_api_key. |
message | What to do next, in words. |
get_key | Where to get a key. |
Fix the key, or omit the key from the request to run keyless. If the server cannot check a key at that moment, it answers 503, never 401; retry after the Retry-After interval.
Response headers
| Header | Holds |
|---|---|
X-Key-Status | How the key was read: valid, absent, malformed, unknown, lookup_failed or lookup_pending. |
X-Request-Id | Identifies the request. Quote it when you report a problem. |
X-Whisper-Datasets | The generation of each dataset the answer was computed from. Pass it back as atGeneration to pin a later request to the same generations; see POST /api/query. |
Response envelope
Every successful single-statement response has the same shape, whichever endpoint produced it:
| Field | Type | Description |
|---|---|---|
columns | string[] | Column names in RETURN order. |
rows | object[] | One object per row, keyed by column name. |
statistics.rowCount | number | Number of rows returned. |
statistics.executionTimeMs | number | Server-side execution time. Excludes network latency, so your measured round trip will be larger. |
statistics.cached | boolean | Present only when the answer came from the result cache. |
statistics.cachedExecutionTimeMs | number | Present only on a cache hit: how long the original computation took. |
cacheProvenance | object | Present on every successful response. queryCacheTier says how the answer was produced: miss (computed now), l1 or l2 (served from the result cache), or bypass. datasets maps each dataset the answer drew on to its generation, the same values as X-Whisper-Datasets. Any other key in the object is diagnostic; do not branch on it. |
discovery | object | Present when an anchored HOSTNAME lookup found no node. pending lists names the graph does not hold yet. case_mismatch lists the canonical lowercase name when you wrote the name in a different case. The answer is still 200 with zero rows; see POST /api/query. |
constants, omittedNullColumns | object, string[] | Present when you asked for compact output on a standalone CALL: columns whose value is the same on every row move to constants, and columns that are null on every row are listed in omittedNullColumns. |
rewrittenQuery | string | Present only when the engine rewrote your query to current label or edge names before running it. Update your query to the text it holds. |
advisories | object[] | Present only when the engine has a non-fatal note about how it interpreted the query. See Advisories. |
A ;-separated batch returns a results array instead of this envelope; POST /api/query shows that shape.
Advisories
An advisory is a note on a successful response: the query ran, but the engine interpreted something in a way you should know about. Each entry carries a kind slug, a human-readable message, and, where a value was substituted, queried (what you asked for) and resolved (what was applied). Branch on kind; the message is written for a person and may change.
kind | When you see it | What to do |
|---|---|---|
null-pagination-param | A parameter bound to SKIP or LIMIT resolved to null, so the clause was applied as SKIP 0 or as no limit at all. | Pass a numeric value. |
skip-past-cardinality | SKIP moved past the last row, so the page is empty. | You have reached the end; stop paging. |
projection-verdict-omitted | A whole-node projection (RETURN n, keys(n), properties(n)) left out the reconciled threat-verdict properties. | Send "projectionFull": true, or project the properties you need by name. |
enrich-semantics | whisper.enrich() ran. The note explains its columns: owner is a network attribution, not a threat attribution, and rows are de-duplicated by name. | Join results back to your input by name, never by position. |
whois-parent-fold | A WHOIS lookup on a subdomain was answered from its registrable parent domain; queried and resolved show both names. | Read the record as the parent's. |
schema-drift-rewrite | The query named a label or edge type by an older name and was rewritten; rewrittenQuery holds the text that ran. | Update your query to the current names. |
vdp-plane-empty | A computed layer the query relies on holds no data right now. | Do not read an empty result from it as a clean absence. Check the layer's coverage in GET /api/query/stats and retry later. |
vdp-anchor-empty | The computed layer holds nothing for your anchor right now. | Same as above: an absence here means "not available", not "none". |
origins-all-candidates-withheld | whisper.origins() found candidate origin addresses but withheld every one of them. | Read the message for the reason before drawing a conclusion. |
explain-verdict-axis-unavailable, explain-score-unavailable | Part of a verdict could not be computed for this call. | Treat the missing part as unknown, not as clean; retry later. |
advisories-truncated | More advisories were produced than were returned. | Fix the ones you can see and run again. |
history-type-near-miss | The query read RESOLVES_TO, the current relation. The all-time history is RESOLVED_TO, one letter apart; queried and resolved show both. | If you meant the current answer, nothing to do. For every pair ever observed, read RESOLVED_TO. |
history-truncated | A history answer was cut short, so the rows you have are a partial read. | Page with cursor to read the rest; see History. |
unknown-label, unknown-relationship-type | The query names a label or relationship type the schema does not declare, so the pattern matches nothing. queried holds the name. | An empty result here is about the name, not the data. Check CALL db.labels() or CALL db.relationshipTypes() and correct the spelling. |
prefix-host-bits | A PREFIX name had host bits set, so the engine used the masked block. queried is what you wrote, resolved the block it used. | Use the masked block in your own query. |
graph-anchor-absent | The anchor you named is not a node the graph holds, so the zero rows say nothing about the indicator itself. Node names are case-sensitive; for a HOSTNAME written in upper case the message gives the lower-case spelling. | Check the spelling and case; do not read the empty result as a clean indicator. |
high-fanout-apex | A row inherited its company from an apex domain with a very large number of subdomains, which lowers confidence in that link. | Treat the link as a lead and confirm it. |
contact-data-withheld | Contact data was left out of the answer because the key is not entitled to it: gated properties read as absent. | A missing contact value is not evidence that none exists. Sign in or ask for access; see Errors. |
contact-data-not-entitled | An EXPLAIN of a query that names contact data. The plan is shown, but running the query is refused with 403 not-entitled. | Sign in or ask for access. |
whois-history-stale, whois-history-partial, whois-history-no-record | A WHOIS-history answer is old, was read from only part of its sources, or found no row for the domain. | None of these proves a domain was never registered or never changed hands. Read the answer as a lower bound. |
The list above is the set a client meets most often. CALL db.advisoryKinds() returns every kind the engine can emit. Branch on kind, and treat a kind you do not recognise as informational.