Skip to content

API Reference

Hikari Kibo edited this page Jan 30, 2019 · 1 revision

/api/chatbot/session

Method: GET

Gets your session ID for a new chatbot session.

Returns 200 OK with a application/json response.

Example Response

{
  "token": "<TOKEN>"
}

/api/chatbot/query

Method: POST

Queries Chatbot with the session ID and the Message. You need to call /api/chatbot/session first before using this endpoint.

Required URL Parameters

Parameter Type Description
session_id String The Session ID from /api/chatbot/session.
message String Your Message.

Returns 200 OK with an application/json response if request is successful.

Returns 403 Forbidden if session_id is missing.

Returns 400 Bad Request if either or both parameters are missing or empty.