Get business profile for a chat
curl --request GET \
--url https://api.wsapi.chat/chats/{chatId}/business \
--header 'X-Api-Key: <api-key>' \
--header 'X-Instance-Id: <x-instance-id>'import requests
url = "https://api.wsapi.chat/chats/{chatId}/business"
headers = {
"X-Instance-Id": "<x-instance-id>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Instance-Id': '<x-instance-id>', 'X-Api-Key': '<api-key>'}
};
fetch('https://api.wsapi.chat/chats/{chatId}/business', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://api.wsapi.chat/chats/{chatId}/business");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Instance-Id", "<x-instance-id>");
request.AddHeader("X-Api-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"id": "<string>",
"address": "<string>",
"email": "<string>",
"description": "<string>",
"website": "<string>",
"latitude": 123,
"longitude": 123,
"memberSince": "<string>",
"categories": [
{
"id": "<string>",
"name": "<string>"
}
],
"businessHours": [
{
"dayOfWeek": "<string>",
"mode": "<string>",
"openTime": "<string>",
"closeTime": "<string>"
}
],
"businessHoursTimeZone": "<string>",
"profileOptions": {}
}{
"status": 400,
"detail": "invalid request body"
}{
"status": 401,
"detail": "unauthorized"
}{
"status": 403,
"detail": "device not paired"
}{
"status": 503,
"detail": "instance not available"
}Chats
Get business profile for a chat
GET
/
chats
/
{chatId}
/
business
Get business profile for a chat
curl --request GET \
--url https://api.wsapi.chat/chats/{chatId}/business \
--header 'X-Api-Key: <api-key>' \
--header 'X-Instance-Id: <x-instance-id>'import requests
url = "https://api.wsapi.chat/chats/{chatId}/business"
headers = {
"X-Instance-Id": "<x-instance-id>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Instance-Id': '<x-instance-id>', 'X-Api-Key': '<api-key>'}
};
fetch('https://api.wsapi.chat/chats/{chatId}/business', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://api.wsapi.chat/chats/{chatId}/business");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Instance-Id", "<x-instance-id>");
request.AddHeader("X-Api-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"id": "<string>",
"address": "<string>",
"email": "<string>",
"description": "<string>",
"website": "<string>",
"latitude": 123,
"longitude": 123,
"memberSince": "<string>",
"categories": [
{
"id": "<string>",
"name": "<string>"
}
],
"businessHours": [
{
"dayOfWeek": "<string>",
"mode": "<string>",
"openTime": "<string>",
"closeTime": "<string>"
}
],
"businessHoursTimeZone": "<string>",
"profileOptions": {}
}{
"status": 400,
"detail": "invalid request body"
}{
"status": 401,
"detail": "unauthorized"
}{
"status": 403,
"detail": "device not paired"
}{
"status": 503,
"detail": "instance not available"
}Authorizations
Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.
Headers
The ID of the WhatsApp instance to use
Path Parameters
Chat JID (user or group)
Response
Business profile
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I