Skip to main content
List every item stored for a session: user/assistant messages, function calls, and tool outputs.

Endpoint

Authentication

Authorization: Bearer <api_key> or Authorization: ApiKey <key>. Optional if AGENT_CLOUD_API_KEY is unset.

Path parameters

string
required
Session identifier.

Response

OpenAI list envelope. Each item in data:
string
Item id.
string
Always agent.session.item.
string
Parent session.
string
Owning turn.
string
message | function_call | function_call_output.
string
user | assistant | system for message items.
string
Item status (for example completed).
any
Message text/content parts or tool payload JSON.
integer
Epoch milliseconds.