GET
/
v1
/
session
/
conversation
Get conversation history
curl --request GET \
  --url https://api.agentreach.ai/v1/session/conversation \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "sessionId": "<string>",
    "message": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "fromAgent": true
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

sessionId
string
required

Unique identifier for the session.

Response

Conversation history retrieved successfully.

id
string
required

Unique identifier for the message.

sessionId
string
required

Unique identifier for the session.

message
string
required

Content of the message.

createdAt
string<date-time>
required

Timestamp when the message was created.

fromAgent
boolean
required

Indicates if the message is from the agent (true) or the user (false).