> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# List Campaigns

- Component: `appmixer.woodpecker.core.ListCampaigns`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.woodpecker 1.1.2](https://connectors.appmixer.com/connector/appmixer.woodpecker/1.1.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.woodpecker/1.1.2/component/appmixer.woodpecker.core.ListCampaigns>

List all campaigns in your Woodpecker account. Returns up to the maximum page size (50 campaigns) per call.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Status (`status`) | select | Optionally filter campaigns by status. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/woodpecker/core/ListCampaigns?outPort=out&ignoreAuth=true`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.woodpecker.core.ListCampaigns",
  "label": "List Campaigns",
  "description": "List all campaigns in your Woodpecker account. Returns up to the maximum page size (50 campaigns) per call.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:woodpecker"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "outputType": {
            "type": "string"
          }
        }
      },
      "inspector": {
        "inputs": {
          "status": {
            "type": "select",
            "label": "Status",
            "index": 1,
            "tooltip": "Optionally filter campaigns by status.",
            "options": [
              {
                "label": "All",
                "value": ""
              },
              {
                "label": "Running",
                "value": "RUNNING"
              },
              {
                "label": "Paused",
                "value": "PAUSED"
              },
              {
                "label": "Completed",
                "value": "COMPLETED"
              },
              {
                "label": "Draft",
                "value": "DRAFT"
              },
              {
                "label": "Stopped",
                "value": "STOPPED"
              }
            ]
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 2,
            "defaultValue": "array",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file.",
            "options": [
              {
                "label": "First Item Only",
                "value": "first"
              },
              {
                "label": "All items at once",
                "value": "array"
              },
              {
                "label": "One item at a time",
                "value": "object"
              },
              {
                "label": "Store to CSV file",
                "value": "file"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/woodpecker/core/ListCampaigns?outPort=out&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
