agents

List Messages

Retrieve message history for an agent.

get/v1/agents/{agent_id}/messages

Path parameters

agent_idstring required

Query parameters

afterstring nullable

Message after which to retrieve the returned messages.

Message after which to retrieve the returned messages.

beforestring nullable

Message before which to retrieve the returned messages.

Message before which to retrieve the returned messages.

limitinteger

Maximum number of messages to retrieve.

Maximum number of messages to retrieve.

group_idstring nullable

Group ID to filter messages by.

Group ID to filter messages by.

use_assistant_messageboolean

Whether to use assistant messages

Whether to use assistant messages

assistant_message_tool_namestring

The name of the designated message tool.

The name of the designated message tool.

assistant_message_tool_kwargstring

The name of the message argument.

The name of the message argument.

include_errboolean nullable

Whether to include error messages and error statuses. For debugging purposes only.

Whether to include error messages and error statuses. For debugging purposes only.

Response

Successful Response

Changes