Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Service Mail > Auto Reply → Create Auto Reply

AI-generated

Summary

Create a new auto‑reply rule for Infomaniak Mail

Inputs

  • authentication — Authentication method to use for the Infomaniak Mail API (OAuth2 or API Key)
  • path_mail_hosting_id (required) — Identifier of the mail hosting (service mail) to which the auto‑reply applies
  • body_is_recurrent (required) — Whether the auto‑reply should be active on specific days of the week
  • body_message (required) — Message body of the auto‑reply
  • body_name (required) — Name assigned to the auto‑reply rule
  • bodyParameters — Additional body fields such as don't‑reply‑to, start/end times, visibility, recurrent days, and start time
  • returnFullResponse — If true, the full response object is returned; otherwise only a summary is returned

Output shape

A record representing the newly created auto‑reply rule

When returnFullResponse is true the complete rule object is returned; otherwise only an identifier or success indicator is provided. Errors are returned with validation details.

Examples

Example 1: Create a simple recurring auto‑reply

authentication=oauth2; path_mail_hosting_id=5; body_is_recurrent=true; body_message= "Out of office"; body_name= "Office Hours"; bodyParameters={}; returnFullResponse=false

Example 2: Create a non‑recurrent one‑time auto‑reply

authentication=oauth2; path_mail_hosting_id=5; body_is_recurrent=false; body_message= "Message received"; body_name= "Received"; bodyParameters={}; returnFullResponse=true

Example 3: Create an auto‑reply with full response returned

authentication=apiKey; path_mail_hosting_id=12; body_is_recurrent=true; body_message= "Thanks for contacting us"; body_name= "Thank you"; bodyParameters={"dontReplyTo":["user@example.com"]}; returnFullResponse=true

Links

Discussion