Skip to content
martmists edited this page Nov 26, 2018 · 1 revision

Routes

GET /api/chatbot/session
Returns:

  • 200 OK - a session token and spawns a new session.

POST /api/chatbot/query
Expected body:

{
    "session_id": "a session ID obtained as described above",
    "message": "Hello world!"
}

Returns:

  • 200 OK - A response from the chatbot.
  • 400 BAD REQUEST - You sent a malformed request, more information in response body.
  • 403 FORBIDDEN - Your session_id is invalid.
Clone this wiki locally