Obtener la configuración de 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
}Integración con Chatwoot
Obtener la configuración de Chatwoot
Devuelve la configuración actual de la integración con Chatwoot para la instancia.
Funcionalidades:
- Devuelve todas las configuraciones de Chatwoot, incluidas las credenciales
- Muestra el estado de habilitación de la integración
- Útil para verificar la configuración actual antes de realizar cambios
GET
/
chatwoot
/
config
Obtener la configuración de 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
}Autorizaciones
Respuesta
Configuración obtenida correctamente
Si la integración con Chatwoot está habilitada
Ejemplo:
true
URL base de la instancia de Chatwoot
Ejemplo:
"https://app.chatwoot.com"
ID de la cuenta en Chatwoot
Ejemplo:
1
ID del inbox en Chatwoot
Ejemplo:
5
Token de acceso de la API de Chatwoot
Ejemplo:
"pXXGHHHyJPYHYgWHJHYHgJjj"
Si se deben ignorar los mensajes de grupos en la sincronización
Ejemplo:
false
Si se deben firmar los mensajes enviados a WhatsApp
Ejemplo:
true
Crear siempre una nueva conversación en lugar de reutilizar conversaciones existentes
Ejemplo:
false
