Retrieve campaign messages from Klaviyo
Returns specific messages based on the provided message IDs
yaml
type: "io.kestra.plugin.klaviyo.campaign.messages.Get"Examples
Get a single campaign message
yaml
id: klaviyo_get_message
namespace: company.team
tasks:
- id: get_message
type: io.kestra.plugin.klaviyo.campaign.messages.Get
apiKey: "{{ secret('KLAVIYO_API_KEY') }}"
messageIds:
- "message_id_1"
fetchType: FETCH_ONE
Get multiple campaign messages
yaml
id: "get"
type: "io.kestra.plugin.klaviyo.campaign.messages.Get"
- id: get_messages
type: io.kestra.plugin.klaviyo.campaign.messages.Get
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
SubType string
List of message IDs
Campaign message IDs to retrieve
baseUrl string
Default
https://a.klaviyo.com/apiBase URL
The base URL for the Klaviyo API
fetchType string
Default
FETCH Possible Values
STOREFETCHFETCH_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
SubType object
The rows data
size integer
The size of the rows fetched
uri string
Format
uriThe URI of the stored data