Mautic Advanced icon

Mautic Advanced

Consume Mautic API with advanced features

Contact → Add to Campaigns

AI-generated

Summary

Add an existing contact to one or more specified campaigns in Mautic.

Inputs

  • Authentication — Choose the authentication method: Credentials or OAuth2.
  • Contact ID (required) — Specify the ID of the contact to add to campaigns.
  • Campaign IDs (required) — Select one or more campaign IDs to which the contact will be added. You can choose from the list or specify IDs using an expression.

Output shape

The operation returns the response from the Mautic API indicating the result of adding the contact to the specified campaigns, typically including success confirmation or error details.

Campaign IDs are loaded dynamically via the getCampaigns method. Errors from the API will surface if the contact ID or campaign IDs are invalid or unauthorized. No pagination applies as this operation targets a single contact with multiple campaigns.

Examples

Example 1: Add contact ID 123 to campaigns with IDs 10 and 20 using OAuth2 authentication

Set Authentication to OAuth2, Contact ID to '123', and Campaign IDs to ['10','20'].

Discussion