> 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).

# Get Campaign

- Component: `appmixer.woodpecker.core.GetCampaign`
- 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.GetCampaign>

Retrieve a single campaign by its ID.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Campaign ID (`campaignId`) | text | The ID of the campaign to retrieve. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Campaign ID (`id`) | integer | - |
| Name (`name`) | string | - |
| Status (`status`) | string | - |
| Created (`created`) | string | - |
| From Name (`from_name`) | string | - |
| Timezone (`timezone`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.woodpecker.core.GetCampaign",
  "label": "Get Campaign",
  "description": "Retrieve a single campaign by its ID.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:woodpecker"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "campaignId": {
            "type": "string"
          }
        },
        "required": [
          "campaignId"
        ]
      },
      "inspector": {
        "inputs": {
          "campaignId": {
            "type": "text",
            "label": "Campaign ID",
            "index": 1,
            "tooltip": "The ID of the campaign to retrieve."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "title": "Campaign ID",
            "example": 12345
          },
          "name": {
            "type": "string",
            "title": "Name",
            "example": "Q1 Outreach"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "example": "RUNNING"
          },
          "created": {
            "type": "string",
            "title": "Created",
            "example": "2025-01-15T10:30:00Z"
          },
          "from_name": {
            "type": "string",
            "title": "From Name",
            "example": "Jane Doe"
          },
          "timezone": {
            "type": "string",
            "title": "Timezone",
            "example": "America/New_York"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
