Tasks

Import a CSV of usage events

Changed on

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

  • Base URL
    https://us.api.flexprice.io/v1
  • URL
    https://us.api.flexprice.io/v1/tasks
  • Auth
    API key in header x-api-key

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