Skip to main content
GET
/
v1
/
bot
/
chat
/
read
Get Chat History
curl --request GET \
  --url https://api.boostgpt.co/v1/bot/chat/read \
  --header 'Authorization: Bearer <token>'
{
  "total": 123,
  "conversation": [
    {
      "uuid": "<string>",
      "chat_id": "<string>",
      "content": "<string>",
      "role": "user",
      "model": "<string>",
      "complexity": "<string>",
      "reasoning_type": "<string>",
      "estimated_time_ms": "<string>",
      "estimated_cost": "<string>",
      "confidence": "<string>",
      "channel": "<string>",
      "credit_used": "<string>",
      "confidence_score": "<string>",
      "tokens": 123,
      "upvotes": 123,
      "downvotes": 123,
      "reasoning": {},
      "preference": {
        "model": "<string>",
        "maxTokens": 123,
        "complexity": "<string>",
        "reasoningType": "<string>"
      },
      "sources": [
        {
          "url": "<string>",
          "tags": [
            "<string>"
          ],
          "type": "<string>",
          "title": "<string>",
          "favicon": "<string>",
          "source_id": "<string>",
          "citation_number": 123
        }
      ],
      "updated_at": "2023-11-07T05:31:56Z",
      "user": {
        "uuid": "<string>",
        "email": "<string>",
        "name": "<string>",
        "avatar": "<string>",
        "avatar_link": "<string>"
      },
      "isToolExecuting": true
    }
  ],
  "pagination": {
    "page": 123,
    "per_page": 123,
    "total": 123,
    "total_pages": 123
  }
}

Authorizations

Authorization
string
header
required

Enter your API key

Query Parameters

project_id
string
required

Project ID

bot_id
string
required

Agent ID

chat_id
string
required

Chat ID

page
integer
default:1

Page number

per_page
integer
default:10

Items per page

Response

200 - application/json

Chat history retrieved successfully

total
integer

Total number of messages

conversation
object[]
pagination
object