Simple RESTful WhatsApp API with Laravel 8
Simple RESTful WhatsApp API with Laravel 8
An implementation of @adiwajshing/Baileys as a simple RESTful API service with multiple device support.
git clone https://github.com/saifulcoder/laravel-whatsapp-server.gitcd laravel-whatsapp-servercomposer install to install the dependencies..env.example to .env and open file at project root directoryDB_DATABASE=**your_db_name**
DB_USERNAME=**your_db_user**
DB_PASSWORD=**password**.env file at project root directoryURL_WA_SERVER=http://localhost:3000Import database db.sql
Run laravel
php artisan serve --port=80/admin/logindefault email : [email protected]
default password : 123456
Simple RESTful WhatsApp API by @ookamiiixd/baileys-api .
cd backend.npm i to install the dependencies.npm run buildYou can skip this part if you're using the prebuilt one from the release page
.env.example file and rename it into .env, then update your connection url in the DATABASE_URL fieldprisma/schema.prisma file if you're using database other than MySQLnpx prisma migrate (dev|deploy)or push the schema
npx prisma db pushDon't forget to always re-run those whenever there's a change on the prisma/schema.prisma file
.env Configurations# Listening Host
HOST="localhost"
# Listening Port
PORT="3000"
# Database Connection URL
DATABASE_URL="mysql://root:12345@localhost:3306/baileys_api"
# Reconnect Interval (in Milliseconds)
RECONNECT_INTERVAL="5000"
# Maximum Reconnect Attempts
MAX_RECONNECT_RETRIES="5"
# Maximum SSE QR Generation Attempts
SSE_MAX_QR_GENERATION="10"
# Pino Logger Level
LOG_LEVEL="warn"start scriptnpm run starthttp://localhost:3000The API documentation is available online here. You can also import the Postman Collection File (postman_collection.json) into your Postman App alternatively
This project is intended for learning purpose only, don't use it for spamming or any activities that's prohibited by WhatsApp
| Multiple Device | ✔ |
| Send text | ✔ |
| Admin Panel | ✔ |
| Multiple Users | ✔ |
| User Privilege | ✔ |
| API RESTFul | ✔ |
| Send image, video, audio and docs | ✔ |
| Send stickers | ✔ |
| Send stickers GIF | ✔ |
| Send Buttons | coming soon |
| Send Bulk Message | coming soon |
| Send Message with schedule | coming soon |
| Receive message | coming soon |
| Get Chat List | coming soon |
| Get Chat Conversation | coming soon |
| Webhook | coming soon |
contact us [email protected]
This project helps you and you want to help keep it going? Buy me a coffee:
or via
No open issues yet, or sync has not completed.