Warehouse Imports
Create Event Stream Import
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. Allowed 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)
POST
Create an event stream import
Authorizations
Service Account
Path Parameters
Your project id (eg: 12345)
Body
application/json
Available options:
event_stream Table location parameters (structure depends on warehouse type)
Available options:
time_based, mirror_mode, full_sync, one_time Required for B2B projects. The column containing the company identifier.
Sync frequency in nanoseconds. Only these values are accepted:
0- API-triggered only (use the manual-sync endpoint to trigger)3600000000000- Hourly86400000000000- Daily604800000000000- Weekly
Available options:
0, 3600000000000, 86400000000000, 604800000000000 Create an event stream import