Skip to main content
GET
/
api
/
v1
/
chat
/
histories
/
by-agent-id
/
{agentId}
{
  "id": "Unique Id",
  "status": "Status",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "lastActivityAt": "2023-11-07T05:31:56Z",
  "summary": "Summary",
  "agent": {
    "id": "Agent Id",
    "fullName": "fullName",
    "role": "USER",
    "description": "Agent Description",
    "welcomeText": "Hello, how may I help you????",
    "systemPrompt": "Prompt Message",
    "avatarUrl": "URL",
    "knowledgeBases": [
      "Knowledge Base"
    ],
    "tools": [
      "tools"
    ],
    "agentConfig": [
      "Agent Config"
    ]
  },
  "messages": {
    "id": "Chat Unique Id",
    "content": "Who is the PM of India ????",
    "role": "SYSTEM",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "images": "Status"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agentId
string
required

Response

200 - application/json

Chat againts agent found successfully.

id
string
required

Unique Id

Example:

"Unique Id"

status
string
required

Chat session status

Example:

"Status"

createdAt
string<date-time>
required

ChatSession created time

updatedAt
string<date-time>
required

ChatSession updated time

lastActivityAt
string<date-time>
required

ChatSession updated time

summary
string
required

Summary against the chat session

Example:

"Summary"

agent
object
required

Agent Dto instance holding agent information

messages
object
required

Chat messages