Klaviyo API Configuration
Request
POST https://api.fivetran.com/v1/connections
{
"group_id": "group_id",
"service": "klaviyo",
"trust_certificates": true,
"trust_fingerprints": true,
"run_setup_tests": true,
"paused": false,
"pause_after_trial": false,
"sync_frequency": 1440,
"data_delay_sensitivity": "NORMAL",
"data_delay_threshold": 0,
"daily_sync_time": "14:00",
"schedule_type": "auto",
"connect_card_config": {
"redirect_uri": "https://your.site/path",
"hide_setup_guide": true
},
"proxy_agent_id": "proxy_agent_id",
"private_link_id": "private_link_id",
"networking_method": "Directly",
"hybrid_deployment_agent_id": "hybrid_deployment_agent_id",
"config": {
"historic_sync_time_frame": "THREE_MONTHS | SIX_MONTHS | ONE_YEAR | TWO_YEARS | FIVE_YEARS | ALL_TIME",
"historical_sync_limit_date": "2011-01-01",
"historical_sync_limit": "ALL_TIME | DATE_LIMIT",
"packing_mode": "PACKED | UNPACKED",
"api_key": "xxxxxxxxxxxxxxxx",
"should_sync_events_with_deleted_profiles": true,
"schema": "schema_name"
}
}
Config parameters
Name | Description |
---|---|
historic_sync_time_frame | Range of data in history you would like to include in the initial sync. Default value: ALL_TIME . |
historical_sync_limit_date | The start date (YYYY-MM-DD) from which to sync historical data. |
historical_sync_limit | The time range for which historical data should be synced. Default value: All Time . |
packing_mode | Packing mode for EVENT and PERSON tables. |
api_key | Your Klaviyo API key. |
should_sync_events_with_deleted_profiles | Sync events linked to deleted profiles |
schema | Destination schema name. Schema name is permanent and cannot be changed after connection creation |
Authorization
There are two ways to authorize this connector type:
By specifying the value for the
api_key
parameter in the request.POST https://api.fivetran.com/v1/connections
{ "service": "klaviyo", "group_id": "group_id", "config": { "api_key": "xxxxxxxxxxxxxxxx" } }
By using the Connect Card or the Fivetran dashboard.