Skip to main content
Use Zep through Corsair: one client, typed API calls, and incoming webhooks. Create a project API key in the Zep dashboard. Every call acts on that project. Things to know before you write:
  • Users, threads and graphs. A user has its own graph; a thread belongs to a user and holds chat messages. threads.messages.add adds messages and Zep extracts facts into the user’s graph in the background; threads.getContext returns 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 with users.lookup, threads.lookup, graphs.lookup or lookup.developerIds.
  • Ingestion is asynchronous. graphs.episodes.add, threads.messages.add and the batch routes queue work; tasks.get and graphs.episodes.get show progress. Batches (batches.create, batches.addItems, batches.process) load history in bulk.
  • Search. graphs.searchEdges, graphs.searchNodes, graphs.searchEpisodes, graphs.searchObservations and graphs.searchThreadSummaries search one graph; graphs.getContext assembles 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 403 permission_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 the knowledge_api account flag (404 without it).
  • Webhooks. Zep posts episode.processed, ingest.batch.completed and byom.request_failed to an endpoint set up in the dashboard (paid plans), signed with Svix. The plugin verifies them with the endpoint’s signing secret.
What you get:
  • 205 typed API operations
  • 3 incoming webhook event types

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

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 prompt
Add chat messages to a thread
See the full list on the API page.

Webhooks

This plugin registers 3 webhook event types. Configure the provider to POST to your Corsair HTTP handler, then use webhookHooks 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.