Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Mailboxes > Accesses > Webmail → Create Webmail Access

AI-generated

Summary

Create a webmail access for a mailbox.

Inputs

  • authentication — Authentication method: OAuth2 or API Key.
  • path_service_mail (required) — Mail hosting ID to associate with the access.
  • path_mailbox_name (required) — Email username (part before @) for the mailbox.
  • body_user_id (required) — User ID of the mailbox owner.
  • bodyParameters — Optional additional parameters such as permissions.
  • returnFullResponse — If true, the full API response is returned; otherwise only success/failure.

Output shape

A JSON object with the created webmail access details (e.g., ID, email, permissions) when returnFullResponse is true; otherwise a simple success indicator.

May include pagination or error envelopes in actual responses.

Examples

Example 1: Add a new webmail access using API Key for mailbox john.doe@example.com.

authentication=apiKey, path_service_mail=5, path_mailbox_name=john.doe, body_user_id=12345, bodyParameters={permissions:{read:true,write:false}}

Links

Discussion