Skip to content

API Overview

HEBBS exposes two API surfaces for the same operations:

ProtocolPortUse Case
gRPC6380Low-latency, streaming, typed clients
REST6381HTTP, curl, browser, webhooks

Both APIs share the same underlying engine and behavior. Choose gRPC for production agents and low latency; choose REST for scripting, debugging, or integration with HTTP-only systems.

All API requests require a Bearer token when auth is enabled (the default). The server prints a bootstrap API key on first start. Pass it as:

  • REST: Authorization: Bearer $HEBBS_API_KEY header
  • gRPC: authorization: Bearer $HEBBS_API_KEY metadata

See REST Endpoints — Authentication for details.

HEBBS defines exactly 9 operations, grouped into three categories:

OperationDescriptionLink
rememberStore a new memory with content, importance, context, and optional edgesremember
reviseUpdate a memory’s content, importance, or context while preserving historyrevise
forgetDelete memories by entity, by IDs, or by criteria for GDPR complianceforget
OperationDescriptionLink
recallRetrieve memories using one or more recall strategies (similarity, temporal, causal, analogical)recall
primePre-load session context by entity, blending temporal and similarity recallprime
subscribeStream relevant memories in real-time as new text arrives (bidirectional streaming)subscribe
OperationDescriptionLink
reflect_policyConfigure automatic background reflection triggersreflect_policy
reflectManually trigger the reflection pipeline to consolidate memories into insightsreflect
insightsQuery consolidated knowledge produced by the reflection pipelineinsights
OperationDescriptionLink
listBrowse memories with pagination, filter by entity or kindREST Endpoints
edgesGet all outgoing and incoming graph edges for a memoryREST Endpoints
graphQuery a subgraph around a center node with depth controlREST Endpoints
entitiesList all entity IDs with at least one memoryREST Endpoints
batchBulk-retrieve memories by IDs in a single requestREST Endpoints

These endpoints power custom dashboards and graph visualizations. See the Custom Dashboard cookbook for a complete walkthrough.