post
https://{regionAndDomain}.com/api/app/projects//warehouse-sources/imports/event-stream
Create a new warehouse import for event data.
Event stream imports sync event data from your warehouse table to Mixpanel. Each row in your table becomes an event in Mixpanel.
Sync Modes
- time_based: Incrementally syncs new rows based on an insert time column
- mirror_mode: Detects changes in the source table and mirrors them to Mixpanel
- full_sync: Re-syncs all data on each run
- one_time: Syncs data once and does not repeat
Required Column Mappings
You must specify either:
event_name: A static event name for all rowsevent_column_name: The column containing the event name
For B2B projects, company_column_name is also required.
Scheduling
- run_every (integer): Sync frequency in nanoseconds. Common values:
- Trigger via API:
0 - Hourly:
3600000000000(60 * 60 * 10^9) - Daily:
86400000000000(24 * 60 * 60 * 10^9) - Weekly:
604800000000000(7 * 24 * 60 * 60 * 10^9)
- Trigger via API:
- databricks_params (object): Databricks-specific cluster configuration (only for Databricks sources)