Mark a WhatsApp chat as unread
Mark one personal WhatsApp chat or group as unread, like WhatsApp's own Mark as unread, on the phone and every linked device.
- Key permissions
- Read chats and messages + Files, reactions, edits and polls
- Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work
How it works
Sends nothing to anyone.
Pass a conversation_id from list_conversations or search_messages.
Body parameters
idempotencyKeystringoptionalOptional. A fresh random UUID for this action; reuse it only to retry the same action. When left out, WhatSync makes one, so the same chat marked unread twice within 10 minutes is done once.
conversationIdstringrequiredThe conversation_id of the chat to mark unread
Conditions and pagination
- Use a unique idempotency key for each intended action. Reuse the same key and exactly the same input on a retry. The body key takes precedence over Idempotency-Key.
Response
The response wraps tool-specific data in result. Save operation_id and inspect get_operation with operationId if the outcome is uncertain. completed means the operation completed; it does not prove message delivery or Meta approval. An uncertain operation returns HTTP 409 with error.operation_id.
Every response includes X-Request-Id. Errors use the shared error format and retry rules.
Schemas
Input JSON Schema
{
"type": "object",
"properties": {
"idempotencyKey": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{8,128}$",
"description": "Optional. A fresh random UUID for this action; reuse it only to retry the same action. When left out, WhatSync makes one, so the same chat marked unread twice within 10 minutes is done once."
},
"conversationId": {
"type": "string",
"minLength": 1,
"maxLength": 250,
"description": "The conversation_id of the chat to mark unread"
}
},
"required": [
"conversationId"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Response JSON Schema
{
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"format": "uuid"
},
"status": {
"type": "string",
"enum": [
"completed"
]
},
"replayed": {
"type": "boolean"
},
"result": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"conversation_id": {
"type": "string"
},
"note": {
"type": "string"
}
},
"required": [],
"additionalProperties": true
},
"note": {
"type": [
"string",
"null"
]
}
},
"required": [
"operation_id",
"status",
"result"
],
"additionalProperties": true
}