Get exact WhatsApp messages
Retrieve up to 25 exact WhatsApp messages by message ID.
- Key permissions
- Read chats and messages
- Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work
How it works
- Use this to verify evidence or resolve quoted-message references found in search results.
- It does not search; with
conversationIdand nomessageIdsit returns that chat's newest messages, likeget_conversation. - To read the messages around a hit, use
get_message_context.
Body parameters
messageIdsstring[]optional1 to 25 exact message IDs returned by WhatSync tools
conversationIdstringoptionalWithout messageIds: a conversation_id whose newest messages to return
limitintegeroptionalWith conversationId: number of messages; defaults to 20
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
Input JSON Schema
{
"type": "object",
"properties": {
"messageIds": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"maxItems": 25,
"description": "1 to 25 exact message IDs returned by WhatSync tools"
},
"conversationId": {
"type": "string",
"minLength": 1,
"maxLength": 250,
"description": "Without messageIds: a conversation_id whose newest messages to return"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "With conversationId: number of messages; defaults to 20"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Response JSON Schema
Response JSON Schema
{
"type": "object",
"properties": {
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message_id": {
"type": [
"string",
"null"
]
},
"conversation_id": {
"type": [
"string",
"null"
]
},
"channel": {
"type": [
"string",
"null"
]
},
"sent_at": {
"type": [
"string",
"null"
]
},
"direction": {
"type": [
"string",
"null"
]
},
"sender": {
"type": [
"string",
"null"
]
},
"recipient": {
"type": [
"string",
"null"
]
},
"contact_name": {
"type": [
"string",
"null"
]
},
"group_name": {
"type": [
"string",
"null"
]
},
"participant_id": {
"type": [
"string",
"null"
]
},
"provider_phone_number_id": {
"type": [
"string",
"null"
]
},
"quoted_message_id": {
"type": [
"string",
"null"
]
},
"delivery_status": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
},
"text": {
"type": [
"string",
"null"
]
},
"attachment": {
"anyOf": [
{
"type": "object",
"additionalProperties": true,
"description": "Provider or tool-specific fields; preserve unknown fields."
},
{
"type": "null"
}
]
}
},
"required": [],
"additionalProperties": true
}
},
"missing_message_ids": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [],
"additionalProperties": true
}