Wppconnect Server is a ready-to-use API, just download, install, and start using, simple as that.
- Javascript ES6
- NodeJS
- Restfull
Multiple Sessions | ✔ |
Send text, image, video and docs | ✔ |
Get contacts list | ✔ |
Receive messages | ✔ |
Open/Close Session | ✔ |
Change Profile/Username | ✔ |
Create Group | ✔ |
Join Group by Invite Code | ✔ |
Webhook | ✔ |
- WPPConnect
- Axios
- Bcrypt
- Cors
- Dotenv
- Express
- Nodemon
- SocketIO
Install the dependencies and start the server.
yarn install
//or
npm install
yarn dev
yarn build
Your SECRET_KEY is inside the .env file. You must change the default value to one that only you know.
To generate an access token, you must use your SECRET_KEY.
Using the route:
/api/:session/:secretkey/generate-token
//example
/api/mysession/SECRETEXAMPLE/generate-token
{
"status": "Success",
"session": "wppconnect",
"token": "$2b$10$duQ5YYV6fojn5qFiFv.aEuY32_SnHgcmxdfxohnjG4EHJ5_Z6QWhe",
"full": "wppconnect:$2b$10$duQ5YYV6fojn5qFiFv.aEuY32_SnHgcmxdfxohnjG4EHJ5_Z6QWhe"
}
Save the value of the "full" response. Then use this value to call the routes.
#Starting Session
# /api/:session/start-session
curl --request GET \
--url http://localhost:21465/api/wppconnect:$2b$10$duQ5YYV6fojn5qFiFv.aEuY32_SnHgcmxdfxohnjG4EHJ5_Z6QWhe/start-session
#Send Message
# /api/:session/send-message
curl --request GET \
--url http://localhost:21465/api/wppconnect:$2b$10$duQ5YYV6fojn5qFiFv.aEuY32_SnHgcmxdfxohnjG4EHJ5_Z6QWhe/send-message
See the routes file
for all the routes. here.