Upload cohort
Upload a cohort of users for a deployment. When a known user calls in, the agent receives their personalized variables (name, balance, language, etc.) for a tailored conversation.
Upload as multipart form-data with three fields:
- `name` — Cohort name (1–50 characters)
- `cohort_file` — CSV file with a header row and user data
- `cohort_transformation_file` — JSON file that maps CSV columns to phone numbers and agent variables
Path parameters
org_id
workspace_id
deployment_id
Request
This endpoint expects a multipart form with multiple files.
name
Cohort name (1-50 characters)
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