Authentication

A service account is necessary to authenticate Warehouse Connectors API requests. Once you have created a service account and obtained your user name and secret, you can make a request to trigger a warehouse import.

curl -X PUT https://mixpanel.com/api/app/projects/<your_project_id>/warehouse-sources/imports/<your_import_id>/manual-sync \
	--user "<serviceaccount_username>:<serviceaccount_secret>"
curl -X PUT https://mixpanel.com/api/app/projects/<your_project_id>/warehouse-sources/imports/<your_import_id>/manual-sync \
	--header 'authorization: Basic <serviceaccount_username>:<serviceaccount_secret>'
import requests
requests.put(
  'https://mixpanel.com/api/app/projects/<your_project_id>/warehouse-sources/imports/',
  auth=('<serviceaccount_username>', '<serviceaccount_secret>'),
)