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 at least one data rowcohort_transformation_file — JSON file that maps CSV columns to phone numbers and agent variablescolumn_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 queued and being validated |
completed | Processing finished; call queue populated |
failed | Processing failed (upload-level error, not row-level) |
status is completed, always check result.rejected_records. Poll:
result.rejected_records > 0, download the file to see which rows failed and why, then fix the data and re-upload:
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