Star / Unstar Message

Star or unstar a specific message in a chat to bookmark important customer messages.

PUT
https://api.wawp.net/v2/messages/star?access_token=YOUR_ACCESS_TOKEN&chatId=201012345678%40c.us&instance_id=123456789&messageId=false_201012345678%40c.us_3EB0123456789ABCDEF&session_name=default&star=true

Authentication Required

Login to swap the placeholders with your real Instance ID and Access Token.

Log In
Test /v2/messages/star endpoint
PUTPOSTGET

No query parameters required

This endpoint doesn't expect data in the URL.

Best practices

  • Automatically star messages containing payment receipts or urgent support keywords so agents can review them quickly.

Bookmarking Important Messages (Star / Unstar)

The /v2/messages/star endpoint stars (star: true) or unstars (star: false) a specific message in a chat. Starred messages appear in the WhatsApp "Starred Messages" list for quick follow-up.

Request Parameters

Configure the parameters required to interact with this endpoint. All query and body arguments are listed below with their details.

Query Parameters & Request Body

Supported in URL Query String or JSON Body
string

Your unique WhatsApp Instance ID.

Example:
string

Your API Access Token.

Example:
string—

Optional session name (alternative to instance_id).

Example:
string

The chat ID containing the message (e.g. 201012345678@c.us).

Example:
string

The full ID of the message to star or unstar.

Example:
boolean—

Set to true to star the message, or false to unstar it.

Default: trueExample:

Build with AI using Wawp MCP

MCP READY

Connect Wawp API directly to Cursor, Windsurf, or Claude Desktop. Let AI write, test, and execute your WhatsApp integration code automatically!

How to Connect

Request Samples

Use these ready-to-go code snippets to integrate our API into your project quickly and efficiently. Choose your preferred language and library.

1const baseUrl = "https://api.wawp.net";
2const endpoint = "/v2/messages/star";
3const params = new URLSearchParams({
4 "instance_id": "123456789",
5 "access_token": "YOUR_ACCESS_TOKEN"
6}).toString();
7const body = {
8 "session_name": "default",
9 "chatId": "201012345678@c.us",
10 "messageId": "false_201012345678@c.us_3EB0123456789ABCDEF",
11 "star": "true"
12};
13
14fetch(`${baseUrl}${endpoint}${params ? '?' + params : ''}`, {
15 method: "PUT",
16 headers: { "Content-Type": "application/json" },
17 body: JSON.stringify(body)
18})
19 .then(async (response) => {
20 if (response.ok) {
21 const data = await response.json();
22 console.log("Success:", data);
23 return data;
24 }
25
26 // Error Handling
27 if (response.status === 400) {
28 console.error("Error 400: Bad Request - Missing Required Parameter(s)");
29 }
30 if (response.status === 401) {
31 console.error("Error 401: Unauthorized - Invalid or Missing Access Token");
32 }
33 if (response.status === 404) {
34 console.error("Error 404: Not Found - Session Does Not Exist");
35 }
36 if (response.status === 500) {
37 console.error("Error 500: Internal Server Error - Unexpected Failure");
38 }
39
40 const errorText = await response.text();
41 console.error(`Error ${response.status}: ${errorText}`);
42 })
43 .catch((error) => console.error("Network Error:", error));
Interactive Samples
Ln 43, Col 1javascript

Expected Responses

Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.

Message star state updated successfully
application/json
boolean *

Example

{
"ok": true
}
Bad Request - Missing Required Parameter(s)
Unauthorized - Invalid or Missing Access Token
Not Found - Session Does Not Exist
Internal Server Error - Unexpected Failure
Previous TopicForward Message
Next TopicMark chat as unread

Command Palette

Search for a command to run...