Hanzo AI
OpenapiGraph

Search graph

Finds assertions by their text where read finds them by their keys.

GET /v1/graph/search

Addresshttps://api.hanzo.ai/v1/graph/search
MethodGET
OperationgraphSearch
AuthAuthorization: Bearer $HANZO_API_KEY

Finds assertions by their text where read finds them by their keys.

It is the READ with one more term, not a second way to leave the store: same order, same ceiling, same tenancy, and searching composes with narrowing by relation and by instant because all of them are terms of one filter.

It resolves nothing. What matches is what was asserted, including claims that were later corrected — which is the honest answer to "where is this mentioned" and the reason the caller then asks resolve about what it found.

Request

4 fields.

FieldInTypeRequiredDescription
qquerystringQ is what to look for: words, matched as prefixes, all of them required.
relationquerystringRelation narrows to one relation.
as_ofquerystringAsOf bounds the search to what was knowable at an instant, RFC 3339.
limitqueryintegerLimit caps how many assertions come back.

Response

StatusBodyMeaning
200graphReadOutok

200 body — 13 fields.

FieldInTypeAlwaysDescription
assertionsbodywireFact[]Assertions are the matching rows in the order they were written, oldest first.
assertions[].atbodystringAt is when the thing was so, RFC 3339, as the asserter gave it.
assertions[].bybodystringBy is the identity that filed it — owner or owner/user — stamped from the validated principal at the write, never from the body.
assertions[].confidencebodynumberConfidence in [0,1] as the asserter gave it; absent is 0.
assertions[].entitybodystringEntity is the thing described, in the organization's own namespace.
assertions[].evidencebodystringEvidence points at the record the claim came from.
assertions[].idbodystringID is the assertion's content address, minted by the server from what was asserted.
assertions[].knowablebodystringKnowable is the first instant this plane could have answered with the assertion, RFC 3339: the later of Seen and the server's clock at the write.
assertions[].namesbodybooleanNames true means the assertion is an edge and Value is an entity.
assertions[].relationbodystringRelation is what was asserted of it.
assertions[].seenbodystringSeen is when the asserter says it became knowable, RFC 3339.
assertions[].sourcebodystringSource names who asserted, as the caller gave it.
assertions[].valuebodystringValue is what the relation points at: another entity's key when Names is true, otherwise a scalar.

Failure carries the platform error shape — see Errors.

Examples

hanzo graph search

Graph API · All Hanzo APIs · Interactive reference

How is this guide?

On this page