Obter configuração do Chatwoot
curl --request GET \
--url https://api.wppfy.com/chatwoot/config \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/chatwoot/config"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
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 => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/chatwoot/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wppfy.com/chatwoot/config")
.header("token", "<api-key>")
.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::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"chatwoot_enabled": true,
"chatwoot_url": "https://app.chatwoot.com",
"chatwoot_account_id": 1,
"chatwoot_inbox_id": 5,
"chatwoot_access_token": "pXXGHHHyJPYHYgWHJHYHgJjj",
"chatwoot_ignore_groups": false,
"chatwoot_sign_messages": true,
"chatwoot_create_new_conversation": false
}Integração Chatwoot
Obter configuração do Chatwoot
Retorna a configuração atual da integração com Chatwoot para a instância.
Funcionalidades:
- Retorna todas as configurações do Chatwoot incluindo credenciais
- Mostra status de habilitação da integração
- Útil para verificar configurações atuais antes de fazer alterações
GET
/
chatwoot
/
config
Obter configuração do Chatwoot
curl --request GET \
--url https://api.wppfy.com/chatwoot/config \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/chatwoot/config"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
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 => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/chatwoot/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wppfy.com/chatwoot/config")
.header("token", "<api-key>")
.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::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"chatwoot_enabled": true,
"chatwoot_url": "https://app.chatwoot.com",
"chatwoot_account_id": 1,
"chatwoot_inbox_id": 5,
"chatwoot_access_token": "pXXGHHHyJPYHYgWHJHYHgJjj",
"chatwoot_ignore_groups": false,
"chatwoot_sign_messages": true,
"chatwoot_create_new_conversation": false
}Autorizações
Resposta
Configuração obtida com sucesso
Se a integração com Chatwoot está habilitada
Exemplo:
true
URL base da instância Chatwoot
Exemplo:
"https://app.chatwoot.com"
ID da conta no Chatwoot
Exemplo:
1
ID da inbox no Chatwoot
Exemplo:
5
Token de acesso da API Chatwoot
Exemplo:
"pXXGHHHyJPYHYgWHJHYHgJjj"
Se deve ignorar mensagens de grupos na sincronização
Exemplo:
false
Se deve assinar mensagens enviadas para o WhatsApp
Exemplo:
true
Sempre criar nova conversa ao invés de reutilizar conversas existentes
Exemplo:
false
