Skip to main content
PUT
/
chatwoot
/
config
Atualizar configuração do Chatwoot
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
}
'
{
  "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

token
string
header
required

Body

application/json
enabled
boolean
required

Habilitar/desabilitar integração com Chatwoot

Example:

true

url
string
required

URL base da instância Chatwoot (sem barra final)

Example:

"https://app.chatwoot.com"

access_token
string
required

Token de acesso da API Chatwoot (obtido em Profile Settings > Access Token)

Example:

"pXXGHHHyJPYHYgWHJHYHgJjj"

account_id
integer<int64>
required

ID da conta no Chatwoot (visível na URL da conta)

Example:

1

inbox_id
integer<int64>
required

ID da inbox no Chatwoot (obtido nas configurações da inbox)

Example:

5

ignore_groups
boolean

Ignorar mensagens de grupos do WhatsApp na sincronização

Example:

false

sign_messages
boolean

Assinar mensagens enviadas para WhatsApp com identificação do agente

Example:

true

create_new_conversation
boolean

Sempre criar nova conversa ao invés de reutilizar conversas existentes

Example:

false

Response

Configuração atualizada com sucesso

message
string

Mensagem de confirmação

Example:

"Chatwoot config updated successfully, put this URL in Chatwoot inbox webhook settings:"

chatwoot_inbox_webhook_url
string

URL do webhook para configurar na inbox do Chatwoot

Example:

"https://sua-api.com/chatwoot/webhook/inst_abc123"