Description
⚠️ This endpoint is not yet implemented. This endpoint will allow marking or unmarking messages as favorites (star), adding them to the important messages list on WhatsApp. Note: This endpoint uses the HTTPPUT
method, not POST
.
Body
Body Parameters
Property | Type | Required | Description |
---|---|---|---|
sessionId | string | ✅ Yes | Authenticated session ID that will star the message |
jid | string | ✅ Yes | Chat identifier (WhatsApp JID). Format: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us for groups |
messageId | string | ✅ Yes | Message ID a ser favoritada |
star | boolean | ✅ Yes | true para favoritar, false para desfavoritar |
Status Codes
200
- Message favoritada/desfavoritada com sucesso400
- Invalid parameters401
- Unauthorized session404
- Session not found501
- Not implemented
Usage Example
Authorizations
Your Wappfy API key (get it at dash.wappfy.com.br)
Body
application/json
Message ID to be starred
Example:
"false_5511999999999@c.us_AAAAAAAAAAAAAAAAAAAA"
Chat ID (WhatsApp JID)
Example:
"5511999999999@c.us"
true para favoritar, false para desfavoritar
Session name (instanceName)
Example:
"my-session"