Get Email Message
curl --request GET \
--url https://omnicommerce.ai/api/v1/email/messages/{messageId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/email/messages/{messageId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/email/messages/{messageId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"operationId": "<string>",
"status": "<string>",
"data": {
"connectionId": "<string>",
"provider": "gmail",
"emailAddress": "<string>",
"message": {
"id": "<string>",
"threadId": "<string>",
"subject": "<string>",
"from": "<string>",
"to": "<string>",
"date": "<string>",
"snippet": "<string>",
"bodyText": "<string>",
"hasAttachments": true,
"attachments": [
{}
]
}
}
}Email
Get Email Message
One message from your mailbox: headers, plain-text body (at most 12,000 characters) and attachment metadata. Use a message id from Search Emails; encode it as one path segment.
Authorization
Requires email:read and the integration permission the matching chat tool needs, with a person’s credential: a CLI login, a signed-in session, or the SDK key inside your own chat sandbox. Only your own connected mailboxes are reachable; another account’s connectionId is refused.
GET
/
api
/
v1
/
email
/
messages
/
{messageId}
Get Email Message
curl --request GET \
--url https://omnicommerce.ai/api/v1/email/messages/{messageId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/email/messages/{messageId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/email/messages/{messageId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"operationId": "<string>",
"status": "<string>",
"data": {
"connectionId": "<string>",
"provider": "gmail",
"emailAddress": "<string>",
"message": {
"id": "<string>",
"threadId": "<string>",
"subject": "<string>",
"from": "<string>",
"to": "<string>",
"date": "<string>",
"snippet": "<string>",
"bodyText": "<string>",
"hasAttachments": true,
"attachments": [
{}
]
}
}
}