success instead of the standard status/message/data envelope. Errors use the standard error envelope. The account owner must have Zapbox consent enabled, otherwise the call fails with 403; consent cannot be set through this API.page, limit default 50, maximum 100). The response is a plain array with no total.from, to, subject, hasWords, doesNotHave, tags).dateWithin is a number followed by d or h; dateFrom and dateTo are ISO 8601 timestamps.warmup is true.GET /onebox/thread-emails.curl --location 'https://api.zapmail.ai/api/v3/onebox/search-emails' \
--header 'x-auth-zapmail;'{
"success": true,
"data": [
{
"threadId": "19a3f5c2d7e8b401",
"subject": "Invoice #456",
"snippet": "Please find attached Invoice #456...",
"from": [
{
"address": "lead@example.com",
"name": "Lead Example"
}
],
"to": [
{
"address": "jane@acme.com",
"name": "Jane Doe"
}
],
"date": "2026-10-25T14:02:00.000Z",
"labels": [
"inbox"
],
"folderPath": "inbox",
"isRead": true,
"isStarred": false,
"hasAttachments": true,
"size": 182340,
"account": "jane@acme.com",
"serviceProvider": "GMAIL"
}
]
}