For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
PlaygroundDiscordStatusDashboardSign Up >
DocumentationSDK ReferenceGraphiti
DocumentationSDK ReferenceGraphiti
  • SDK Reference
      • GETGet threads
      • POSTStart a new thread.
      • DELDelete thread
      • GETGet user context
      • GETGet messages of a thread
      • POSTAdd messages to a thread
      • POSTAdd messages to a thread in batch
      • GETGet thread summary
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceThread

Add messages to a thread in batch

Deprecated
POST
https://api.getzep.com/api/v2/threads/:threadId/messages-batch
POST
/api/v2/threads/:threadId/messages-batch
1from zep_cloud import Message, Zep
2
3client = Zep(
4 api_key="YOUR_API_KEY",
5)
6client.thread.add_messages_batch(
7 thread_id="threadId",
8 messages=[
9 Message(
10 content="content",
11 role="norole",
12 )
13 ],
14)
1{
2 "context": "string",
3 "message_uuids": [
4 "string"
5 ],
6 "task_id": "string"
7}

Deprecated. Use the Batch API (client.batch.* with type: "thread_message") instead.

Adds messages to a thread in batch mode, processing messages concurrently.

Was this page helpful?
Previous

Get thread summary

Next
Built with

Path parameters

threadIdstringRequired
The ID of the thread to which messages should be added.

Request

An object representing the thread messages to be added.
messageslist of objectsRequired
A list of message objects, where each message contains a role and content.
ignore_roleslist of enumsOptional
Optional list of role types to ignore when adding messages to graph memory. The message itself will still be added, retained and used as context for messages that are added to a user's graph.
return_contextbooleanOptional
Optionally return context block relevant to the most recent messages.

Response

An object, optionally containing user context retrieved for the last thread message
contextstring
message_uuidslist of strings
task_idstring

Errors

500
Internal Server Error