Skip to main content
GET
/
sessions
/
{session_id}
/
{agent_id}
/
history
Get Session History Endpoint By Agent
curl --request GET \
  --url https://agent-dev.test.studio.lyzr.ai/v1/sessions/{session_id}/{agent_id}/history \
  --header 'x-api-key: <api-key>'
{
  "history": []
}

Authorizations

x-api-key
string
header
required

Path Parameters

session_id
string
required

The unique identifier of the session.

Example:

"12343"

agent_id
string
required

The unique identifier of the agent whose history is being retrieved.

Example:

"1244643456"

Query Parameters

unix
boolean

If set to true, returns timestamps in Unix epoch format; otherwise, returns standard datetime strings.

Example:

false

Response

Session history successfully retrieved.

history
object[]

The list of messages in the session history.

Example:
[]