Search emails with filters and query parameters
Request Code Samples
curl --location --request GET 'https://api.zapmail.ai/api/v2/onebox/search-emails' \
--header 'x-auth-zapmail: YOUR_API_KEY' \
--header 'x-workspace-id: workspace_123' \
--header 'x-service-provider: GOOGLE'
Responses
application/json {
"success": true,
"data": [
{
"account": "string",
"threadId": "string",
"messageId": "string",
"subject": "string",
"snippet": "string",
"date": "string",
"from": [
{
"name": "string",
"address": "string"
}
],
"to": [
{
"name": "string",
"address": "string"
}
],
"cc": [
"string"
],
"size": 0,
"labels": [
"string"
],
"folderPath": "string",
"isRead": true,
"isStarred": true,
"hasAttachments": true
}
]
}
Modified at 2026-01-15 11:46:05