Whapi is basically an API build on top of venom, a library for WhatsApp that contains methods to communicate with. The purpose of Whapi is use that methods through that API.
- Multiple instances
- Generate Base64 QR Code by request
- Send text
- Authorization with bearer token
To run this project, you will need to add the following environment variables to your .env file
PRIVATE_KEY
Clone the project
git clone https://github.com/bruno-pt/Whapi.git
Go to the project directory
cd Whapi
Install dependencies
npm install
Start the server
npm run start
POST /api/instance
Body | Type | Description |
---|---|---|
username |
string |
Required. Username for your instance. |
password |
string |
Required. Password for your instance. |
You need to have an instace created before.
POST /api/token
Body | Type | Description |
---|---|---|
username |
string |
Required. Instances's username. |
password |
string |
Required. Instances's password. |
POST /api/send-text
Parameter | Type | Description |
---|---|---|
Authorization |
Bearer |
Required. Your generated bearer token. |
Body | Type | Description |
---|---|---|
phone |
string |
Required. Destinatary. |
text |
string |
Required. Text to send. |
Main library that Whapi use