messages_source
The full MIME source (every header and both body parts) exactly as handed to SMTP — what the lead actually received, including footer, signature and the quoted thread, which body does not contain. headers is the parsed header list and text / html the decoded body parts (html is null for a text-only message). Headers the mail server adds after us (DKIM-Signature, Received) are not included. Stored for messages sent after 2026-10-28; 404 for anything not sent (check has_source on the message).
Method: GET /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/source/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sqid": "<sqid>"
},
"name": "messages_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes |