Klaviyo Get

Klaviyo Get

Certified

Fetch campaign messages by ID

Retrieves campaign messages for the given IDs; fetchType (default FETCH) controls row vs. file output and the task waits ~1s between API calls.

yaml
type: io.kestra.plugin.klaviyo.campaign.messages.Get

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: klaviyo_get_messages
namespace: company.team

tasks:
  - 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

Klaviyo private API Key

Klaviyo Private API Key sent as Klaviyo-API-Key; keep secret.

SubTypestring

Message IDs

Campaign message IDs to fetch; order is preserved.

Defaulthttps://a.klaviyo.com/api

Base URL

Klaviyo API base URL; defaults to https://a.klaviyo.com/api.

DefaultFETCH
Possible Values
STOREFETCHFETCH_ONENONE

Fetch strategy

Controls output: FETCH_ONE first row, FETCH all rows (default), STORE writes all rows to internal storage, NONE skips output.

Reference (ref) of the pluginDefaults to apply to this task.

Single row data

SubTypeobject

All rows data

Fetched row count

Formaturi

URI of stored data