Description
This endpoint allows you to send event messages to individual contacts or groups on WhatsApp. Events can include information about name, description, time, location, and permission for extra guests.URL Parameters
Body
Body Parameters
Property | Type | Required | Description |
---|---|---|---|
jid | string | ✅ Yes | Recipient identifier (WhatsApp JID). Format: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us for groups |
event | object | ✅ Yes | Object containing event information |
event.name | string | ✅ Yes | Name of the event |
event.description | string | ❌ No | Event description |
event.startTime | number | ✅ Yes | Unix timestamp (in milliseconds) indicating the event start time |
event.endTime | number | ❌ No | Unix timestamp (in milliseconds) indicating the event end time |
event.location | object | ✅ Yes | Event location information |
event.location.name | string | ✅ Yes | Location name or address |
event.location.latitude | number | ❌ No | Location latitude |
event.location.longitude | number | ❌ No | Location longitude |
event.extraGuestsAllowed | boolean | ✅ Yes | Defines whether extra guests are allowed at the event |
Status Codes
200
- Event sent successfully400
- Invalid parameters401
- Unauthorized session404
- Session not found
Usage Example
Important Notes
- Timestamps must be in Unix format (milliseconds)
- Location is required, but latitude and longitude are optional
- If
extraGuestsAllowed
istrue
, guests will be able to bring additional people - The event will be displayed on WhatsApp with a special card containing all provided information
Authorizations
Your Wappfy API key (get it at dash.wappfy.com.br)
Path Parameters
Session name (instanceName)
Body
Response
Message ID
"false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA"
Unix timestamp of when the message was created
1666943582
Chat ID to which this message was sent
"5511999999999@c.us"
Indicates if the message was sent by the current user
The device that sent the message - either API or APP. Available in events (webhooks/websockets) only and only "fromMe: true" messages.
api
, app
"api"
- ID for who this message is for.
- If the message is sent by the current user, it will be the Chat to which the message is being sent.
- If the message is sent by another user, it will be the ID for the current user.
"5511999999999@c.us"
For groups - participant who sent the message
Message content
Indicates if the message has media available for download
Message acknowledgement (ACK) status
-1
, 0
, 1
, 2
, 3
, 4
Message acknowledgement status name
Message media object, if any and downloaded
If the message was sent to a group, this field will contain the user who sent the message
Location information contained in the message
List of vCards contained in the message
Message in raw WhatsApp format. May change at any time, use with caution!