GET /exports/status using the returned exportId; failures are recorded there.google section, a microsoft section, or both. mailboxesPerDomain is keyed by domain ID.skipped and the rest still proceed: NOT_ACCESSIBLE (not found, not ACTIVE, disabled, or outside the key's scope) and RATE_LIMITED (with retryAfterSeconds).google.appName fails the whole export, visible in the export status.POST /exports/add-google-client-id, GET /exports/status.curl --location 'https://api.zapmail.ai/api/v3/mailboxes/custom-oauth' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data '{
"google": {
"clientId": "123456789012-abcdefg.apps.googleusercontent.com",
"appName": "Smartlead.ai",
"mailboxesPerDomain": {
"b2c3d4e5-6f7a-4b8c-9d0e-1f2a3b4c5d6e": [
{
"mailboxId": "3f6c1a52-8d4e-4b7a-9c21-5e0d7a1b2c33",
"oauthLink": "https://accounts.google.com/o/oauth2/v2/auth?client_id=123456789012-abcdefg.apps.googleusercontent.com&state=abc"
}
]
}
}
}'{
"status": 202,
"message": "OAuth request accepted and will be processed shortly",
"data": {
"exportId": 48215,
"accepted": [
"3f6c1a52-8d4e-4b7a-9c21-5e0d7a1b2c33"
],
"skipped": [
{
"mailboxId": "7a9d2e41-1b3c-4f58-a6d0-2c8e4b9f1a07",
"reason": "RATE_LIMITED",
"retryAfterSeconds": 431200
}
],
"skippedMailboxIds": [
"7a9d2e41-1b3c-4f58-a6d0-2c8e4b9f1a07"
]
}
}