GetCampaign
Retrieve campaigns for campaign messages
Return the related campaigns for given campaign message IDs
type: "io.kestra.plugin.klaviyo.campaign.messages.GetCampaign"Examples
Get campaign for a single message
id: klaviyo_get_campaign_for_message
namespace: company.team
tasks:
- id: get_campaign
type: io.kestra.plugin.klaviyo.campaign.messages.GetCampaign
apiKey: "{{ secret('KLAVIYO_API_KEY') }}"
messageIds:
- "message_id_1"
fetchType: FETCH_ONE
Get campaigns for multiple messages
id: "getcampaign"
type: "io.kestra.plugin.klaviyo.campaign.messages.GetCampaign"
- id: get_campaigns
type: io.kestra.plugin.klaviyo.campaign.messages.GetCampaign
apiKey: "{{ secret('KLAVIYO_API_KEY') }}"
messageIds:
- "message_id_1"
- "message_id_2"
fetchType: FETCH
Properties
apiKey *Requiredstring
Klaviyo private API Key
The API key for authenticating with Klaviyo.
messageIds *Requiredarray
List of message IDs
Campaign message IDs for which to retrieve related campaigns
baseUrl string
https://a.klaviyo.com/apiBase URL
The base URL for the Klaviyo API
fetchType string
FETCHSTOREFETCHFETCH_ONENONEThe way you want to store the data
FETCH_ONE output the first row, FETCH output all rows, STORE store all rows in a file, NONE do nothing
Outputs
row object
The row data
rows array
The rows data
size integer
The size of the rows fetched
uri string
uriThe URI of the stored data