Skip to content
HTTP API
Skip navigation
HTTP API
View as Markdown

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.

Published Last updated

In this section

On this page (5)

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

EndpointUse it for
POST /api/queryThe main query endpoint. Send Cypher as JSON, with parameter binding and batch statements. A form-encoded body is accepted too.
GET /api/queryThe same query from a URL parameter — for quick checks and browser-pasteable links.
GET /api/query/statsGraph-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:

FieldHolds
reasonkey_unknown for a key the API does not recognise, key_malformed for a value that cannot be a key (too short, or containing whitespace).
errorinvalid_api_key.
messageWhat to do next, in words.
get_keyWhere 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

HeaderHolds
X-Key-StatusHow the key was read: valid, absent, malformed, unknown, lookup_failed or lookup_pending.
X-Request-IdIdentifies the request. Quote it when you report a problem.
X-Whisper-DatasetsThe 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:

FieldTypeDescription
columnsstring[]Column names in RETURN order.
rowsobject[]One object per row, keyed by column name.
statistics.rowCountnumberNumber of rows returned.
statistics.executionTimeMsnumberServer-side execution time. Excludes network latency, so your measured round trip will be larger.
statistics.cachedbooleanPresent only when the answer came from the result cache.
statistics.cachedExecutionTimeMsnumberPresent only on a cache hit: how long the original computation took.
cacheProvenanceobjectPresent 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.
discoveryobjectPresent 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, omittedNullColumnsobject, 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.
rewrittenQuerystringPresent only when the engine rewrote your query to current label or edge names before running it. Update your query to the text it holds.
advisoriesobject[]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.

kindWhen you see itWhat to do
null-pagination-paramA 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-cardinalitySKIP moved past the last row, so the page is empty.You have reached the end; stop paging.
projection-verdict-omittedA 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-semanticswhisper.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-foldA 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-rewriteThe 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-emptyA 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-emptyThe computed layer holds nothing for your anchor right now.Same as above: an absence here means "not available", not "none".
origins-all-candidates-withheldwhisper.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-unavailablePart of a verdict could not be computed for this call.Treat the missing part as unknown, not as clean; retry later.
advisories-truncatedMore advisories were produced than were returned.Fix the ones you can see and run again.
history-type-near-missThe 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-truncatedA 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-typeThe 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-bitsA 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-absentThe 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-apexA 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-withheldContact 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-entitledAn 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-recordA 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.