QuePasa is an open-source, free license software to exchange messages with WhatsApp Platform
Chat with us on Telegram:
Group
||
Channel
Special thanks to Lukas Prais, who developed this logo.
A micro web-application to make web-based WhatsApp bots easy to write.
Current Version: 3.25.1115.2145
The fastest way to get QuePasa running:
# Clone the repository
git clone https://github.com/nocodeleaks/quepasa.git
cd quepasa/docker
# Configure environment
cp .env.example .env
# Edit .env with your settings
# Start with Docker Compose
docker-compose up -d --buildπ Complete Docker Setup Guide
- Features
- Installation
- Integration Examples
- API Documentation
- Configuration
- Community & Support
- Contributing
QuePasa provides a simple HTTP API to integrate WhatsApp messaging into your applications:
- π± QR Code Authentication - Easy WhatsApp Web connection setup
- πΎ Persistent Sessions - Account data and keys stored securely
- π HTTP API Endpoints for:
- Sending messages (text, media, documents)
- Receiving messages via webhooks
- Downloading attachments
- Managing contacts and groups
- Group administration
- π Webhook Support - Real-time message notifications
- π Message History Sync - Configurable history retrieval
- π― Advanced Features:
- Read receipts
- Message reactions
- Broadcast messages
- Call handling
- Presence management
The easiest way to deploy QuePasa is using Docker with our pre-configured setup:
-
Quick Setup
git clone https://github.com/nocodeleaks/quepasa.git cd quepasa/docker cp .env.example .env # Edit .env with your configurations docker-compose up -d --build
-
Access QuePasa
- Web Interface:
http://localhost:31000
- Web Interface:
π Detailed Docker Setup Guide - Complete installation instructions, configuration options, and troubleshooting.
For development or custom installations:
- Go 1.20+ - Download here
- PostgreSQL - Database for persistent storage
- Git - For cloning the repository
# Clone repository
git clone https://github.com/nocodeleaks/quepasa.git
cd quepasa/src
# Install dependencies
go mod download
# Build application
go build -o quepasa main.go
# Run
./quepasaQuePasa uses Swagger/OpenAPI for API documentation:
# Install swag CLI tool (one-time setup)
go install github.com/swaggo/swag/cmd/swag@latest
# Generate/update API documentation
cd src
swag init --output ./swagger
# Or use the provided script
# Windows: double-click generate-swagger.bat
# Or run: .\generate-swagger.bat
# Or use VS Code task: Ctrl+Shift+P β "Tasks: Run Task" β "Generate Swagger Docs"The documentation will be available at http://localhost:PORT/swagger (with or without trailing slash) when the application is running.
Pre-built N8N workflows for common automation scenarios:
-
π N8N + Chatwoot Integration
- Customer service automation
- Ticket management integration
- Contact synchronization
-
π€ TypeBot Integration
- Chatbot workflows
- Interactive conversations
- AI-powered responses
Complete setup for customer service integration:
- π Chatwoot Configuration
- Help desk setup
- Nginx configuration
- Multi-agent support
# Connect and get QR code
# token could be empty, if empty a new token will be generated
# user is the user that will be manage this connection
curl --location 'localhost:31000/scan' \
--header 'Accept: application/json' \
--header 'X-QUEPASA-USER: :user' \
--header 'X-QUEPASA-TOKEN: :token' \
--data ''
# Send a message
curl --location 'localhost:31000/send' \
--header 'Accept: application/json' \
--header 'X-QUEPASA-TRACKID: :trackid' \
--header 'X-QUEPASA-CHATID: :chatid' \
--header 'Content-Type: application/json' \
--header 'X-QUEPASA-TOKEN: :token' \
--data '{
"text": "Hello World ! \nHello World !"
}'
# Set webhook
curl --location 'localhost:31000/webhook' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-QUEPASA-TOKEN: :token' \
--data '{
"url": "https://webhook.example.com/webhook/5465465241654",
"forwardinternal": true,
"trackid": "custom-track",
"extra": {
"clientId": "12345",
"company": "myCompany",
"enviroment": "production",
"version": "1.0"
}
}'- Messages:
/send - Media:
/send - Groups:
/groups/ - Webhooks:
/webhook - RabbitMQ:
/rabbitmq
- v4 (Latest) - Recommended for new integrations
- v3 - Legacy support
- v2 - Legacy support
- v1 - Deprecated
π Complete API Documentation - Detailed endpoint documentation with examples.
Key configuration options (see docker/.env.example for complete list):
# Basic Configuration
DOMAIN=your-domain.com
MASTERKEY=your-secret-key
ACCOUNTSETUP=true # Enable for first setup
# Database
DBDRIVER=postgres
DBHOST=postgres
DBDATABASE=quepasa_whatsmeow
# Features
GROUPS=true
READRECEIPTS=true
CALLS=true
WEBSOCKETSSL=false
# Performance
CACHELENGTH=800
HISTORYSYNCDAYS=30π Environment Variables Reference - Complete configuration documentation.
QuePasa is built with:
- Backend: Go with Whatsmeow library
- Database: PostgreSQL for data persistence
- API: RESTful HTTP endpoints
- Real-time: WebSocket support for live updates
- π¬ Telegram Group: QuePasa API
- π’ Telegram Channel: QuePasa Channel
- π Issues: GitHub Issues
Looking for Node.js? Check out whatsapp-web.js - A more complete Node.js WhatsApp API.
- Security: This application has not been security audited. Use at your own risk.
- Unofficial: This is a third-party project, not affiliated with WhatsApp.
- Terms: Ensure compliance with WhatsApp's Terms of Service.
- Rate Limits: Respect WhatsApp's rate limiting to avoid account suspension.
βββ src/ # Go source code
βββ docker/ # Docker configuration
βββ extra/ # Integration examples
β βββ chatwoot/ # Chatwoot integration
β βββ n8n+chatwoot/ # N8N workflow examples
β βββ typebot/ # TypeBot integration
βββ docs/ # Documentation
βββ helpers/ # Installation helpers
# Development build
go build -o .dist/quepasa-dev src/main.go
# Production build
go build -ldflags="-s -w" -o .dist/quepasa-prod src/main.goFor detailed configuration options, see docker/.env.example and src/environment/README.md.
| Variable | Description | Default |
|---|---|---|
DOMAIN |
Your domain name for the service | localhost |
WEBAPIPORT |
HTTP server port | 31000 |
WEBSOCKETSSL |
Use SSL for WebSocket connections | false |
MASTERKEY |
Master key for administration | required |
ACCOUNTSETUP |
Enable account creation setup | true |
| Variable | Description | Default |
|---|---|---|
GROUPS |
Enable group messaging | true |
BROADCASTS |
Enable broadcast messages | false |
READRECEIPTS |
Trigger webhooks for read receipts | false |
CALLS |
Accept incoming calls | true |
READUPDATE |
Mark chats as read when sending | true |
| Variable | Description | Default |
|---|---|---|
CACHELENGTH |
Number of messages in cache | 800 |
CACHEDAYS |
Days to keep messages in cache | 7 |
HISTORYSYNCDAYS |
Days of history to sync on QR scan | 30 |
SYNOPSISLENGTH |
Length for message synopsis | 50 |
| Variable | Description | Default |
|---|---|---|
DBDRIVER |
Database driver | postgres |
DBHOST |
Database host | localhost |
DBPORT |
Database port | 5432 |
DBDATABASE |
Database name | quepasa_whatsmeow |
DBUSER |
Database user | quepasa |
DBPASSWORD |
Database password | required |
| Variable | Description | Options |
|---|---|---|
LOGLEVEL |
Application log level | ERROR, WARN, INFO, DEBUG, TRACE |
WHATSMEOW_LOGLEVEL |
WhatsApp library log level | error, warn, info, debug |
HTTPLOGS |
Log HTTP requests | true, false |
DEBUGREQUESTS |
Debug API requests | true, false |
| Variable | Description | Default |
|---|---|---|
CONVERT_PNG_TO_JPG |
Convert PNG to JPG format | false |
COMPATIBLE_MIME_AS_AUDIO |
Convert audio to OGG/PTT | true |
REMOVEDIGIT9 |
Remove digit 9 from BR numbers | false |
| Variable | Description | Default |
|---|---|---|
TZ |
Timezone | America/Sao_Paulo |
APP_TITLE |
App title suffix | QuePasa |
PRESENCE |
Default presence state | unavailable |
QuePasa is free software licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
- β Free to use for personal and commercial purposes
- β Modify and distribute freely
- β No warranty - use at your own risk
β οΈ Copyleft license - derivative works must also be AGPL-3.0β οΈ Network use - if you run a modified version as a service, you must provide source code
- WhatsApp Official - Official WhatsApp platform
- Whatsmeow Library - Go library for WhatsApp Web API
- Docker Documentation - Container platform documentation
- PostgreSQL - Database system documentation
Made with β€οΈ by the QuePasa Community