Get references
Question
Question Message
API Reference
Datasets
- GETGet datasets
- POSTCreate dataset
- GETGet dataset
- PUTUpdate dataset
- DELDelete dataset
- GETGet dataset files counts
- GETGet dataset files
- PUTUpdate dataset file
- POSTAdd file to dataset
- DELDelete dataset file
- PUTRefresh dataset file list
- PUTRefresh dataset upload file list
- PUTRefresh dataset upload file list
- POSTAdd link to dataset
- POSTUpdate Dataset Configs
- POSTBind dataset to ai
- DELUnbind dataset to ai
- GETGet ai datasets
- POSTAdd Lark files to dataset by appid, app secret and share urls
- GETget integration rules
Question
Get Session Messages
GET
/
v1
/
{ai_id}
/
session.messages
Copy
curl --request GET \
--url https://api.gbase.ai/v1/{ai_id}/session.messages
Copy
{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"anonymous_username": "<string>",
"question": "<string>",
"answer": "<string>",
"feedback_content": "<string>",
"total_tokens": -1,
"rating": 0,
"reference_list": "<any>",
"reference_indexes": "<any>",
"history_conversation_count": -1,
"is_test": false,
"faq_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comes_from": "<string>",
"first_response_time": -1,
"llm_can_answer": true,
"title": "<string>",
"url": "<string>",
"model": "<string>",
"question_metadata": "<any>",
"status": "finished",
"is_correct": false,
"transfer_to_human": false,
"canvas": "<any>",
"session_id": "<string>",
"user_id": "<string>",
"session_message_metadata": [],
"default_dataset_id": "<string>",
"citation": [
"<any>"
]
}
],
"total": 1,
"page": 2,
"size": 2,
"pages": 1
}
Path Parameters
Query Parameters
Required range:
x >= 1
Required range:
1 <= x <= 1000
Sort order, allowing order by multiple columns, separated by ,
, use -
for reverse order.
Response
200
application/json
Successful Response
The response is of type object
.
Copy
curl --request GET \
--url https://api.gbase.ai/v1/{ai_id}/session.messages
Copy
{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"anonymous_username": "<string>",
"question": "<string>",
"answer": "<string>",
"feedback_content": "<string>",
"total_tokens": -1,
"rating": 0,
"reference_list": "<any>",
"reference_indexes": "<any>",
"history_conversation_count": -1,
"is_test": false,
"faq_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comes_from": "<string>",
"first_response_time": -1,
"llm_can_answer": true,
"title": "<string>",
"url": "<string>",
"model": "<string>",
"question_metadata": "<any>",
"status": "finished",
"is_correct": false,
"transfer_to_human": false,
"canvas": "<any>",
"session_id": "<string>",
"user_id": "<string>",
"session_message_metadata": [],
"default_dataset_id": "<string>",
"citation": [
"<any>"
]
}
],
"total": 1,
"page": 2,
"size": 2,
"pages": 1
}
Assistant
Responses are generated using AI and may contain mistakes.