Stickers are automatically converted to the WebP format that WhatsApp requires. You can upload images in various formats (JPG, PNG, GIF) and they will be converted automatically.
Endpoint
Headers
Device identifier for multi-device support. Required when multiple devices are registered.
Must be
multipart/form-data for file uploads.Request Body (multipart/form-data)
Phone number with country code and WhatsApp suffix.Format:
{country_code}{phone_number}@s.whatsapp.netExample: [email protected]Sticker image file to upload. Supported formats: JPG, JPEG, PNG, WebP, GIF.The image will be automatically:
- Converted to WebP format
- Resized to WhatsApp sticker dimensions (512x512)
- Optimized for sticker usage
Either
sticker (file upload) or sticker_url must be provided, but not both.URL of the sticker image to send. The API will download, convert, and send the image.Example:
"https://example.com/sticker.png"Either
sticker (file upload) or sticker_url must be provided, but not both.Disappearing message duration in seconds (optional).Common values:
86400- 24 hours604800- 7 days7776000- 90 days
Mark the message as forwarded.
Response
Response status code. Returns
"SUCCESS" on successful send.Human-readable response message.
Code Examples
Response Example
Sticker Requirements
Image Format
Supported Input Formats:- JPEG (.jpg, .jpeg)
- PNG (.png) - Supports transparency
- WebP (.webp) - Native WhatsApp format
- GIF (.gif) - Animated stickers
- All stickers are automatically converted to WebP format
- Static stickers: WebP (lossy or lossless)
- Animated stickers: Animated WebP
Dimensions
WhatsApp stickers must be exactly 512x512 pixels. The API automatically handles resizing.
- Images are resized to 512x512 pixels
- Aspect ratio is maintained (with padding if needed)
- Transparent background is preserved for PNG
- White background added for non-transparent images
File Size
- Maximum file size: 100KB (after conversion)
- Recommended: Under 50KB for optimal performance
- Animated stickers: May be larger due to multiple frames
Design Guidelines
- Transparency: PNG images with transparent backgrounds work best
- Simple Designs: Clear, bold designs are more effective
- Centered Subject: Keep the main subject centered
- High Contrast: Ensure sticker stands out on any background
- No Text: Minimize text; stickers should be universally understandable
Animated Stickers
Create animated stickers from GIF files:- Format: GIF (will be converted to animated WebP)
- Dimensions: 512x512 pixels
- Frame Rate: Max 30 FPS
- Duration: Max 3 seconds
- File Size: Under 500KB (after conversion)
Use Cases
Express Emotions
Send stickers to express feelings or reactions:Brand Communication
Use custom branded stickers for marketing:Automated Responses
Send stickers as automated responses:Interactive Messaging
Enhance conversations with expressive stickers:Automatic Conversion Process
The API handles all necessary conversions:Static Stickers
- Input: JPG/PNG/WebP image
- Resize: Scale to 512x512 pixels
- Convert: Transform to WebP format
- Optimize: Compress to meet size requirements
- Send: Upload to WhatsApp
Animated Stickers
- Input: GIF file
- Extract: Get all frames
- Resize: Scale each frame to 512x512
- Convert: Transform to animated WebP
- Optimize: Reduce file size if needed
- Send: Upload to WhatsApp
The conversion process is automatic and transparent. You don’t need to manually convert images to WebP format.
Best Practices
-
Use Transparent Backgrounds
- PNG with transparency looks best
- Integrates seamlessly into any chat theme
- More professional appearance
-
Optimize Before Upload
- Pre-resize images to 512x512 if possible
- Reduce color palette for smaller file sizes
- Remove unnecessary metadata
-
Create Sticker Packs
- Organize related stickers
- Maintain consistent style across pack
- Use descriptive file naming
-
Test on Different Backgrounds
- Ensure sticker is visible on light and dark themes
- Check contrast and readability
- Verify transparency works correctly
-
Animated Sticker Tips
- Keep animations simple and short
- Limit to 2-3 seconds maximum
- Use fewer frames for smaller file size
- Test animation speed on mobile devices
-
Cultural Sensitivity
- Consider cultural meanings of gestures/symbols
- Avoid potentially offensive content
- Test with diverse audiences
Creating Custom Stickers
Design Tools
Recommended Software:- Photoshop: Professional sticker creation
- GIMP: Free alternative to Photoshop
- Figma: Web-based design tool
- Inkscape: Vector graphics editor
- Canva: Simple online design tool
Design Checklist
- Image is 512x512 pixels
- Background is transparent (PNG)
- Subject is centered
- High contrast for visibility
- File size under 100KB
- No copyrighted content
- Tested on light and dark themes
Troubleshooting
Sticker Not Sending
- Check file format is supported
- Verify file size is under 100KB
- Ensure image is not corrupted
- Try with a simpler image first
- Check device connection status
Conversion Fails
- Verify image format is valid
- Check image is not corrupted
- Ensure image has valid dimensions
- Try re-saving the image
- Convert to PNG format before upload
Quality Issues
- Use higher resolution source images
- Avoid JPEG artifacts (use PNG)
- Simplify complex designs
- Reduce number of colors
- Ensure proper transparency settings
Animated Sticker Issues
- Reduce number of frames
- Decrease animation duration
- Simplify animation movements
- Lower frame rate (15-20 FPS)
- Optimize GIF before upload
Error Responses
Common causes:
- Invalid phone number format
- Missing both
stickerandsticker_url - Providing both
stickerandsticker_url - Unsupported image format
- File size too large
- Invalid image dimensions
Common causes:
- Device not connected
- Image conversion failed
- Failed to download sticker from URL
- Image processing error
- WebP conversion library error
- Insufficient server resources
Related Endpoints
- Send Image - Send regular images with captions
- Send Text - Send text messages
- Send Video - Send video messages
- React to Message - Add emoji reactions
