Skip to main content
GET
/
Agent
/
{agentId}
/
chat
Get the chat connected to an agent
curl --request GET \
  --url https://api.starleads.co/Agent/{agentId}/chat \
  --header 'X-Api-Key: <api-key>'
{
  "id": "<string>",
  "name": "<string>",
  "datasetIds": [
    "<string>"
  ],
  "datasetNames": [
    "<string>"
  ],
  "connectedAgentCount": 123,
  "llmSettings": {
    "temperature": 123,
    "topP": 123,
    "presencePenalty": 123,
    "frequencyPenalty": 123
  },
  "promptSettings": {
    "similarityThreshold": 123,
    "keywordsSimilarityWeight": 123,
    "topN": 123,
    "prompt": "<string>",
    "opener": "<string>",
    "emptyResponse": "<string>",
    "showQuote": true,
    "rerankModel": "<string>"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

X-Api-Key
string
header
required

Headers

X-Api-Key
string
required

Api key to pass as a X-Api-Key request header.

Path Parameters

agentId
string
required

ID of the agent.

Response

Chat connected to the agent

Public representation of a knowledge base chat

id
string

Chat identifier

name
string

Chat name

datasetIds
string[] | null

Connected dataset IDs

datasetNames
string[] | null

Connected dataset names (read-only)

connectedAgentCount
integer<int32> | null

Number of agents using this chat

llmSettings
object

LLM configuration parameters exposed to the API (excludes model name)

promptSettings
object

RAG prompt configuration

createdAt
string<date-time>

Creation timestamp

updatedAt
string<date-time> | null

Last update timestamp