mailboxIds, or let tagIds, contains and filters pick the mailboxes.POST /ai-insight/mailbox-analysis and poll until status is SUCCESS or FAILED.checkoutUrl).No mailboxes found with valid refresh tokens or not belong to you.POST /ai-insight/eligible-mailboxes and pass the IDs it returns. A mailbox that is still being set up, disconnected, or in another workspace will not qualify.checkoutUrl is the link for the remainder. With a plan, credits are consumed instead of money.GET /ai-insight/available-credits, POST /ai-insight/calculate-pricing, POST /ai-insight/purchase-plan.curl --location 'https://api.zapmail.ai/api/v3/ai-insight/generate-mailbox-analysis' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data '{
"mailboxIds": [
"3f6c1a52-8d4e-4b7a-9c21-5e0d7a1b2c33",
"7a9d2e41-1b3c-4f58-a6d0-2c8e4b9f1a07"
]
}'{
"status": 200,
"message": "Mailboxes analysis started successfully",
"data": {
"cartOrderId": "d3e4f5a6-7b8c-4d9e-a0f1-2b3c4d5e6f70",
"cartOrderIds": [
"d3e4f5a6-7b8c-4d9e-a0f1-2b3c4d5e6f70"
],
"mailboxIds": [
"3f6c1a52-8d4e-4b7a-9c21-5e0d7a1b2c33",
"7a9d2e41-1b3c-4f58-a6d0-2c8e4b9f1a07"
],
"requestedMailboxCount": 2,
"processedMailboxCount": 2
}
}