Mautic Advanced icon

Mautic Advanced

Consume Mautic API with advanced features

Contact → Get Campaigns

AI-generated

Summary

Retrieve all campaigns associated with a specified contact in Mautic by providing the contact's ID and choosing the authentication method.

Inputs

  • Authentication — Select the authentication method to use with the Mautic API — either Credentials or OAuth2. Defaults to Credentials.
  • Contact ID (required) — Specify the unique identifier of the contact whose campaigns you want to fetch.

Output shape

a list of campaign objects linked to the given contact

The output returns an array of campaign data related to the specified contact ID. Errors are handled according to Mautic API responses. Authentication selection affects API access.

Examples

Example 1: Fetch campaigns for a contact

Set 'Contact ID' to the target contact's ID and select appropriate 'Authentication' (Credentials or OAuth2). On execution, returns campaigns where the contact is involved.

Discussion