Chat
Find message by ID
Retrieves the snapshot of a message stored by ingestion
GET
Find message by ID
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Returns the persisted snapshot of a message (text, media, caption, mimetype, size, etc.) that has already been processed by ingestion. Useful to rehydrate a message from themessageId received in a webhook or in another API endpoint.
Examples
By id
Retrieves the message snapshot using the?messageId=<message-id> query. Returns the full record (text, media, caption, mimetype, size) persisted by ingestion.
Success response
The snapshot comes indata with type, from, to, chat, timestamp, isGroup, and the send status. For text messages, content carries the body; for media, the media object appears with type, mimeType, size, and duration (audio/video). Use messageId from the envelope to reference this message in subsequent calls (favorite, forward, edit).
200 OK
Path parameters
Instance name.
Query params
Message ID (required).
Headers
| Name | Required | Example | Description |
|---|---|---|---|
token | yes (or Authorization) | a1b2c3d4-... | TokenAccount or TokenInstance. |
Error responses
| HTTP | error.message | When it happens |
|---|---|---|
| 400 | Message ID is required (use ?messageId=<message-id>) | Missing messageId. |
| 404 | Instance not found | , |
| 404 | Message not found | ID does not exist in the database. |
| 503 | Instance is not connected to WhatsApp | , |
Error 400
Related
Media as base64
Retrieve raw media from the
messageId.Delivery status
Check whether it was delivered/read.