Business Controller
How to use the CodeChat API:
CodeChat API is a robust WhatsApp integration platform designed to enable companies to communicate with their customers efficiently and securely. With support for multi-company applications, our API offers a complete solution to manage interactions via WhatsApp for multiple companies in a single environment.
Creating a New Business: To create a new deal in the CodeChat API, developers must make an HTTP request to the deal creation endpoint, providing the admin token (ADMIN_TOKEN) in the request header to ensure proper authentication. This process ensures that only authorized users can create new deals on the platform.
Linking Instances to Business ID: Upon creation of the new deal, the API will return a unique ID that identifies this entity. With the business ID in hand, you can link instances to the newly created business. Instances represent companies or entities that want to use the API to interact with their customers through WhatsApp.
By making an HTTP request to the instance linking endpoint and providing the business ID along with the instance information to be associated with, the CodeChat API allows multiple companies or entities to be linked to a single business. In this way, the platform becomes a multi-company application, where all interactions and data are managed in the context of each specific business.
📄️ Recover a Business.
Bring the information of a business with its respective instances and connected numbers.
📄️ Update Business
Update Business
📄️ Create Instance
Create an instance that will serve as an interface for communicating with WhatsApp.
📄️ Delete Instance
Delete the memory instance.
📄️ Refresh Token
Route for Instance Token Update
📄️ Toggle Activate
Toggle Activate
📄️ Fetch All Connected Instances
Retrieve all connected instances linked to a specific business.
📄️ Search Instance
Retrieve all instances connected to WhatsApp in a paginated way, using search filters.
📄️ Move WhatApp
This functionality allows companies associated with the business to manage the reallocation of WhatsApp numbers between their instances, providing flexibility and control over communication with customers.