Gmail
Email Read
Read one email's full contents from a connected Gmail/Outlook account.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| emailstring · optional | string | optional | The other party's email address (e.g. the sender's address if you are the recipient), used to look up their most recent message when `messageId` is not supplied. |
| senderstring · optional | string | optional | The connected email account that received (or sent) the email: its address ("you@company.com"), its provider-prefixed identifier ("GOOGLE_OAUTH:you@company.com"), or its connected account id. Must be a connected account in the workspace. |
| emailIdstring · optional | string | optional | Alias for `messageId`. |
| accountIdstring · optional | string | optional | Alias for `sender` — the connected account id. |
| messageIdstring · optional | string | optional | Id of the exact email to read — as returned by email-list. PREFER THIS whenever you have it: it targets one specific message, so `email` is then unnecessary. |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id",
"subject",
"from",
"to",
"date",
"body",
"isRead"
],
"properties": {
"cc": {
"type": "array",
"items": {
"type": "string"
}
},
"id": {
"type": "string"
},
"to": {
"type": "array",
"items": {
"type": "string"
}
},
"bcc": {
"type": "array",
"items": {
"type": "string"
}
},
"body": {
"type": "string",
"description": "Email body content (HTML or plain text)"
},
"date": {
"type": "string"
},
"from": {
"type": "string"
},
"note": {
"type": "string"
},
"isRead": {
"type": "boolean"
},
"subject": {
"type": "string"
},
"fromName": {
"type": "string"
},
"threadId": {
"type": "string"
},
"bodyPlain": {
"type": "string",
"description": "Plain text version of the email body"
},
"inReplyTo": {
"type": "string"
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"required": [
"filename"
],
"properties": {
"id": {
"type": "string"
},
"size": {
"type": "number"
},
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}