Upload cohort
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 row
- `cohort_transformation_file` — JSON file that maps CSV columns to phone numbers and agent variables
Path parameters
org_id
workspace_id
campaign_id
Request
This endpoint expects a multipart form with multiple files.
name
Name of the resource
cohort_file
CSV file containing the cohort data
cohort_transformation_file
JSON file defining how CSV columns map to agent variables
Response
Successful Response
name
Name of the resource
cohort_id
Unique identifier for the cohort
status
Current status
source_type
How the cohort was uploaded
created_by
User who created this resource
created_at
Timestamp when the resource was created (ISO 8601)
updated_at
Timestamp when the resource was last updated (ISO 8601)
result
Processing result with record counts
updated_by
User who last updated this resource
Errors
422
Unprocessable Entity Error