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.threadId from GET /onebox/top-emails or GET /onebox/search-emails.page and limit (default 100, maximum 100). total is the full message count.account to restrict the lookup to one mailbox.attachmentId and provider feed POST /onebox/download-attachment.POST /onebox/action.curl --location 'https://api.zapmail.ai/api/v3/onebox/thread-emails?threadId=19a3f5c2d7e8b401' \
--header 'x-auth-zapmail;'{
"success": true,
"data": [
{
"threadId": "19a3f5c2d7e8b401",
"messageId": "19a3f5c2d7e8b402",
"subject": "Re: Quick question",
"account": "jane@acme.com",
"provider": "GMAIL",
"from": [
{
"address": "lead@example.com",
"name": "Lead Example"
}
],
"to": [
{
"address": "jane@acme.com",
"name": "Jane Doe"
}
],
"cc": [],
"bcc": [],
"date": "2026-10-26T08:41:00.000Z",
"isRead": true,
"isStarred": false,
"labels": [
"inbox"
],
"folderPath": "inbox",
"hasAttachments": false,
"attachments": [],
"body": {
"plain": "Thanks for reaching out...",
"html": "<p>Thanks for reaching out...</p>"
},
"userNotes": null
}
],
"total": 1
}