Tasks

Import a CSV of usage events

Use to submit a CSV of usage events for async ingestion. The CSV must already have been uploaded to the Flexprice-managed imports bucket (currently via CSV Box) — pass the upload_id and the backend fetches the file from S3 and streams rows into ClickHouse. Returns the task ID and Temporal workflow IDs for polling.

post/tasks

Request body

entity_type'EVENTS' | 'PRICES' | 'CUSTOMERS' | 'FEATURES' required
file_namestring
file_providerstring required
file_type'CSV' | 'JSON' required
metadataobject
task_type'IMPORT' | 'EXPORT' required
upload_idstring required

Response

OK

messagestring
run_idstring
workflow_idstring

Changes