Create task
Create a task with a type, priority, assignee and due date, linked to a candidate.
POST https://cotlet.dev/api/v1/recruiterflow/tasks
Creates one task, as the Create Task form does. task_type is To-do, Call, Email, SMS or LinkedIn Message, or a custom type your admin added. priority is High, Medium, Low or None. due defaults to 3 business days from now at 10:00 AM, Recruiterflow's own default. candidate_id fills Associated With, so the task opens that profile. Several names in assigned_to create a separate task for each person, and each person sees the task in their list. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| title string required | string | What to do, e.g. Send Dana the salary range. |
| task_type enum required | enum | To-do, Call, Email, SMS or LinkedIn Message, or a custom type. |
| priority enum required | enum | High, Medium, Low or None. |
| assigned_to string required | string | Name or email of the user. Default: you. |
| due datetime | datetime | Due date and time. Default: 3 business days from now at 10:00. |
| candidate_id string | string | Candidate to link in Associated With. |
Request
curl -X POST https://cotlet.dev/api/v1/recruiterflow/tasks \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"title","task_type":"To-do","priority":"High","assigned_to":"assigned to"}' result = client.call("recruiterflow", "create_task", {"title":"title","task_type":"To-do","priority":"High","assigned_to":"assigned to"}) const result = await cotlet.call('recruiterflow', 'create_task', {"title":"title","task_type":"To-do","priority":"High","assigned_to":"assigned to"}); cotlet call recruiterflow create_task --data '{"title":"title","task_type":"To-do","priority":"High","assigned_to":"assigned to"}' Example response
{
"task_id": "55120",
"title": "Send Dana the salary range",
"task_type": "Call",
"priority": "None",
"due": "2026-10-29T10:00:00",
"assigned_to": "Dana Reyes",
"linked": {
"type": "candidate",
"id": "772318",
"name": "Dana Whitfield"
}
}