Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Mailboxes > Auto Reply → Add Auto Reply Model

AI-generated

Summary

Adds an auto‑reply model to a mailbox

Inputs

  • authentication — Authentication method to use for the Infomaniak API (OAuth2 or API Key).
  • path_mail_hosting_id (required) — Unique identifier of the mail hosting to which the mailbox belongs.
  • path_mailbox_name (required) — Username (part before @) of the email address for which the auto‑reply is set.
  • body_is_recurrent (required) — Whether the auto‑reply should be recurrent (repeating).
  • body_message (required) — Message body text for the auto‑reply.
  • body_name (required) — Name or title of the auto‑reply model.
  • body_reply_from_id (required) — Identifier of the email message that triggers the auto‑reply.
  • bodyParameters — Additional parameters for the auto‑reply, such as exclusion lists or schedule settings.
  • returnFullResponse — Whether the operation should return the full API response body.

Output shape

a single auto‑reply model object

Returns the created model; may include pagination or error envelope on failure.

Examples

Example 1: Create a simple recurring auto‑reply for a personal mailbox

authentication: oauth2; path_mail_hosting_id: 12; path_mailbox_name: user@example.com; body_is_recurrent: true; body_message: I am out of office; body_name: Out of Office; returnFullResponse: true

Example 2: Add a non‑recurrent auto‑reply using an API Key with an exclusion list

authentication: apiKey; path_mail_hosting_id: 45; path_mailbox_name: support@company.com; body_is_recurrent: false; body_message: We will respond soon; bodyParameters: body_dont_reply_to newsletter@example.com; body_name: Support Reply

Links

Discussion