Get to know our API. If you are looking for our application, visit https://cubebotcorewebapi.azurewebsites.net/ChatbotLive/

This page will help you get started with

Get to know our API. If you are looking for our application, visit https://cubebotcorewebapi.azurewebsites.net


API Keys

To start using our Python SDK or make HTTP requests, you'll need a Cubebotpro API key for authentication. Read more about our API keys here, otherwise, you can find or create your key from the API tab in My Profile, accessible by clicking the circle in the top right of the application page. Once you have your key, all HTTP requests should include the key in an authorization HTTP header.


Remember: Your API Key is private. You should not share it with anyone! This includes making sure you are not exposing it through code. You should route your traffic through your own backend where you can protect your key.

Requests

Get familiar with how to make an API call. Below, you will find two of the most common methods for making your API calls, each with their own benefits.

curl: Curl is easy to set up, as it comes with most operating systems by default. It is a popular command line tool among developers for making HTTP requests due to the minimal setup required, but it is limited in its functionality compared to other programming languages.
Python: Python is an extremely popular programming language due to its wide array of applications in development and ease of use. Cubebotpro offers a Python SDK for further simplification, but you can also make HTTP requests with it directly, as shown below.

curl --request POST
--url 'https://cubebotcorewebapi.azurewebsites.net/ChatbotLive/GetResponseFromBot?chatbotUuid=xxxxxxxxxxxxxxxxxx&conversationUuid=xxxxxxxxxxxxxxx'
--header 'accept: application/json'
--header 'authorization: Bearer ET_8ZrGcXD7oIBic5-U5QOIbVmK6z-Ihr'
--header 'content-type: application/json'
--data '
{
"chatText": "xxxxxxxxxxxxxxxxxxxxxxxxx"
}

GUID: A GUID is typically displayed as a sequence of characters in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.