Skip to main content
POST
/
v1
/
mind
/
chat
Chat
curl --request POST \
  --url http://localhost:8000/v1/mind/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>",
  "action": "free-chat",
  "context": {
    "channel": "student",
    "conversation_id": "<string>",
    "page": {
      "course_code": "<string>",
      "material_id": "<string>",
      "path": "<string>",
      "title": "<string>"
    }
  }
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Enter your JWT access token

Body

application/json
body
string
required
Required string length: 1 - 8000
action
enum<string>
default:free-chat
Available options:
submission-guide,
advisor,
explain-concept,
free-chat
context
ChatContext · object

Response

Successful Response