help.chat-api.com

General information

The Chat API visual bot constructor allows you to implement a wide range of tasks:

- Sending notifications to messengers from your website;
- Unloading the database of contacts (users);
- Configuring a chatbot from a third-party system;
- Complex solutions involving external systems.

API Architecture

1 - The API is built on REST principles: GET, POST, PATCH, DELETE methods are used.
2 - The result of all requests comes in the format JSON: Content-type: application/json
3 - Queries that return a list of results use limit - offset pagination.
- limit - maximum number of results in a query (no more than 100).
- offset - shift by ordinal number (default: 0).

Authorization in the API

All API requests are protected by token-based authorization. To get a token, send a request to /api/auth/login/ with your authorization data.
Each API request must contain the header: Authorization: Bearer {{token}

info
Most requests work at the Shop level, so they require passing shop_id as a parameter.
 
Basic entities

- Shop is the central entity in the HighTouch platform. It combines the scripts of the bot, connected channels, a database of users and applications, and a set of settings. One user of the platform can manage multiple stores. For example, a partner gets access to their store and the stores of connected customers.
- A bot is an account in a messenger through which communication with the user is conducted.
- User (BotUser) - a user in the messenger who is in correspondence with the bot. The same person in different messengers will be represented by different users!
- The application (Lead) is a user-filled form (questionnaire).
- Order - order of goods in the online store. Orders contain the buyer's contact details and a basket of goods.
- Step is the main building block of the bot's work scenario. Most often, a step is a single message sent by the bot to the user, after sending which the platform performs certain actions depending on the type of step.
- Menu item (MenuItem) - buttons with which the user switches between steps.

Was this article helpful?

Your opinion will be used to improve the content of the article

The Most Multifunctional API Provider

Chat API has been operating since 2015 and is one of the first and largest providers in Eastern Europe.

Here are some curious and important figures:

  • We have tremendous expertise in docker container management at scale with an SLA of 99.5+%;
  • Chat API involves in its work more than 200 servers, with the ability to quickly connect another 100;
  • 3200 cores and 25 terabytes of RAM;
  • 200+ methods and features that keep adding;
  • Highload system, Up Time servers 99.9%;
  • Support 24\7;
Get access to the API