get emails from a thread
Testing
Get all emails in a specific conversation thread
Request Code Samples
curl --location --request GET 'https://api.zapmail.ai/api/v2/onebox/thread-emails?threadId=abc123' \
--header 'x-auth-zapmail: YOUR_API_KEY' \
--header 'x-workspace-id: workspace_123' \
--header 'x-service-provider: GOOGLE'
Responses
application/json {
"success": true,
"data": [
{
"provider": "string",
"threadId": "string",
"messageId": "string",
"subject": "string",
"date": "string",
"from": [
{
"name": "string",
"address": "string"
}
],
"to": [
{
"name": "string",
"address": "string"
}
],
"cc": [
"string"
],
"body": {
"plain": "string",
"html": "string"
},
"labels": [
"string"
],
"folderPath": "string",
"isRead": true,
"isStarred": true,
"hasAttachments": true,
"attachments": [
"string"
]
}
]
}
Modified at 2026-01-15 11:46:17