Marks an entire chat or a specific message as a favorite
Auth:Documentation Index
Fetch the complete documentation index at: https://docs.ryzeapi.cloud/llms.txt
Use this file to discover all available pages before exploring further.
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
number) or a specific message (by passing messageId). At least one of the two must be present.
messageId takes precedence, the favorite is recorded on the message.number. Use this to highlight important contacts in the list, without tying the favorite to a specific message.
messageId. When both fields are sent, messageId takes precedence and the favorite is recorded on the message instead of the chat.
favorite: false, undoes the previously recorded favorite on the chat or the message (depending on which field was provided, same precedence rule as in the previous examples).
type field indicates what was marked: "chat" when you favorited the entire conversation, or "message" when you passed a messageId (in that case message_id is filled in). chat_jid is always returned. favorite reflects the final state.
| Name | Required | Example | Description |
|---|---|---|---|
Content-Type | yes | application/json | — |
token | yes (or Authorization) | a1b2c3d4-... | TokenAccount or TokenInstance. |
number.true favorites, false removes the favorite.number and messageId.| HTTP | error.message | When it happens |
|---|---|---|
| 400 | Instance name is required | — |
| 400 | Invalid request body: <...> | Malformed JSON. |
| 400 | Either number or messageId is required | Neither provided. |
| 401 | Invalid token | — |
| 404 | Instance not found | — |
| 404 | Message not found | messageId does not exist. |
| 503 | Instance is not connected to WhatsApp | — |
POST /api/chat/pin/:instance