# Moosend

> Report audience health and campaign results, and inspect the email content associated with those results.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/moosend

## Actions

### Get campaign content

Read campaign content, sender and configuration. This endpoint does not include campaign statistics.

**Inputs**

- Campaign ID (`campaign_id`, text, required): Campaign ID from List campaigns.

**Outputs**

- `data` (object): The response from Moosend.

**Example output**

```json
{
  "data": {
    "Code": 0,
    "Context": {
      "HTMLContent": "<p>Product update</p>",
      "ID": "campaign_example",
      "Name": "Product update",
      "PlainContent": "Product update",
      "Sender": {
        "Email": "updates@example.com",
        "ID": "sender_example",
        "Name": "Example Company"
      },
      "Status": 3,
      "Subject": "New features"
    },
    "Error": null
  }
}
```

### List campaigns

Read one page of campaigns with delivery status and aggregate performance metrics.

**Inputs**

- Page (`page`, number, required): Page number, starting at 1. At least 1.
- Page size (`page_size`, number, required): Number of campaigns per page, at most 1,000. From 1 to 1000.
- Sort by (`sort_by`, text): Sort by. One of: `Name`, `Subject`, `Status`, `DeliveredOn`, `CreatedOn`.
- Sort method (`sort_method`, text): Sort method. One of: `ASC`, `DESC`.

**Outputs**

- `data` (object): The response from Moosend.

**Example output**

```json
{
  "data": {
    "Code": 0,
    "Context": {
      "Campaigns": [
        {
          "CreatedOn": "/Date(1767355200000+0000)/",
          "ID": "campaign_example",
          "Name": "Product update",
          "Status": 3,
          "Subject": "New features",
          "TotalBounces": 1,
          "TotalSent": 100,
          "UniqueLinkClicks": 12,
          "UniqueOpens": 45
        }
      ],
      "Paging": {
        "CurrentPage": 1,
        "PageSize": 20,
        "TotalPageCount": 1,
        "TotalResults": 1
      }
    },
    "Error": null
  }
}
```

### List mailing lists

Read one page of active mailing lists, subscriber totals and delivery-health counts.

**Inputs**

- Page (`page`, number, required): Page number, starting at 1. At least 1.
- Page size (`page_size`, number, required): Number of records to return. At least 1.
- Sort by (`sort_by`, text): Sort by. One of: `Name`, `Subject`, `Status`, `DeliveredOn`, `CreatedOn`.
- Sort method (`sort_method`, text): Sort method. One of: `ASC`, `DESC`.

**Outputs**

- `data` (object): The response from Moosend.

**Example output**

```json
{
  "data": {
    "Code": 0,
    "Context": {
      "MailingLists": [
        {
          "ActiveMemberCount": 100,
          "BouncedMemberCount": 1,
          "ID": "list_example",
          "Name": "Product updates",
          "Status": 0,
          "UnsubscribedMemberCount": 2
        }
      ],
      "Paging": {
        "CurrentPage": 1,
        "PageSize": 20,
        "TotalPageCount": 1,
        "TotalResults": 1
      }
    },
    "Error": null
  }
}
```
