Memory

Add memory to the specified session.

POST
Add memory to the specified session.

Path parameters

sessionIdstringRequired
The ID of the session to which memory should be added.

Request

This endpoint expects an object.
messages
list of objectsRequired
A list of message objects, where each message contains a role and content.
fact_instruction
stringOptional
Additional instruction for generating the facts.
summary_instruction
stringOptional
Additional instruction for generating the summary.

Response

This endpoint returns an object
message
stringOptional

Errors

POST
1curl -X POST https://api.getzep.com/api/v2/sessions/sessionId/memory \
2 -H "Authorization: Api-Key <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "messages": [
6 {}
7 ]
8}'
1{
2 "message": "message"
3}