The Add Chat ID API enables you to add specific chats to business labels. It verifies if the cloud session is active, retrieves available business labels, and associates the specified chats with a given label.
Do not use this API for spam or bulk messaging. Misuse may result in account bans.
Endpoint
POST https://api.eazybe.com/v2/cloud/business-label
Authentication
You need to obtain the Organization Auth Token from your EazyBe Workspace.
Navigate to Organization Page
An admin needs to access the Organization page.
Copy Auth Token
The Organization Auth Token will be displayed on this page. Copy it for API use.
Header Value Description Content-Typeapplication/json; charset=UTF-8Specifies JSON format AuthorizationBearer {token}Organization Auth Token
Request Payload
The API requires the following fields:
Field Type Description labelNamestring Name of the business label to add chats to contactsarray List of contact phone numbers (international format)
Example Payload
{
"labelName" : "Priority Clients" ,
"contacts" : [
"911234567891" ,
"911234567892" ,
"911234567893"
]
}
Code Example (Node.js)
const axios = require ( 'axios' );
const config = {
method: 'post' ,
url: 'https://api.eazybe.com/v2/cloud/business-label' ,
headers: {
'Authorization' : 'Bearer YOUR_ORGANIZATION_AUTH_TOKEN' ,
'Content-Type' : 'application/json; charset=UTF-8'
},
data: {
labelName: 'Priority Clients' ,
contacts: [
'911234567891' ,
'911234567892' ,
'911234567893'
]
}
};
axios ( config )
. then ( response => console . log ( response . data ))
. catch ( error => console . error ( error ));
Response
Success Response (200 OK)
{
"status" : true ,
"data" : {
"message" : "Contacts added successfully."
}
}
Best Practices
Active Cloud Session Ensure your cloud session is active before making API calls
Valid Label Name Use an existing business label name from your workspace
International Format Use international phone number format (e.g., 911234567891)
Valid Token Maintain a valid Organization Auth Token
If you have any questions or need further assistance, feel free to reach out to us at [email protected] . We’re happy to help!