Send Group Message

Process a user message and return the group's response. This endpoint accepts a message from a user and processes it through through agents in the group based on the specified pattern

Path parameters

group_idstringRequired

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

Request

This endpoint expects an object.
messageslist of objectsRequired
The messages to be sent to the agent.
max_stepsintegerOptionalDefaults to 50
Maximum number of steps the agent should take to process the request.
use_assistant_messagebooleanOptionalDefaults to true

Whether the server should parse specific tool call arguments (default send_message) as AssistantMessage objects.

assistant_message_tool_namestringOptionalDefaults to send_message
The name of the designated message tool.
assistant_message_tool_kwargstringOptionalDefaults to message
The name of the message argument in the designated message tool.
include_return_message_typeslist of enumsOptional

Only return specified message types in the response. If None (default) returns all messages.

Response

Successful Response
messageslist of objects
The messages returned by the agent.
stop_reasonobject
The stop reason from Letta indicating why agent loop stopped execution.
usageobject
The usage statistics of the agent.