n8n community node to integrate with Z-API (WhatsApp messaging).
npm install @z-api/n8n-nodes-zapiCommunity node for n8n that integrates with Z-API (WhatsApp messaging).
This package adds Z-API nodes to n8n, enabling WhatsApp messaging automation and related features.
---
To be installable in n8n Cloud, this package must be approved as a Verified Community Node.
Non-verified community nodes can only be installed in self-hosted n8n.
---
With this node you can:
- Send WhatsApp messages (text, media, lists/buttons, location, PIX button)
- Manage chats (pin, archive, delete, list)
- Manage contacts (metadata, profile picture, list, phone existence check)
- Manage groups (members/admins, settings, metadata, invite links)
- Manage instance utilities (disconnect, QR code, device data, phone code)
- Manage message queue (list and delete)
- Manage products linked to a phone (upsert, delete, get, list)
- Post status updates (text/image)
- Make direct API calls (advanced)
---
- n8n (self-hosted) or n8n Cloud (Verified required to install)
- A Z-API account with an active instance
- Z-API credentials:
- Instance ID
- Instance Token
- Client Token (Account Security Token)
---
---
This package provides the credential type:
Z-API API (zapiApi)
#### Instance ID
Your Z-API instance identifier.
#### Instance Token
Token for the selected instance.
#### Client Token
Z-API Account Security Token. This is sent as an HTTP header:
- Client-Token:
- GET https://api.z-api.io/instances/{instanceId}/token/{instanceToken}/status
(plus the Client-Token header)
---
Below is the full list of operations in this package (grouped by resource).
---
55119999999990, API default behavior is used (depending on operation)120363019502650977-group). - URL: https://...
- Data URI: data:
- Raw Base64 (no prefix): the node may normalize it into a Data URI automatically
Examples:
- URL: https://example.com/image.png
- Data URI: data:image/png;base64,iVBORw0K...
- Raw Base64: iVBORw0KGgoAAAANSUhEUg...
For documents, providing a filename with extension (example: invoice.pdf) is recommended.
---
- Phone Number: 5511999999999
- Message: Hello from n8n!
- Delay (seconds): 2
- Phone Number: 5511999999999
- Image (URL or Base64):
- https://example.com/image.png
- or data:image/png;base64,iVBORw0K...
- Phone Number: 5511999999999
- Document: https://example.com/invoice.pdf (or Base64/Data URI)
- File Name: invoice.pdf (recommended)
- Caption: Invoice attached
- Phone Number: 5511999999999 (or group ID)
- Message ID:
- Message: Got it!
- Group Name: My Group
- Participants: add at least one phone
- Auto invite: enable if you want to invite participants who cannot be added directly
Use this to display a scannable QR when connecting an instance.
---
any:unknown and type guards(value as any) whenever possiblenpm run build---
``bash`
npm install
npm run dev
npm run lint
npm run build
To be installable in n8n Cloud, this package must be approved as a Verified Community Node. In practice, that means it must:
- Follow the package naming convention: n8n-nodes- or @scope/n8n-nodes-n8n-community-node-package
- Include the keyword: n8n
- Define the section in package.json`, listing the built node and credential entrypoints
- Avoid unsafe runtime behavior (for example: filesystem access, environment secrets, etc.)
- Pass the community package scanner before submission
MIT