Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Service Mail > Filters Models → Create A Filter Model

AI-generated

Summary

Create a filter model for Infomaniak mail service

Inputs

  • authentication — Authentication method to use; either OAuth2 or API Key.
  • path_mail_hosting_id (required) — Identifier of the mail hosting path; required.
  • body_is_visible (required) — Visibility flag for the filter model body; required.
  • body_name (required) — Name of the filter model; required.
  • bodyParameters — Additional configurable fields for the filter model; includes actions, conditions, has all conditions, script.
  • returnFullResponse — Boolean indicating whether to return the full response body; optional.

Output shape

a filter model object representing the created filter

Returns the created filter model with its generated ID and default fields; may include additional metadata.

Examples

Example 1: Create a visible filter model named "Newsletter" using OAuth2 authentication

authentication=oauth2; path_mail_hosting_id=123; body_is_visible=true; body_name=Newsletter; bodyParameters={}; returnFullResponse=false

Links

Discussion