Add messages to a thread

Add messages to a thread.

Path parameters

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

Headers

AuthorizationstringRequired

Header authentication of the form Api-Key <token>

Request

This endpoint expects an object.
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 memory context relevant to the most recent messages.

Response

An object, optionally containing user context retrieved for the last thread message
contextstring or null

Errors