cURL
curl --request GET \ --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/sessions/{session_id}/timeline \ --header 'X-Maitai-Api-Key: <api-key>'
{ "data": [ { "type": "message", "role": "user", "content": "Hello", "timestamp": 1706000000 }, { "type": "message", "role": "assistant", "content": "Hi! How can I help?", "timestamp": 1706000001 } ] }
Retrieve the chronological timeline of events in an agent session.
Your Maitai API key from the Portal.
Get agent session timeline.
Was this page helpful?