Skip to main content
POST
/
api
/
v1
/
sessions
/
{sessionId}
/
chats
/
action
Manage chats
curl --request POST \
  --url https://api.wadial.com/api/v1/sessions/{sessionId}/chats/action \
  --header 'Authorization: Bearer <token>'

Apply a chat action

POST /api/v1/sessions/{sessionId}/chats/action
Authorization: Bearer <api_key>
Content-Type: application/json
{
  "chatJid": "[email protected]",
  "action": "archive"
}
Supported action values:
[
  "mute",
  "unmute",
  "pin",
  "unpin",
  "archive",
  "unarchive",
  "mark_read",
  "mark_unread",
  "lock",
  "unlock",
  "clear",
  "delete"
]
For mute, include muteEndTimestampMs. For clear, you can include deleteStarred and deleteMedia. For delete, you can include deleteMedia.
{
  "data": {
    "sessionId": "01J...",
    "to": "[email protected]",
    "action": "archive",
    "messageId": null
  }
}

Star or unstar a message

POST /api/v1/sessions/{sessionId}/chats/messages/star
Authorization: Bearer <api_key>
Content-Type: application/json
{
  "message": {
    "chatJid": "[email protected]",
    "id": "3EB0A1B2C3D4E5F6",
    "fromMe": false
  },
  "starred": true
}
Set starred to false to unstar the message.