Warehouse Imports
Create an 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 rows
- event_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)
- databricks_params (object): Databricks-specific cluster configuration (only for Databricks sources)
post/projects/{projectId}/warehouse-sources/imports/event-stream
Path parameters
projectIdinteger required
Your project id (eg: 12345)
Request body
Response
Success
Example response
{
"status": "ok"
}