GET
/
chats
/
{sessionId}
curl --request GET \
  --url https://api.greptile.com/v2/chats/{sessionId} \
  --header 'Authorization: Bearer <token>'
{
  "userId": "<string>",
  "timestamp": "<string>",
  "sessionId": "<string>",
  "chatLog": [
    {
      "content": "<string>",
      "role": "<string>",
      "sources": [
        {}
      ]
    }
  ],
  "repos": [
    "<string>"
  ],
  "parentId": "<string>",
  "title": "<string>"
}

Fetches the chat history for a given session ID, restricted to chats belonging to the current user.

Authorizations

Authorization
string
headerrequired

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

Path Parameters

sessionId
string
required

Response

200 - application/json
userId
string
timestamp
string
sessionId
string
chatLog
object[]
repos
string[]
parentId
string
title
string