Summary
- Name: wa-server API
- Description: Multi-tenant WhatsApp backend
- Environment: Production
- Base URL:
https://wa.sagad.net - Content-Type:
application/json - Auth:
Authorization: Bearer <token>for all device and message actions
Quick Start
- Use your App Bearer token.
- Health check:
GET /health. - Create device:
POST /devices(returns initial QR + expires_at). - Scan QR from phone; regenerate via
/devices/{device_id}/qronly after disconnect/expiry. - Send messages:
POST /devices/{device_id}/messages(text/media/contact/location). - Enable webhooks (recommended) to receive message/receipt/presence/logout events.
Key Pages
- Authentication & Access
- Device Management
- Send Messages
- Media Access - Download media files from webhooks
- Webhooks
- Errors & Troubleshooting
Media Access
When you receive a webhook with media_path, download the media file using:
GET /media?path={media_path}
Authorization: Bearer <your_token>
See Media documentation for details and examples.
Integration Tips
- Use
Authorization: Bearer <token>for all device/message calls; base URLhttps://wa.sagad.net. - Flow: create device → generate/scan QR → send messages → listen to webhooks.
- Webhook-first: subscribe to
message,receipt,presence(typing),warning/logoutfor reliability. - Automation/MCP: REST-friendly; endpoints are flat under
/devicesso tools can call without extra path params.