POST
/api/send-message
Sends a message with a sticker attached via a URL (supports .webp format).
Send Sticker Message
Send a message with a sticker attached. Provide the sticker file (must be .webp format) via a publicly accessible URL in the stickerUrl
parameter.
Only the WEBP format is supported for stickers. Maximum file size: 100KB.
Parameters
Name | Type | Required | Description |
---|---|---|---|
to | string | Yes | Recipient phone number in E.164 format or, Group JID. |
text | string | No | The text content of the message. Required if no media/contact/location is sent. |
stickerUrl | string | Yes | URL of the sticker (.webp) to send. |
Code Examples
curl -X POST "https://www.wasenderapi.com/api/send-message"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"to": "+1234567890",
"stickerUrl": "https://example.com/sticker.webp"
}'
Response Examples
{
"success": true,
"data": {
"msgId": 100000,
"jid": "+123456789",
"status": "in_progress"
}
}