Actions118
- Mailbox Management Actions
- Mailboxes Actions
- Mailboxes > Accesses > Devices Actions
- Mailboxes > Accesses > Invitations Actions
- Mailboxes > Accesses > Webmail Actions
- List User Access And Invitations
- Create Webmail Access
- Set The Primary Mailbox For The Authenticated User
- List Users Having Access
- List Of User Accesses For The Current User
- List Of User Accesses For A Account And A User
- Update Webmail Access
- Delete Webmail Access
- Delete Access To A Mailbox For The Current User
- Mailboxes > Aliases Actions
- Mailboxes > Auto Reply Actions
- Mailboxes > Folders Actions
- Mailboxes > Forwarding Actions
- Mailboxes > Sieve Filters Actions
- Mailboxes > Signatures Actions
- Mailboxes > Users Actions
- Mailing List Actions
- Mailing List > Subscribers Actions
- Service Mail > Auto Reply Actions
- Service Mail > Bimi Actions
- Service Mail > Filters Models Actions
- Service Mail > Preferences Actions
- Service Mail > Redirections Actions
- Service Mail > Redirections > Target Actions
- Service Mail > Signatures Templates Actions
Mailing List > Subscribers → Import Subscribers
AI-generatedSummary
Import a list of subscribers into a specified Infomaniak mailing list.
Inputs
- authentication (required) — Authentication method selecting between OAuth2 or API Key.
- path_mail_hosting_id (required) — Identifier of the mail hosting (mailbox) where the mailing list resides.
- path_mailing_list_name (required) — Name of the mailing list to which subscribers will be imported.
- body_datas (required) — Text containing one subscriber per line in the format "email address, name".
- returnFullResponse — If true, the full API response is returned; otherwise only a success indicator.
Output shape
An object indicating the result of the import operation (e.g., success status, imported count, or full API response when enabled).
The operation does not return subscriber data; it returns control information about the import job.
Examples
Example 1: Add two new subscribers using API Key authentication.
authentication: apiKey
path_mail_hosting_id: 12345
path_mailing_list_name: Newsletter
body_datas: alice@example.com, Alice
bob@example.org, Bob
returnFullResponse: false
Example 2: Import subscribers via OAuth2 and receive the complete API response.
authentication: OAuth2
path_mail_hosting_id: 12345
path_mailing_list_name: Newsletter
body_datas: alice@example.com, Alice
bob@example.org, Bob
returnFullResponse: true
Example 3: Batch import of multiple mailing lists in a workflow.
authentication: apiKey
path_mail_hosting_id: 12345
path_mailing_list_name: Newsletter
body_datas: alice@example.com, Alice
bob@example.org, Bob
returnFullResponse: false