POST /ai-insight/generate-mailbox-analysis.ACTIVE, has no disable reason, has a stored refresh token and sits on an ACTIVE domain.totalEligibleMailboxes counts every eligible mailbox across all pages.page and limit are read from the query string or the body. A limit of 0 falls back to 50.POST /ai-insight/calculate-pricing.curl --location 'https://api.zapmail.ai/api/v3/ai-insight/eligible-mailboxes' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data '{
"tagIds": [
"c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
],
"contains": "acme"
}'{
"status": 200,
"message": "Eligible mailboxes fetched successfully",
"data": {
"totalSearchedCount": 12,
"currentPage": 1,
"nextPage": 2,
"totalPages": 2,
"domains": [
{
"id": "b2c3d4e5-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"domain": "acme.com",
"mailboxes": [
{
"id": "3f6c1a52-8d4e-4b7a-9c21-5e0d7a1b2c33",
"username": "john",
"domain": "acme.com",
"status": "ACTIVE",
"disableReason": null
}
]
}
],
"totalEligibleMailboxes": 27
}
}