Getting started
- Create an account and confirm your mobile number with the texted code.
- Add a channel and link your phone: WhatsApp → Settings → Linked devices → Link a device. Scan the QR code, or choose “Link with phone number instead” and type the 8-character code EWire shows.
- Add a destination: Microsoft Teams, Slack, your CRM or help desk, an AI agent, a webhook address, your Twilio account for texts, or an ntfy topic.
- Create a rule. Live check shows what it would have caught before you turn it on.
Events
| Type | When |
|---|---|
| message.created | A new message is received or sent (from the phone or the API) |
| message.status | A message this number sent is delivered, read or played (voice notes). Includes target_message_id and receipt.status. Not counted toward monthly events. |
| message.edited | A message is edited |
| message.deleted | A message is deleted for everyone and WhatsApp shares it with linked devices |
| reaction.changed | A reaction is added or removed |
| group.participants_changed | Members are added, removed, promoted or demoted |
| group.joined / group.left | This number is added to or removed from a group |
| call.incoming | An incoming call (details only) |
| connection.changed | The number connects, disconnects or is logged out |
Clean payload, schema 1.0
Unknown values are null; false always means known to be false. Old messages are never replayed as new when a number reconnects.
{
"schema_version": "1.0",
"event_id": "evt_demo_001",
"type": "message.created",
"occurred_at": "2026-11-24T15:00:00Z",
"received_at": "2026-11-24T15:00:01Z",
"channel": { "id": "chn_demo_001", "name": "Dispatch" },
"chat": { "id": "120363000000@g.us", "type": "group", "name": "Installation team" },
"sender": { "id": "12025550123@s.whatsapp.net", "phone": "+12025550123", "name": "Demo technician" },
"message": {
"id": "msg_demo_001", "direction": "inbound", "sent_by_me": false, "type": "text",
"text": "Installation completed. Photos are ready.",
"mentions_me": false, "is_reply": false, "is_forwarded": false,
"quoted_id": null, "media": null, "location": null
}
}Webhooks and signing
Each webhook is an HTTPS POST (or the PUT or PATCH you choose) with a JSON body and these headers:
| X-EWire-Delivery-Id | Stable per delivery. Retries reuse it; deduplicate on it. |
| X-EWire-Timestamp | Unix seconds, fresh on every attempt. |
| X-EWire-Key-Id | Which signing secret was used (changes when you rotate). |
| X-EWire-Signature | v1= + hex HMAC-SHA256 of timestamp + "." + raw body. |
Verify against the raw bytes, compare in constant time and reject timestamps older than 5 minutes. Answer with any 2xx within 10 seconds.
Node.js
import crypto from 'node:crypto';
// Verify an EWire webhook. Use the RAW body bytes (express.raw / fastify rawBody), not re-serialized JSON.
export function ewireVerify(secrets, rawBody, headers, toleranceSec = 300) {
const ts = headers['x-ewire-timestamp'], sig = headers['x-ewire-signature'] || '';
if (!/^\d+$/.test(ts || '') || Math.abs(Date.now() / 1000 - Number(ts)) > toleranceSec) return false;
const given = sig.split(',').map(s => s.trim()).filter(s => s.startsWith('v1='));
return secrets.some(secret => {
const want = Buffer.from('v1=' + crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex'));
return given.some(g => { const b = Buffer.from(g); return b.length === want.length && crypto.timingSafeEqual(b, want); });
});
}
PHP
<?php
// Verify an EWire webhook. $secrets: current secret(s) for the rule (pass both during rotation).
function ewire_verify(array $secrets, string $rawBody, array $headers, int $tolerance = 300): bool {
$ts = $headers['X-EWire-Timestamp'] ?? '';
$sig = $headers['X-EWire-Signature'] ?? '';
if (!ctype_digit($ts) || abs(time() - (int)$ts) > $tolerance) return false;
$given = array_filter(array_map('trim', explode(',', $sig)), fn($s) => str_starts_with($s, 'v1='));
foreach ($secrets as $secret) {
$expected = 'v1=' . hash_hmac('sha256', $ts . '.' . $rawBody, $secret);
foreach ($given as $g) if (hash_equals($expected, $g)) return true;
}
return false;
}
// In WordPress / plain PHP:
// $raw = file_get_contents('php://input');
// $h = ['X-EWire-Timestamp' => $_SERVER['HTTP_X_EWIRE_TIMESTAMP'] ?? '', 'X-EWire-Signature' => $_SERVER['HTTP_X_EWIRE_SIGNATURE'] ?? ''];
// if (!ewire_verify([getenv('EWIRE_SECRET')], $raw, $h)) { http_response_code(401); exit; }
// Then deduplicate on $_SERVER['HTTP_X_EWIRE_DELIVERY_ID'] before doing work.
Test vector
Both examples are tested against this vector:
{
"secret": "whsec_test_8f2c1a",
"timestamp": "1764000000",
"body": "{\"schema_version\":\"1.0\",\"event_id\":\"evt_demo_001\",\"type\":\"message.created\"}",
"signature": "v1=552a34a3daa79917d24a87a05fd6c9e09900ecbed9919bbb31e9df77ecec9c71"
}Retries and replay
One attempt, then up to six retries 10 s, 30 s, 2 min, 10 min, 30 min and 2 h after each failure (±10%, and never sooner than a valid Retry-After). Timeouts, network errors, 408, 425, 429 and 5xx are retried. 401, 403, 404, 410 and other 4xx fail immediately with a fix link. Redirects are not followed.
Replay sends the original body again under a new delivery ID linked to the first one. If your app already acted on the first delivery, a replay can repeat that action.
Sending API
Base address https://<your EWire address>/v1. Authenticate with Authorization: Bearer <channel token>. Create the token on the channel’s API access tab; it is shown once.
| Operation | Request | Body |
|---|---|---|
| Send text | POST /messages/text | to, body, quoted?, typing_time?, mentions? |
| Send image / video / document | POST /messages/image|video|document | to, media (https URL or base64), caption?, filename? |
| Send voice note | POST /messages/voice | to, media |
| React | PUT /messages/{id}/reaction | emoji (empty removes) |
| Mark as read | PUT /messages/{id} | Recorded in the audit log |
| Media download | GET /media/{channel}/{id} | While content is retained |
| Health | GET /health |
Limits: 60 requests and 20 new messages per minute per channel. Over the limit you get 429 with Retry-After. A channel that isn’t connected returns 409, never a false success.
Microsoft Teams
Teams receives EWire events through the Workflows app (Microsoft retired Office 365 connectors in May 2026). In the channel, choose ••• → Workflows → “Send webhook alerts to a channel”, pick the team and channel, and copy the URL. In EWire, add a Microsoft Teams destination with that URL. EWire sends one Adaptive Card per event. The workflow answers 202 when it accepts the request; Teams then posts the card. Limits: 28 KB per card, about 4 requests a second.
The Reply with _teams preset fires when your linked number quotes a message and replies starting with _teams. The card carries the quoted customer message, the customer, the conversation and the time. If WhatsApp didn’t include the quoted text and EWire no longer has it, the card says so. The reply itself is a normal WhatsApp message that everyone in that chat can see. Full guide.
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.4",
"body": [
{
"type": "TextBlock",
"text": "WhatsApp message",
"size": "Small",
"weight": "Bolder",
"color": "Accent",
"wrap": true
},
{
"type": "TextBlock",
"text": "Can someone help? The front desk phones are not receiving calls.",
"wrap": true,
"size": "Medium"
},
{
"type": "FactSet",
"facts": [
{
"title": "From",
"value": "Sample customer"
},
{
"title": "Conversation",
"value": "Sample customer · Sample channel"
},
{
"title": "Time",
"value": "2026-11-24 14:41 UTC"
},
{
"title": "Sent to Teams by",
"value": "Front desk with “_teams”"
}
]
},
{
"type": "TextBlock",
"text": "EWire event evt_demo_teams",
"isSubtle": true,
"size": "Small",
"wrap": true
}
]
}
}
]
}Built-in connectors
Add these under Destinations › Add destination. Press Test connection and EWire checks your key with the app before saving; keys are encrypted and never shown again. Every connector finds the customer by phone and remembers what it created for each event, so a retry or a replay never makes a second record.
| App | You provide | What EWire does |
|---|---|---|
| Slack | An incoming webhook URL | Posts the message and context in that channel |
| Salesforce | My Domain, consumer key and secret (client credentials flow, Run As user) | Finds a contact or open lead by phone, logs a Task; creates a Lead when nobody matches |
| HubSpot | Private app token (contacts read and write) | Finds or creates the contact, logs a note, optionally a task |
| Pipedrive | API token | Finds the person, uses their open deal (or creates one), adds a note and a call activity |
| Zoho Desk | Self Client ID, secret and refresh token, org ID, data center | Finds or creates the contact, opens a ticket in your department |
| Zendesk | Subdomain, agent email, API token | Creates or updates the requester by phone, opens a ticket with an idempotency key |
| monday.com | API token, board ID, optional group | Creates an item and posts the message as an update |
| AI agent | Anthropic or OpenAI key, model, notes about your business, optionally a destination to log into | Skips chatter; sorts leads, requests and problems, logs them on the right customer in your CRM, help desk, Teams or Slack, and can draft a reply into AI drafts for a person to send |
The delivery record links straight to what was created. If the app refuses the key or a permission, the delivery fails right away with the app’s own message and a link to fix the destination.
Custom webhooks
A webhook destination can use POST, PUT or PATCH, up to 10 custom headers, and a bearer token, basic auth or an API-key header. The X-EWire-* signature headers are always added and can’t be overridden. To send your own body, choose Custom JSON template in the rule’s delivery step:
{
"phone": "{{sender.phone}}",
"name": "{{sender.name}}",
"text": "{{message.text}}",
"chat": {{json chat}}
}Keywords
In a rule, Add keywords and type each word or phrase. A message matches when it has any of them as a whole word, in any case: “down” matches “Internet is DOWN” but not “download”, and “not working” matches as a phrase. Combine keywords with other filters, such as “from a customer” or business hours.
Zapier, Make and n8n
Each one is a destination type in EWire. EWire checks the address you paste, signs every request, and retries if the platform is down.
- Zapier: trigger Webhooks by Zapier › Catch Hook. Paste the hooks.zapier.com/hooks/catch/… URL into a Zapier destination, press Send test, then Test trigger in Zapier. Fields arrive ready to map: sender__phone, message__text, chat__name.
- Make: module Webhooks › Custom webhook. Paste the hook.<region>.make.com address into a Make destination, click Re-determine data structure in Make, then press Send test.
- n8n: a Webhook node with method POST. Use the Production URL and activate the workflow; EWire refuses the Test URL because it only works while the editor is listening.
Reply from the workflow: add an HTTP step that calls POST /v1/messages/text with Authorization: Bearer <channel token>, to set to chat.id and quoted set to message.id. Create the token on the channel’s API access tab.
Use event_id as an idempotency key in your workflow: a retried delivery carries the same event, and a replay is marked in EWire’s delivery history.
Moving from Whapi
For the operations above, the method, path and main fields match Whapi’s published reference. Change the base address from https://gate.whapi.cloud to your EWire /v1 address and use the EWire channel token.
- Webhooks: choose the “Whapi compatible” format on the rule. It covers text and media messages, edits, deletions and reactions (
messages,event,channel_id). - Batching is not available with the Whapi format.
- Other Whapi endpoints (groups management, statuses, labels, channels and more) are not part of EWire.
Phone first mode
WhatsApp can hold back notifications on the phone while a linked device appears online. With phone first on (the default), EWire connects without announcing itself online, repeats “unavailable” every 4 minutes and after each API send, and never sends read receipts unless you switch that on or call mark as read.
Results also depend on the phone’s operating system, WhatsApp version, notification settings and any other linked devices. Test on your own phone during the trial. For important conversations, add a text or push alert rule as a backup.
Limits and what EWire does not do
- EWire connects as a linked device using an unofficial WhatsApp connection library. Make sure your use is allowed for your account.
- History is not imported. Messages that arrive while a number is disconnected may not be recoverable.
- A delivered webhook means your app answered with a 2xx. It doesn’t prove your app finished its own work.
- Text and push alerts show “accepted by provider”, not proof the phone displayed them.