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: [email protected] for contacts or [email protected] 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:
"[email protected]_AAAAAAAAAAAAAAAAAAAA"
Chat ID (WhatsApp JID)
Example:
true para favoritar, false para desfavoritar
Session name (instanceName)
Example:
"my-session"
