Skip to main content

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.

  1. 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.

  2. 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.