Overview
GOWA WhatsApp API provides comprehensive message sending capabilities including text messages with mentions, replies to specific messages, and message forwarding.Text Messages
Basic Text Message
Send a simple text message to a WhatsApp number:Phone numbers must be in international format without the
+ prefix. Use 628xxx instead of 08xxx for Indonesian numbers.Reply to Message
Reply to a specific message using its message ID:Forward Message
Mark a message as forwarded:Forwarded messages display the forwarding indicator in WhatsApp client.
Mentions
GOWA supports two types of mentions:Standard Mentions
Mention users by including@phone in the message text:
@ and creates mention context.
Ghost Mentions
Mention users without showing@phone in the message text:
Mention Everyone (@everyone)
Mention all participants in a group using the special@everyone keyword:
Disappearing Messages
Send messages that auto-delete after a specified duration:Duration in seconds. Valid values:
0— No expiry (disabled)86400— 24 hours604800— 7 days7776000— 90 days
Other Message Types
Send Contact
Share a contact card:Send Location
Share geographical coordinates:Send Link with Preview
Send a URL with rich link preview:Send Poll
Create a poll with multiple options:Maximum number of answers a participant can select (1 to number of options).
Response Format
Successful message send returns:Common Patterns
Combining Features
You can combine reply, mentions, and forwarding:Validation Rules
Error Handling
Invalid Phone Format
Invalid Phone Format
62xxx instead of 08xxx for Indonesian numbers.Message Not Found (Reply)
Message Not Found (Reply)
If the
reply_message_id doesn’t exist in storage, the API logs a warning and sends the message without reply context.Best Practice: Store message IDs from webhook events for reliable replies.Invalid Duration
Invalid Duration
Best Practices
Store Message IDs
Save message IDs from webhook events to enable reliable reply functionality.
Validate Phone Numbers
Always validate phone numbers are in international format before sending.
Handle Mentions Carefully
Use
@everyone sparingly in large groups to avoid notification spam.Test Disappearing Messages
Verify disappearing message behavior in test chats before production use.
See Also
- Receiving Messages — Handle incoming messages via webhooks
- Media Handling — Send images, videos, and files
- Group Management — Manage group settings and participants
