Acesse contatos, conversas e mensagens do seu escritório via API REST. Integre com n8n, Make, Zapier ou qualquer sistema.
Automatize processos, integre com seu stack e escale o atendimento do escritório
Crie, atualize, busque e exclua contatos. Filtre por tags, status e busque por nome ou telefone com paginação por cursor.
Liste e crie conversas do WhatsApp. Filtre por contato, instância ou status de arquivamento. Cada conversa vincula contato e número.
Envie texto, mídia e templates aprovados pela Meta. Envio assíncrono via fila com status automático (pending → sent → delivered → read).
Consulte os números de WhatsApp conectados ao escritório, status de conexão e provedor da integração (Meta, WAHA).
Crie e revogue chaves com escopos granulares (contacts:read, messages:send, etc). Cada chave tem uso rastreado e permissões independentes.
Limites diferenciados: 100 req/min para leitura, 20/min para envio de mensagens, 500 envios/dia. Headers com status em tempo real.
Copie o JSON, importe no n8n e adapte ao seu escritório. Todos usam a API privada do Chat Jurídico.
Recebe webhook de novo contato e cria registro no CRM com dados enriquecidos
{
"name": "CJ → Novo Lead para CRM",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "cj-novo-lead",
"responseMode": "onReceived",
"responseData": "allEntries"
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"url": "https://api.jur.chat/v1/contacts/=",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "X-API-Key", "value": "cj_live_SUA_CHAVE_AQUI" }
]
}
},
"name": "Buscar Contato CJ",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [470, 300]
},
{
"parameters": {
"values": {
"string": [
{ "name": "nome", "value": "=" },
{ "name": "telefone", "value": "=" },
{ "name": "email", "value": "=" },
{ "name": "origem", "value": "Chat Jurídico - WhatsApp" },
{ "name": "status", "value": "novo_lead" }
]
}
},
"name": "Mapear Campos",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [690, 300]
},
{
"parameters": {
"url": "https://SEU-CRM.com/api/leads",
"method": "POST",
"sendBody": true,
"bodyParameters": {
"parameters": [
{ "name": "name", "value": "=" },
{ "name": "phone", "value": "=" },
{ "name": "email", "value": "=" },
{ "name": "source", "value": "=" }
]
}
},
"name": "Criar Lead no CRM",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [910, 300]
}
],
"connections": {
"Webhook": { "main": [[{ "node": "Buscar Contato CJ", "type": "main", "index": 0 }]] },
"Buscar Contato CJ": { "main": [[{ "node": "Mapear Campos", "type": "main", "index": 0 }]] },
"Mapear Campos": { "main": [[{ "node": "Criar Lead no CRM", "type": "main", "index": 0 }]] }
}
}
Notifica o time no Slack quando uma nova mensagem chegar no WhatsApp
{
"name": "CJ → Nova Mensagem no Slack",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "cj-mensagem-recebida",
"responseMode": "onReceived"
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"conditions": {
"string": [
{ "value1": "=", "value2": "message.received" }
]
}
},
"name": "Filtrar Evento",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [470, 300]
},
{
"parameters": {
"channel": "#atendimento-juridico",
"text": "📩 *Nova mensagem no WhatsApp*\n\n👤 *Contato:* \n📱 *Telefone:* \n💬 *Mensagem:* \n\n🔗 "
},
"name": "Enviar no Slack",
"type": "n8n-nodes-base.slack",
"typeVersion": 1,
"position": [690, 280]
}
],
"connections": {
"Webhook": { "main": [[{ "node": "Filtrar Evento", "type": "main", "index": 0 }]] },
"Filtrar Evento": { "main": [[{ "node": "Enviar no Slack", "type": "main", "index": 0 }]] }
}
}
Envia mensagem de follow-up automático para leads que não responderam em 24h
{
"name": "CJ → Follow-up 24h",
"nodes": [
{
"parameters": {
"rule": {
"interval": [{ "triggerAtHour": 9 }]
}
},
"name": "Cron (9h diário)",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"url": "https://api.jur.chat/v1/conversations?status=pending&last_message_before=24h",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "X-API-Key", "value": "cj_live_SUA_CHAVE_AQUI" }
]
}
},
"name": "Buscar Conversas Pendentes",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [470, 300]
},
{
"parameters": {
"batchSize": 1,
"options": {}
},
"name": "Loop por Conversa",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 1,
"position": [690, 300]
},
{
"parameters": {
"url": "https://api.jur.chat/v1/conversations/=/messages",
"method": "POST",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "X-API-Key", "value": "cj_live_SUA_CHAVE_AQUI" }
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{ "name": "conversation_id", "value": "=" },
{ "name": "text", "value": "Olá! Vi que iniciamos uma conversa ontem. Posso ajudar com mais alguma informação sobre nossos serviços jurídicos? Estamos à disposição. 😊" }
]
}
},
"name": "Enviar Follow-up",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [910, 300]
}
],
"connections": {
"Cron (9h diário)": { "main": [[{ "node": "Buscar Conversas Pendentes", "type": "main", "index": 0 }]] },
"Buscar Conversas Pendentes": { "main": [[{ "node": "Loop por Conversa", "type": "main", "index": 0 }]] },
"Loop por Conversa": { "main": [[{ "node": "Enviar Follow-up", "type": "main", "index": 0 }]] }
}
}
Sincroniza novos contatos do Chat Jurídico para uma planilha no Google Sheets automaticamente
{
"name": "CJ → Contatos no Google Sheets",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "cj-novo-contato",
"responseMode": "onReceived"
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"url": "https://api.jur.chat/v1/contacts/=",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "X-API-Key", "value": "cj_live_SUA_CHAVE_AQUI" }
]
}
},
"name": "Buscar Contato",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [470, 300]
},
{
"parameters": {
"operation": "append",
"sheetId": "SEU_SHEET_ID",
"range": "Contatos!A:F",
"columns": "Nome,Telefone,Email,Data,Origem,Status",
"options": {
"valueInputMode": "USER_ENTERED"
}
},
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 2,
"position": [690, 300]
}
],
"connections": {
"Webhook": { "main": [[{ "node": "Buscar Contato", "type": "main", "index": 0 }]] },
"Buscar Contato": { "main": [[{ "node": "Google Sheets", "type": "main", "index": 0 }]] }
}
}
Usa GPT para classificar a intenção do lead e atualizar o estágio no funil automaticamente
{
"name": "CJ → Classificar Lead com IA",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "cj-classificar-lead",
"responseMode": "onReceived"
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"url": "https://api.jur.chat/v1/conversations/=/messages?limit=10",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "X-API-Key", "value": "cj_live_SUA_CHAVE_AQUI" }
]
}
},
"name": "Buscar Últimas Mensagens",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [470, 300]
},
{
"parameters": {
"model": "gpt-4o-mini",
"messages": {
"values": [
{
"role": "system",
"content": "Você é um classificador de leads jurídicos. Analise a conversa e classifique em: QUENTE (quer contratar), MORNO (interessado mas com dúvidas), FRIO (apenas consultando). Responda APENAS com a classificação."
},
{
"role": "user",
"content": "Conversa: "
}
]
}
},
"name": "Classificar com GPT",
"type": "n8n-nodes-base.openAi",
"typeVersion": 1,
"position": [690, 300]
},
{
"parameters": {
"url": "https://api.jur.chat/v1/contacts/=",
"method": "PATCH",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "X-API-Key", "value": "cj_live_SUA_CHAVE_AQUI" }
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{ "name": "lead_score", "value": "=" }
]
}
},
"name": "Atualizar Lead Score",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [910, 300]
}
],
"connections": {
"Webhook": { "main": [[{ "node": "Buscar Últimas Mensagens", "type": "main", "index": 0 }]] },
"Buscar Últimas Mensagens": { "main": [[{ "node": "Classificar com GPT", "type": "main", "index": 0 }]] },
"Classificar com GPT": { "main": [[{ "node": "Atualizar Lead Score", "type": "main", "index": 0 }]] }
}
}
Quando lead muda para "quente" no CRM, gera e envia contrato para assinatura digital
{
"name": "CJ → Lead Quente → Contrato ZapSign",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "cj-lead-quente",
"responseMode": "onReceived"
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"conditions": {
"string": [
{ "value1": "=", "value2": "QUENTE" }
]
}
},
"name": "É Lead Quente?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [470, 300]
},
{
"parameters": {
"url": "https://api.zapsign.com.br/api/v1/docs/",
"method": "POST",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "Authorization", "value": "Bearer SUA_ZAPSIGN_KEY" }
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{ "name": "name", "value": "Contrato - " },
{ "name": "template_id", "value": "SEU_TEMPLATE_ID" },
{ "name": "signer_name", "value": "=" },
{ "name": "signer_phone", "value": "=" }
]
}
},
"name": "Criar Contrato ZapSign",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [690, 280]
},
{
"parameters": {
"url": "https://api.jur.chat/v1/conversations/=/messages",
"method": "POST",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{ "name": "X-API-Key", "value": "cj_live_SUA_CHAVE_AQUI" }
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{ "name": "conversation_id", "value": "=" },
{ "name": "text", "value": "Olá! Preparamos o contrato para você. Assine digitalmente pelo link: " }
]
}
},
"name": "Enviar Link no WhatsApp",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [910, 280]
}
],
"connections": {
"Webhook": { "main": [[{ "node": "É Lead Quente?", "type": "main", "index": 0 }]] },
"É Lead Quente?": { "main": [[{ "node": "Criar Contrato ZapSign", "type": "main", "index": 0 }]] },
"Criar Contrato ZapSign": { "main": [[{ "node": "Enviar Link no WhatsApp", "type": "main", "index": 0 }]] }
}
}
A API privada é um recurso premium disponível apenas para assinantes do plano IA Exclusive. Ideal para escritórios que precisam de integrações customizadas e automações avançadas.
Acesse a documentação completa da API ou fale com nosso time para ativar o plano IA Exclusive.