Skip to content

Release v1.6.0: Image Endpoint and Enhanced Webhook Payload

Choose a tag to compare

@rizrmd rizrmd released this 28 Oct 08:54
· 2 commits to main since this release

What's New in v1.6.0

🖼️ Image Endpoint

  • New GET /images/{filename} endpoint to serve downloaded images
  • Secure file serving with path traversal protection
  • Automatic content type detection (JPEG, PNG, GIF, WebP)
  • Optimized caching headers for better performance

📡 Enhanced Webhook Payload

  • Image URLs now included in webhook attachment payloads
  • Comprehensive attachment metadata for all message types

🔒 Security Improvements

  • Path traversal protection for image endpoint
  • Input validation for filename parameters

📝 API Documentation Updates

  • Updated Swagger documentation with new image endpoint
  • Enhanced server startup logs with all available endpoints

Usage Example

When an image is received, the webhook payload now includes an accessible URL field.
Access images via: http://localhost:8080/images/{messageID}.jpg

Upgrade Instructions

  1. Stop your current WhatsApp Web API service
  2. Replace the binary with the new version
  3. Restart the service
  4. No configuration changes required - fully backward compatible