Get chat session
Get chat history for given session id.
Path Parameters
projectId uuid required
Your magic AI project id
sessionId string required
Your chat session id
Responses
- 200
- 400
- 401
- 403
- 426
- 500
successful
application/json
Schema
Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
question string
The text message that you sent to your AI chat bot
answer string
The response you get from your AI chat bot
projectId uuid
Your Magic AI project id
sourceDocuments object[]
The documents that your AI chat bot used to generate the response
pageContent string
The text message that you want to send to your AI chat bot
metadata object
title string
The title of the datasource used to train the AI model
url string
If the datasource is a web page, this is the url of the page
[
{
"question": "What is Magic AI?",
"answer": "Magic AI is a SaaS platform that allows you to create personalized chat bots using your own data. It serves as a game-changing solution...",
"projectId": "5f738671-0ccc-4d32-9b7a-ddab669ab799",
"sourceDocuments": [
{
"pageContent": "What is Magic AI?\\n\\nMagic AI is a SaaS platform that allows you to create personalised chat bots using your own data. The platform enables you to...",
"metadata": {
"title": "How Personalised Chat Bots Can Help Teams Work Together More Efficiently | Magic AI",
"url": "https://magicai.ai/what-is-magic-ai"
}
}
]
}
]
The specified parameter is invalid
application/json
Schema
Example (from schema)
Schema
message string required
details string required
code string required
unique error code
{
"message": "Invalid Request",
"details": "Project already exists",
"code": "PROJECT_EXISTS"
}
Authentication information is missing or invalid
Response Headers
WWW_Authenticate string
You don't have permission to access this resource
application/json
Schema
Example (from schema)
Schema
message string required
details string required
code string required
unique error code
{
"message": "Invalid Request",
"details": "Project already exists",
"code": "PROJECT_EXISTS"
}
You need to upgrade your account to access this resource
application/json
Schema
Example (from schema)
Schema
message string required
details string required
code string required
unique error code
{
"message": "Invalid Request",
"details": "Project already exists",
"code": "PROJECT_EXISTS"
}
An unexpected error occurred
application/json
Schema
Example (from schema)
Schema
message string required
details string required
code string required
unique error code
{
"message": "Invalid Request",
"details": "Project already exists",
"code": "PROJECT_EXISTS"
}
Loading...