Delete one saved chat (confirm link)
Prepare permanently removing every saved message, file and saved contact name for one chat from WhatSync (nothing is deleted on WhatsApp).
- Key permissions
- Read chats and messages + Change saved chats and filters
- Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work
How it works
stopSavingalso skips that person, or unselects that group, so new messages are not saved.- Only invoke when the user explicitly asks to delete this chat; confirm the
conversation_idfirst withlist_conversations. - To remove every chat, use
request_remove_all_chats. - Returns
confirm_link: nothing is deleted until the user opens it while signed in to WhatSync and presses the button.
Body parameters
idempotencyKeystringoptionalA fresh random UUID for each new action; never build it from dates, names, counters or step numbers, which repeat across runs. Reuse it exactly only to retry the same action.
conversationIdstringrequiredconversation_id of a QR chat, such as 919876543210@s.whatsapp.net or 1203...@g.us
stopSavingbooleanoptionalSee the example and input schema for this value.
fromNumberstringoptionalWhich of the account's WhatsApp numbers acts, with country code, as listed in whatsapp_numbers from get_account_context. Only matters when the account has several numbers. Omit for the account's first number.
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
HTTP 200 returns this tool's JSON directly, without an MCP content wrapper. Optional provider fields may be absent or null; check pagination and coverage before treating a page as complete.
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": "A fresh random UUID for each new action; never build it from dates, names, counters or step numbers, which repeat across runs. Reuse it exactly only to retry the same action."
},
"conversationId": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "conversation_id of a QR chat, such as 919876543210@s.whatsapp.net or 1203...@g.us"
},
"stopSaving": {
"type": "boolean"
},
"fromNumber": {
"type": "string",
"minLength": 7,
"maxLength": 30,
"description": "Which of the account's WhatsApp numbers acts, with country code, as listed in whatsapp_numbers from get_account_context. Only matters when the account has several numbers. Omit for the account's first number."
}
},
"required": [
"conversationId"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Response JSON Schema
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"confirmation_needed",
"not_on_this_plan",
"demo_account"
]
},
"confirm_link": {
"type": "string"
},
"link_expires_at": {
"type": "string"
},
"what_happens": {
"type": "string"
},
"note": {
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": true,
"description": "Provider or tool-specific fields; preserve unknown fields."
}
},
"required": [],
"additionalProperties": true
}