POST /ai-insight/generate-mailbox-analysis.mailboxIds, or with tagIds, contains, mailboxStatus and filters. With no selector, all analyses in the workspace are returned.status is IN_PROGRESS while the analysis runs, then SUCCESS or FAILED.page and limit are read from the body (maximum 100) and fall back to the query string.GET /ai-insight/mailbox-analysis/{id}.curl --location 'https://api.zapmail.ai/api/v3/ai-insight/mailbox-analysis' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data '{
"status": "SUCCESS",
"mailboxIds": [
"3f6c1a52-8d4e-4b7a-9c21-5e0d7a1b2c33",
"7a9d2e41-1b3c-4f58-a6d0-2c8e4b9f1a07"
],
"page": 1,
"limit": 20
}'{
"status": 200,
"message": "Mailboxes analysis data fetched successfully",
"data": {
"totalSearchedCount": 1,
"currentPage": 1,
"nextPage": 2,
"totalPages": 1,
"analyses": [
{
"id": "9b1e7c30-4d2a-4f6b-8c15-3a7d9e0f2b64",
"mailboxId": "3f6c1a52-8d4e-4b7a-9c21-5e0d7a1b2c33",
"userId": "0b71d8dd-55c3-4bf8-b4ed-bfe9697d5af1",
"workspaceId": "0b71d8dd-55c3-4bf8-b4ed-bfe9697d5af1",
"serviceProvider": "GOOGLE",
"status": "SUCCESS",
"dataRangeStart": "2026-10-11T00:00:00.000Z",
"dataRangeEnd": "2026-10-26T00:00:00.000Z",
"mailbox": null,
"aiInsight": {
"keyPoints": {
"overallScore": 82
},
"mailboxHealth": 88,
"riskFlags": []
},
"displayMetrics": {
"dnsScoring": {
"spf": {
"valid": true
},
"dkim": {
"present": true
},
"dmarc": {
"present": true
}
}
},
"improvementScopes": [],
"safeBandRamp": null,
"contentSimilarity": null,
"shared": false,
"cartOrderId": "d3e4f5a6-7b8c-4d9e-a0f1-2b3c4d5e6f70",
"createdAt": "2026-10-26T09:14:03.000Z",
"updatedAt": "2026-10-26T09:21:47.000Z",
"deletedAt": null,
"mailboxRecord": {
"id": "3f6c1a52-8d4e-4b7a-9c21-5e0d7a1b2c33",
"username": "john",
"domain": "acme.com"
}
}
]
}
}