Get Email Thread
curl --request GET \
--url https://omnicommerce.ai/api/v1/email/threads/{threadId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/email/threads/{threadId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/email/threads/{threadId}"
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>",
"thread": {
"id": "<string>",
"messageCount": 123,
"messages": [
{
"id": "<string>",
"subject": "<string>",
"from": "<string>",
"to": "<string>",
"date": "<string>",
"bodyText": "<string>",
"snippet": "<string>",
"isDraft": true,
"isRead": true
}
]
}
}
}Email
Get Email Thread
Read the Gmail or Outlook conversation for a threadId from Search Emails. Each message includes headers, up to 8,000 characters of plain text, and read and draft state.
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
/
threads
/
{threadId}
Get Email Thread
curl --request GET \
--url https://omnicommerce.ai/api/v1/email/threads/{threadId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/email/threads/{threadId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/email/threads/{threadId}"
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>",
"thread": {
"id": "<string>",
"messageCount": 123,
"messages": [
{
"id": "<string>",
"subject": "<string>",
"from": "<string>",
"to": "<string>",
"date": "<string>",
"bodyText": "<string>",
"snippet": "<string>",
"isDraft": true,
"isRead": true
}
]
}
}
}