List Messages For Batch
/v1/messages/batches/{batch_id}/messages
Get response messages for a specific batch job.
Path Parameters
batch_id: string
Query Parameters
Returns
List Messages For Batch
curl https://api.letta.com/v1/messages/batches/$BATCH_ID/messages \
-H "Authorization: Bearer $LETTA_API_KEY"
{
"messages": [
{
"id": "message-123e4567-e89b-12d3-a456-426614174000",
"role": "assistant",
"agent_id": "agent_id",
"approval_request_id": "approval_request_id",
"approvals": [
{
"approve": true,
"tool_call_id": "tool_call_id",
"reason": "reason",
"type": "approval"
}
],
"approve": true,
"batch_item_id": "batch_item_id",
"content": [
{
"text": "text",
"signature": "signature",
"type": "text"
}
],
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_id": "created_by_id",
"denial_reason": "denial_reason",
"group_id": "group_id",
"is_err": true,
"last_updated_by_id": "last_updated_by_id",
"model": "model",
"name": "name",
"otid": "otid",
"run_id": "run_id",
"sender_id": "sender_id",
"step_id": "step_id",
"tool_call_id": "tool_call_id",
"tool_calls": [
{
"id": "id",
"function": {
"arguments": "arguments",
"name": "name"
},
"type": "function"
}
],
"tool_returns": [
{
"status": "success",
"func_response": "func_response",
"stderr": [
"string"
],
"stdout": [
"string"
],
"tool_call_id": {}
}
],
"updated_at": "2019-12-27T18:11:19.117Z"
}
]
}Returns Examples
{
"messages": [
{
"id": "message-123e4567-e89b-12d3-a456-426614174000",
"role": "assistant",
"agent_id": "agent_id",
"approval_request_id": "approval_request_id",
"approvals": [
{
"approve": true,
"tool_call_id": "tool_call_id",
"reason": "reason",
"type": "approval"
}
],
"approve": true,
"batch_item_id": "batch_item_id",
"content": [
{
"text": "text",
"signature": "signature",
"type": "text"
}
],
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_id": "created_by_id",
"denial_reason": "denial_reason",
"group_id": "group_id",
"is_err": true,
"last_updated_by_id": "last_updated_by_id",
"model": "model",
"name": "name",
"otid": "otid",
"run_id": "run_id",
"sender_id": "sender_id",
"step_id": "step_id",
"tool_call_id": "tool_call_id",
"tool_calls": [
{
"id": "id",
"function": {
"arguments": "arguments",
"name": "name"
},
"type": "function"
}
],
"tool_returns": [
{
"status": "success",
"func_response": "func_response",
"stderr": [
"string"
],
"stdout": [
"string"
],
"tool_call_id": {}
}
],
"updated_at": "2019-12-27T18:11:19.117Z"
}
]
}