n8n-nodes-whatsapp-retentionstack 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,17 @@
3
3
  n8n community nodes for the [WhatsApp Messaging API by Retention Stack](https://whatsapp-messaging.retentionstack.agency).
4
4
  Send WhatsApp text, images, files, videos, locations and OTPs from any workflow, and trigger workflows on incoming messages.
5
5
 
6
- No Meta approval queue. No WhatsApp Business account. 5 minutes from subscribe to first message.
6
+ No Meta approval queue. No WhatsApp Business account. 5 minutes from sign-in to first message.
7
+
8
+ ## Credentials
9
+
10
+ 1. Sign in at [whatsapp-messaging.retentionstack.agency/start](https://whatsapp-messaging.retentionstack.agency/start) and link your number.
11
+ 2. Copy a key from the console:
12
+ - Session token (`ch_live_...`): one number. Leave every node's Session field as `default`.
13
+ - Account key (`ak_live_...`): every number on your account. Enter the session name in each node's Session field.
14
+ 3. In n8n, create a WhatsApp by Retention Stack API credential and paste the key.
15
+
16
+ Upgrading from 0.1.x: earlier versions used a RapidAPI key. Replace it with a session token or account key from the console; RapidAPI keys no longer work with this node.
7
17
 
8
18
  ## Nodes
9
19
 
@@ -1,6 +1,5 @@
1
1
  import type { Icon, IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
- export declare const BASE_URL = "https://whatsapp-messaging-bot.p.rapidapi.com";
3
- export declare const RAPIDAPI_HOST = "whatsapp-messaging-bot.p.rapidapi.com";
2
+ export declare const BASE_URL = "https://wp-rapidapi.retentionstack.agency";
4
3
  export declare class WhatsAppRetentionStackApi implements ICredentialType {
5
4
  name: string;
6
5
  displayName: string;
@@ -1,30 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WhatsAppRetentionStackApi = exports.RAPIDAPI_HOST = exports.BASE_URL = void 0;
4
- exports.BASE_URL = 'https://whatsapp-messaging-bot.p.rapidapi.com';
5
- exports.RAPIDAPI_HOST = 'whatsapp-messaging-bot.p.rapidapi.com';
3
+ exports.WhatsAppRetentionStackApi = exports.BASE_URL = void 0;
4
+ exports.BASE_URL = 'https://wp-rapidapi.retentionstack.agency';
6
5
  class WhatsAppRetentionStackApi {
7
6
  constructor() {
8
7
  this.name = 'whatsAppRetentionStackApi';
9
8
  this.displayName = 'WhatsApp by Retention Stack API';
10
9
  this.icon = { light: 'file:whatsapp.svg', dark: 'file:whatsapp.dark.svg' };
11
- this.documentationUrl = 'https://whatsapp-messaging.retentionstack.agency/docs';
10
+ this.documentationUrl = 'https://whatsapp-messaging.retentionstack.agency/docs/guides/authentication';
12
11
  this.properties = [
13
12
  {
14
- displayName: 'RapidAPI Key',
13
+ displayName: 'API Key',
15
14
  name: 'apiKey',
16
15
  type: 'string',
17
16
  typeOptions: { password: true },
18
17
  default: '',
19
- description: 'Your X-RapidAPI-Key. Subscribe (free plan, no credit card) at rapidapi.com/jevil257/api/whatsapp-messaging-bot.',
18
+ description: 'A session token (ch_live_...) for one number, or an account key (ak_live_...) for every number. Get both at whatsapp-messaging.retentionstack.agency/app.',
20
19
  },
21
20
  ];
22
21
  this.authenticate = {
23
22
  type: 'generic',
24
23
  properties: {
25
24
  headers: {
26
- 'x-rapidapi-key': '={{$credentials.apiKey}}',
27
- 'x-rapidapi-host': exports.RAPIDAPI_HOST,
25
+ Authorization: '=Bearer {{$credentials.apiKey}}',
28
26
  },
29
27
  },
30
28
  };
@@ -49,7 +49,7 @@ const str = (displayName, name, resource, ops, extra = {}) => ({
49
49
  ...show(resource, ops),
50
50
  ...extra,
51
51
  });
52
- const session = (resource, ops, routing = {}) => str('Session', 'session', resource, ops, { default: 'default', required: true, description: 'Name of the connected WhatsApp session (the number you paired)', ...routing });
52
+ const session = (resource, ops, routing = {}) => str('Session', 'session', resource, ops, { default: 'default', required: true, description: 'Leave as default with a session token. With an account key, enter the session name.', ...routing });
53
53
  const chatId = (resource, ops, routing = body('chatId')) => str('Chat ID', 'chatId', resource, ops, { required: true, placeholder: '1234567890', description: 'Phone number with country code (no +), or a group/channel ID', ...routing });
54
54
  const groupId = (ops) => str('Group ID', 'groupId', 'group', ops, { required: true, placeholder: '120363012345678901@g.us' });
55
55
  const extra = (resource, ops, options) => ({
@@ -36,7 +36,7 @@ class WhatsAppRetentionStackTrigger {
36
36
  type: 'string',
37
37
  default: 'default',
38
38
  required: true,
39
- description: 'Name of the connected WhatsApp session to listen on',
39
+ description: 'Session to listen on. Leave as default with a session token; with an account key, enter the session name.',
40
40
  },
41
41
  {
42
42
  displayName: 'Events',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-whatsapp-retentionstack",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "n8n nodes for the WhatsApp Messaging API by Retention Stack. Send WhatsApp text, images, files and OTPs, and trigger workflows on incoming messages. No Meta approval needed.",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -8,8 +8,7 @@
8
8
  "whatsapp",
9
9
  "whatsapp-api",
10
10
  "messaging",
11
- "otp",
12
- "rapidapi"
11
+ "otp"
13
12
  ],
14
13
  "license": "MIT",
15
14
  "homepage": "https://whatsapp-messaging.retentionstack.agency",