Upload a cohort as multipart form-data with three fields:
name — Cohort name (1–50 characters)cohort_file — CSV file with a header row and data rowscohort_transformation_file — JSON file that maps CSV columns to phone numbers and app variablesThe upload triggers background processing that validates each row and creates individual jobs for valid records. Rows that fail validation are collected into a downloadable rejected records CSV.
column_name values must exist as CSV headersapp_overrides keys must be one of: initial_bot_message, initial_state_name, initial_language_nameapp_variables keys must match the agent’s declared variablesrejected_reason column.
| Status | Description |
|---|---|
processing | Upload is being validated and processed |
completed | Processing finished successfully |
failed | Processing failed |
Successful Response
Cohort metadata including processing status and result counts.
Name of the resource
Unique identifier for the cohort
Current status
processing, completed, failed How the cohort was uploaded
pre_signed_url, file_upload User who created this resource
Timestamp when the resource was created (ISO 8601)
Timestamp when the resource was last updated (ISO 8601)
Processing result with record counts
User who last updated this resource