- Users, threads and graphs. A user has its own graph; a thread belongs to a user and holds chat messages.
threads.messages.addadds messages and Zep extracts facts into the user’s graph in the background;threads.getContextreturns the assembled context block for the next prompt. Standalone graphs (graphs.create) hold shared knowledge that isn’t tied to one user. - IDs. v4 addresses everything by
uuid(thread_uuid,user_uuid,graph_uuid). The ids you chose (user_id,thread_id,graph_id) are looked up withusers.lookup,threads.lookup,graphs.lookuporlookup.developerIds. - Ingestion is asynchronous.
graphs.episodes.add,threads.messages.addand the batch routes queue work;tasks.getandgraphs.episodes.getshow progress. Batches (batches.create,batches.addItems,batches.process) load history in bulk. - Search.
graphs.searchEdges,graphs.searchNodes,graphs.searchEpisodes,graphs.searchObservationsandgraphs.searchThreadSummariessearch one graph;graphs.getContextassembles context from a template;graphs.query(experimental) streams a multi-hop answer as server-sent events and comes back as text. - Deletes are permanent. Deleting a user deletes its graph and threads; deleting a graph, episode, node or edge removes it from search. Every delete is
destructive. - Agent Skills (
agents.*) are in closed release: accounts without access get 403permission_denied. Trace connections (traceConnections.*, Braintrust or LangSmith) check the provider credential when created and answer 422 when the provider refuses it. - Admin-only routes. Policy sets on user groups (
userGroups.listPolicySets,attachPolicySet,detachPolicySet) need a dashboard bearer token: a project API key gets 403. Domain knowledge (*.getKnowledge,*.setKnowledge) needs theknowledge_apiaccount flag (404 without it). - Webhooks. Zep posts
episode.processed,ingest.batch.completedandbyom.request_failedto an endpoint set up in the dashboard (paid plans), signed with Svix. The plugin verifies them with the endpoint’s signing secret.
- 205 typed API operations
- 3 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Zep API key before the first call: More: API Key
pnpm corsair setup --plugin=zep --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
Get a thread’s context for the next promptWebhooks
This plugin registers 3 webhook event types. Configure the provider to POST to your Corsair HTTP handler, then usewebhookHooks on the plugin factory.
See Webhooks for every event path and payload shape, and Webhooks concept for routing.
What’s next
API reference
Every
zep.api.* operation with input and output types.Webhooks
Event paths, payloads, and
webhookHooks examples.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.