# Acumbamail

> Read your Acumbamail mailing lists with their fields, segments and sign-up forms, and save HTML as email templates.

App · Email Marketing · 5 actions. Web page: https://docs.lodol.com/docs/integrations/acumbamail

## Actions

### Create template

Save HTML as an email template in Acumbamail, ready to build campaigns from. Fill Template to update to overwrite an existing template instead.

**Inputs**

- Template name (`template_name`, text, required): Name the template is listed under.
- HTML content (`html_content`, text, required): The template's HTML.
- Subject (`subject`, text): Subject line a campaign built from it starts with.
- Category (`category`, text): Category to file the template under.
- Template to update (`template_id`, text): Leave empty to create a new template. Enter an existing template's id to overwrite it instead.

**Outputs**

- `category` (text): Category, if one was given
- `subject` (text): Subject, if one was given
- `template_id` (number): Id of the template
- `template_name` (text): Template name
- `updated` (true/false): True when an existing template was overwritten

**Example output**

```json
{
  "category": null,
  "subject": "News from Acme",
  "template_id": 3311,
  "template_name": "Monthly newsletter",
  "updated": false
}
```

### Get forms

List the sign-up forms that add subscribers to a mailing list.

**Inputs**

- List (`list_id`, text, required): The mailing list. Pick one, or type its id or paste its link from Acumbamail.

**Outputs**

- `count` (number): How many forms the list has
- `forms` (list): The list's sign-up forms
- `list_id` (number): List id

**Example output**

```json
{
  "count": 1,
  "forms": [
    {
      "id": 77,
      "name": "Footer sign-up"
    }
  ],
  "list_id": 123456
}
```

### Get list fields

List the fields a mailing list stores for each subscriber, with each field's type.

**Inputs**

- List (`list_id`, text, required): The mailing list. Pick one, or type its id or paste its link from Acumbamail.

**Outputs**

- `count` (number): How many fields the list has
- `fields` (list): The list's fields
- `list_id` (number): List id

**Example output**

```json
{
  "count": 2,
  "fields": [
    {
      "name": "email",
      "type": "email"
    },
    {
      "name": "nombre",
      "type": "text"
    }
  ],
  "list_id": 123456
}
```

### Get list segments

List a mailing list's active segments.

**Inputs**

- List (`list_id`, text, required): The mailing list. Pick one, or type its id or paste its link from Acumbamail.

**Outputs**

- `count` (number): How many segments the list has
- `list_id` (number): List id
- `segments` (list): The list's segments

**Example output**

```json
{
  "count": 1,
  "list_id": 123456,
  "segments": [
    {
      "id": 42,
      "name": "Opened last campaign"
    }
  ]
}
```

### Get lists

List every mailing list in the Acumbamail account, with its id, name and description. An account with no lists returns an empty list.

**Inputs**: None.

**Outputs**

- `count` (number): How many lists there are
- `lists` (list): The account's mailing lists

**Example output**

```json
{
  "count": 1,
  "lists": [
    {
      "description": "",
      "id": 123456,
      "name": "Newsletter"
    }
  ]
}
```
