Update Chatwoot configuration
curl --request PUT \
--url https://api.wppfy.com/chatwoot/config \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"enabled": true,
"url": "https://app.chatwoot.com",
"access_token": "pXXGHHHyJPYHYgWHJHYHgJjj",
"account_id": 1,
"inbox_id": 5,
"ignore_groups": false,
"sign_messages": true,
"create_new_conversation": false
}
'import requests
url = "https://api.wppfy.com/chatwoot/config"
payload = {
"enabled": True,
"url": "https://app.chatwoot.com",
"access_token": "pXXGHHHyJPYHYgWHJHYHgJjj",
"account_id": 1,
"inbox_id": 5,
"ignore_groups": False,
"sign_messages": True,
"create_new_conversation": False
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
url: 'https://app.chatwoot.com',
access_token: 'pXXGHHHyJPYHYgWHJHYHgJjj',
account_id: 1,
inbox_id: 5,
ignore_groups: false,
sign_messages: true,
create_new_conversation: false
})
};
fetch('https://api.wppfy.com/chatwoot/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wppfy.com/chatwoot/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'url' => 'https://app.chatwoot.com',
'access_token' => 'pXXGHHHyJPYHYgWHJHYHgJjj',
'account_id' => 1,
'inbox_id' => 5,
'ignore_groups' => false,
'sign_messages' => true,
'create_new_conversation' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/chatwoot/config"
payload := strings.NewReader("{\n \"enabled\": true,\n \"url\": \"https://app.chatwoot.com\",\n \"access_token\": \"pXXGHHHyJPYHYgWHJHYHgJjj\",\n \"account_id\": 1,\n \"inbox_id\": 5,\n \"ignore_groups\": false,\n \"sign_messages\": true,\n \"create_new_conversation\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.wppfy.com/chatwoot/config")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"url\": \"https://app.chatwoot.com\",\n \"access_token\": \"pXXGHHHyJPYHYgWHJHYHgJjj\",\n \"account_id\": 1,\n \"inbox_id\": 5,\n \"ignore_groups\": false,\n \"sign_messages\": true,\n \"create_new_conversation\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/chatwoot/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"url\": \"https://app.chatwoot.com\",\n \"access_token\": \"pXXGHHHyJPYHYgWHJHYHgJjj\",\n \"account_id\": 1,\n \"inbox_id\": 5,\n \"ignore_groups\": false,\n \"sign_messages\": true,\n \"create_new_conversation\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "Chatwoot config updated successfully, put this URL in Chatwoot inbox webhook settings:",
"chatwoot_inbox_webhook_url": "https://sua-api.com/chatwoot/webhook/inst_abc123"
}Chatwoot Integration
Update Chatwoot configuration
Updates the Chatwoot integration configuration for the instance.
Features:
- Configures all Chatwoot integration parameters
- Automatically reinitializes the Chatwoot client when enabled
- Returns the webhook URL to configure in Chatwoot
- Bidirectional sync of new messages between WhatsApp and Chatwoot
- Automatic contact sync (name and phone)
- Automatic LID → PN update (Local ID to Phone Number)
- Smart name system with tilde (~)
Configuration in Chatwoot:
- After configuring via API, use the returned URL in the inbox webhook settings in Chatwoot
- Configure it as the webhook URL in your Chatwoot inbox
- The integration will become active and will sync messages and contacts automatically
🏷️ Smart Name System:
- Names with tilde (~): Are updated automatically when the contact changes their name in WhatsApp
- Specific names: To set a fixed name, remove the tilde (~) from the name in Chatwoot
- Example: “~John Doe” will be updated automatically, “John Doe” (without tilde) will remain fixed
- LID→PN Update: Contacts automatically migrate from Local ID to Phone Number when available
- No duplication: During the LID→PN migration, conversations will not be duplicated
- Native replies: All agent replies appear natively in Chatwoot
🚧 IMPORTANT WARNING - BETA INTEGRATION:
- Beta Phase: This integration is in development and testing phase
- Use at your own risk: The user assumes full responsibility for its use
- Recommendation: Test in a non-production environment before using in production
- Limited support: Features may change without prior notice
⚠️ Known Limitations:
- History sync: Not implemented - only new messages are synced
PUT
/
chatwoot
/
config
Update Chatwoot configuration
curl --request PUT \
--url https://api.wppfy.com/chatwoot/config \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"enabled": true,
"url": "https://app.chatwoot.com",
"access_token": "pXXGHHHyJPYHYgWHJHYHgJjj",
"account_id": 1,
"inbox_id": 5,
"ignore_groups": false,
"sign_messages": true,
"create_new_conversation": false
}
'import requests
url = "https://api.wppfy.com/chatwoot/config"
payload = {
"enabled": True,
"url": "https://app.chatwoot.com",
"access_token": "pXXGHHHyJPYHYgWHJHYHgJjj",
"account_id": 1,
"inbox_id": 5,
"ignore_groups": False,
"sign_messages": True,
"create_new_conversation": False
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
url: 'https://app.chatwoot.com',
access_token: 'pXXGHHHyJPYHYgWHJHYHgJjj',
account_id: 1,
inbox_id: 5,
ignore_groups: false,
sign_messages: true,
create_new_conversation: false
})
};
fetch('https://api.wppfy.com/chatwoot/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wppfy.com/chatwoot/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'url' => 'https://app.chatwoot.com',
'access_token' => 'pXXGHHHyJPYHYgWHJHYHgJjj',
'account_id' => 1,
'inbox_id' => 5,
'ignore_groups' => false,
'sign_messages' => true,
'create_new_conversation' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/chatwoot/config"
payload := strings.NewReader("{\n \"enabled\": true,\n \"url\": \"https://app.chatwoot.com\",\n \"access_token\": \"pXXGHHHyJPYHYgWHJHYHgJjj\",\n \"account_id\": 1,\n \"inbox_id\": 5,\n \"ignore_groups\": false,\n \"sign_messages\": true,\n \"create_new_conversation\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.wppfy.com/chatwoot/config")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"url\": \"https://app.chatwoot.com\",\n \"access_token\": \"pXXGHHHyJPYHYgWHJHYHgJjj\",\n \"account_id\": 1,\n \"inbox_id\": 5,\n \"ignore_groups\": false,\n \"sign_messages\": true,\n \"create_new_conversation\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/chatwoot/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"url\": \"https://app.chatwoot.com\",\n \"access_token\": \"pXXGHHHyJPYHYgWHJHYHgJjj\",\n \"account_id\": 1,\n \"inbox_id\": 5,\n \"ignore_groups\": false,\n \"sign_messages\": true,\n \"create_new_conversation\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "Chatwoot config updated successfully, put this URL in Chatwoot inbox webhook settings:",
"chatwoot_inbox_webhook_url": "https://sua-api.com/chatwoot/webhook/inst_abc123"
}Authorizations
Body
application/json
Enable/disable Chatwoot integration
Example:
true
Base URL of the Chatwoot instance (without trailing slash)
Example:
"https://app.chatwoot.com"
Chatwoot API access token (obtained in Profile Settings > Access Token)
Example:
"pXXGHHHyJPYHYgWHJHYHgJjj"
Chatwoot account ID (visible in the account URL)
Example:
1
Chatwoot inbox ID (found in the inbox settings)
Example:
5
Ignore WhatsApp group messages during sync
Example:
false
Sign messages sent to WhatsApp with agent identification
Example:
true
Always create a new conversation instead of reusing existing conversations
Example:
false
Response
Configuration updated successfully
