GET
/
api
/
chat
/
history
curl --request GET \
  --url https://backend.chatfly.co/api/chat/history
[
  {
    "bot_name": "<string>",
    "bot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "session_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "chat_history_response": [
      {
        "sender_type": "<string>",
        "content": "<string>"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

bot_id
string
required
date_from
string
default:
2023-01-01T00:00:00

Start date for filtering chat history.

date_to
string
default:
2030-12-31T00:00:00

End date for filtering chat history.

order
string | null
default:
created_at.desc

Ordering of chat history. Format: '<field_name>.<direction>'.

Response

200
application/json
Successful Response
bot_id
string
required

Unique identifier for the associated bot.

user_id
string
required

Unique identifier for the user.

session_id
string
required

Identifier for the conversation session.

created_at
string
required

Timestamp indicating when the conversation history was created.

chat_history_response
object[]
required

List of chat history entries.

bot_name
string | null

Optional name of the associated bot.