{
"google": {
"appName": "string (required if google section is present)",
"clientId": "string (required if google section is present)",
"mailboxesPerDomain": {
"domainId": [
{
"mailboxId": "string (UUID)",
"oauthLink": "string (URL)"
}
]
}
},
"microsoft": {
"mailboxesPerDomain": {
"domainId": [
{
"mailboxId": "string (UUID)",
"oauthLink": "string (URL)"
}
]
}
}
}| Field | Type | Required | Description |
|---|---|---|---|
| object | Optional | Contains configuration and OAuth links for Google mailboxes. | |
| google.appName | string | Required (if google is provided) | Name of the Google application. |
| google.clientId | string | Required (if google is provided) | Client ID of the Google OAuth app. |
| google.mailboxesPerDomain | object | Required (if google is provided) | Key-value map of domain IDs and mailbox entries. |
| microsoft | object | Optional | Contains configuration and OAuth links for Microsoft mailboxes. |
| microsoft.mailboxesPerDomain | object | Required (if microsoft is provided) | Key-value map of domain IDs and mailbox entries. |
| mailboxId | string (UUID) | Required | Unique identifier for the mailbox. Must be a valid UUID. |
| oauthLink | string (URL) | Required | Valid OAuth authorization link for the mailbox. |
google or microsoft sections must be present.appName and clientId are mandatory.mailboxesPerDomain must:mailboxId.oauthLink.| HTTP Status | When it Happens | Example Message |
|---|---|---|
| 400 Bad Request | One or more requested mailboxIds are not found for the authenticated user, or do not match the user’s serviceProvider or workspace; or Google client/app validation mismatch | Some mailboxes not foundApp name mismatch for client ID <CLIENT_ID>: expected <APP>, got <PROVIDER_APP>Validation failed for client ID <CLIENT_ID>: <provider error> |
| 404 Not Found | Google only: No admin mailbox is available on a domain that needs client ID addition | Admin mailbox not found for domain <DOMAIN_ID> |
| 429 Too Many Requests | Per-mailbox rate limit exceeded (3 in 7 days) | Rate limit exceeded for mailbox '<MAILBOX_ID>'\n Limit is 3 requests per 7 days |
| 422 Unprocessable Entity | Request body fails schema validation (see Validation Rules) | e.g. google.mailboxesPerDomain.<domain>[0].mailboxId must be a valid UUIDAt least one of 'google' or 'microsoft' sections must be provided |
429 Too Many RequestsRate limit exceeded for mailbox '<MAILBOX_ID>'\n Limit is 3 requests per 7 daysoauthLink should be generated dynamically per mailbox from the provider’s OAuth flow.ACTIVE, belong to the authenticated userId and workspaceId and have disableReason = null can be processed.400 Bad Request: Some mailboxes not found.