Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Mailboxes > Accesses > Webmail → Set The Primary Mailbox For The Authenticated User

AI-generated

Summary

Set the primary mailbox for the authenticated user

Inputs

  • authentication — Authentication method to use; either OAuth2 or API Key.
  • path_mailbox_id (required) — The unique identifier (ID) of the email address to set as primary.
  • returnFullResponse — If true, the full API response is returned; otherwise only a success indicator.

Output shape

no body — success/failure only

Returns a confirmation payload when returnFullResponse is true; otherwise just a success/failure indicator.

Examples

Example 1: Set primary mailbox via OAuth2

authentication: oauth2; path_mailbox_id: 42; returnFullResponse: false

Example 2: Set primary mailbox via API Key

authentication: apiKey; path_mailbox_id: 7; returnFullResponse: true

Links

Discussion