Consultar Chatwoot
curl --request GET \
--url https://cloud.datafyapi.com.br/channels/whatsapp/{id}/chatwoot \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloud.datafyapi.com.br/channels/whatsapp/{id}/chatwoot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloud.datafyapi.com.br/channels/whatsapp/{id}/chatwoot"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"url": "https://chat.seudominio.com",
"account_id": 1,
"inbox_id": 2,
"inbox_name": "Atendimento"
}Chatwoot
Consultar Chatwoot
Retorna a configuração do Chatwoot nativo do canal, ou null se não houver.
GET
/
channels
/
whatsapp
/
{id}
/
chatwoot
Consultar Chatwoot
curl --request GET \
--url https://cloud.datafyapi.com.br/channels/whatsapp/{id}/chatwoot \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloud.datafyapi.com.br/channels/whatsapp/{id}/chatwoot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloud.datafyapi.com.br/channels/whatsapp/{id}/chatwoot"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"url": "https://chat.seudominio.com",
"account_id": 1,
"inbox_id": 2,
"inbox_name": "Atendimento"
}Resposta
| Campo | Descrição |
|---|---|
url | URL do Chatwoot |
account_id | ID da conta no Chatwoot |
inbox_id | ID da caixa de entrada no Chatwoot |
inbox_name | Nome da caixa de entrada |
null. O token de acesso não é devolvido.Autorizações
Token de conta gerado no painel da Datafy, em Perfil. Formato: sk_acct_xxx. Diferente do token de canal (sk_live_).
Parâmetros de caminho
ID do canal, retornado em Listar canais e em Criar canal.
Resposta
Configuração do Chatwoot, ou null.