Mautic Advanced icon

Mautic Advanced

Consume Mautic API with advanced features

Contact → Get Many

AI-generated

Summary

Retrieve multiple contacts from Mautic with various filtering, sorting, and field selection options.

Inputs

  • authentication — Choose the authentication method: 'Credentials' or 'OAuth2'.
  • returnAll — Boolean to decide whether to return all matching contacts or limit the results.
  • limit — Maximum number of contacts to return when 'returnAll' is false (minimum 1, default 30). Supports automatic pagination up to the limit.
  • options — Additional query options including field selection, search string, ordering, published filter, minimal output, conditional where clauses, 'Do Not Contact' flags filters, and whether to return raw API data.

Output shape

A list of contact records in JSON format, each containing the requested fields.

If 'Return All' is true, the node automatically paginates through all available contacts that meet the criteria. If 'RAW Data' option is true, the full raw API response data is returned; otherwise, only the fields data is returned. Supports complex filtering via nested 'Where' conditions and filters for various 'Do Not Contact' flags. Sorting and field filtering are supported.

Examples

Example 1: Get up to 50 contacts whose email is not null, returning only the id and email fields, sorted by date_created descending.

Set 'returnAll' to false, 'limit' to 50, 'options.where' with a condition for 'email' 'isNotNull', 'options.fieldsToReturn' with 'id' and 'email', 'options.orderBy' set to 'date_created', and 'options.orderByDir' set to 'DESC'.

Discussion