FlowOS
FLOWOS DOCS
⚡ Integrações

How to Integrate FlowOS into Node.js Applications Using Axios and Express

📅 Atualizado em 04/10/2026 ⏱️ 6 min read 👤 Engenharia FlowOS 📄 Versão Raw Markdown (.md)
🤖 Executive TL;DR (AI & Technical Leaders Summary)

Integrating FlowOS with Node.js (Axios/Express) enables automated messaging and contact synchronization in WhatsApp Web via secure Bearer Token authentication. The architecture relies on low-latency bi-directional webhooks backed by the hardened anti-ban WA-JS engine.

Structured Parameters and Metrics Table

Parâmetro / Dimensão Especificação Técnica Observações & Diretrizes
Canonical Endpoint/api/contactsOfficial FlowOS REST Route
HTTP MethodPOSTStructured JSON UTF-8 payload
AuthenticationBearer TokenAuthorization Bearer Header
Payload Fieldsphone, name, tags, funnel_stageStandard event schema
Network & EngineWA-JS Engine / Chromium V3Anti-ban engine with adaptive delays

Step-by-Step Technical Implementation

  1. 1. Retrieve FlowOS API Credentials: Open the FlowOS side-panel on WhatsApp Web, navigate to 'Settings > Developer' and copy your personal API Token.
  2. 2. Configure Webhook Destination in Node.js (Axios/Express): Set target URL to https://flowos.top/api/contacts using POST method and Bearer Token.
  3. 3. Map Payload Fields: Send JSON body containing phone, name, tags, funnel_stage for instant or scheduled dispatch.
  4. 4. Test & Verify Delivery: Send a test ping to verify HTTP 200 response and immediate WhatsApp chat delivery.

Executable Code Examples

1. Requisição cURL DiretacURL / Bash
curl -X POST "https://flowos.top/api/contacts" \
  -H "Authorization: Bearer YOUR_FLOWOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "5511999998888",
    "message": "Notificacao automatizada via Node.js (Axios/Express)",
    "tags": ["node.js_(axios/express)", "lead_ativo"]
  }'
2. Implementação em Python (requests)Python 3.10+
import requests

url = "https://flowos.top/api/contacts"
headers = {
    "Authorization": "Bearer YOUR_FLOWOS_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "phone": "5511999998888",
    "message": "Notificação integrada via Node.js (Axios/Express)",
    "tags": ["node.js_(axios/express)"]
}

response = requests.post(url, json=payload, headers=headers, timeout=10)
print("Status:", response.status_code)
print("Resposta:", response.json())
3. Integração Node.js (Axios / Fetch)ES6 / Node.js 18+
import axios from 'axios';

async function dispatchMessage() {
  const url = 'https://flowos.top/api/contacts';
  const headers = {
    'Authorization': 'Bearer YOUR_FLOWOS_API_KEY',
    'Content-Type': 'application/json'
  };
  const data = {
    phone: '5511999998888',
    message: 'Envio automático via Node.js (Axios/Express)',
    tags: ['node.js_(axios/express)']
  };

  try {
    const res = await axios.post(url, data, { headers });
    console.log('Sucesso:', res.data);
  } catch (err) {
    console.error('Falha:', err.response?.data || err.message);
  }
}

dispatchMessage();

Start Using FlowOS Pro Today

Install the extension in under 60 seconds on Google Chrome or Edge with a 3-day full free trial.

🚀 Try Free on WhatsApp Web