help.chat-api.com

API customization and automation

hand
We are sorry to inform you that the article has lost its relevance. Perhaps this function is no longer available or the working conditions with the API have changed.

 

To connect to the messengers API, these materials can help you.

 

Chat API offers the most accessible and automated connection to the messengers Business API on the market with instant access, a visual Chabot constructor that does not require code knowledge, and a Chat platform.

messengers Business API is the most reliable way to introduce more than 2 billion messenger audiences to your business or product. Connect to the Chat API.

Thank you for visiting our website. Our team wishes you success in all matters!

If you plan to automate the process of working with the Chat API, set up automatic creation / deletion of instances, receipt and processing of information, then you just need the section "API Settings"

Here you can find functions that will allow you to customize the automation or API integration  with your solution.

First of all, pay attention to your API KEY, this is extremely confidential information, it is better not to show this key to anyone, otherwise it may lead to loss of control over your instances. Unlike a token, which we can change, the KEY API is an immutable attribute.

 

 

There are three functions in the API settings that you can use to create, delete, and view information on instances.

The first function https://us-central1-app-chat-api-com.cloudfunctions.net/newInstance creates new instances. To do this, we use the parameters specified in the API settings.

Uid is your API KEY

Type is the platform where, in fact, new instances will be created.

It will look like this:

https://us-central1-app-chat-api-com.cloudfunctions.net/newInstance?uid=XXXXXXXXX&type=messengers

Server response:

The second function is to delete an instance: https://us-central1-app-chat-api-com.cloudfunctions.net/deleteInstance

The working parameters are:

Uid is your API KEY

instanceId - the number of the instance that you plan to delete.

The function takes the following form:

https://us-central1-app-chat-api-com.cloudfunctions.net/deleteInstance?uid=xxxxxxxx&instanceId=xxxxx

The response from the server will look like this:

You can view information about instances using the function: https://us-central1-app-chat-api-com.cloudfunctions.net/listInstances

Parameters:

Uid is your API KEY

The function takes the form https://us-central1-app-chat-api-com.cloudfunctions.net/listInstances?uid=XXXXXXXXX

Server response:

Also, if you have more than 25 instances, we will expand the capabilities of your personal account and add the function of transferring days, which will allow you to independently distribute the work resource between your instances.

You can learn more about how you can configure the API in our tutorial video:

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