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

write Confirm

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

Parameters: create_task
NameTypeDescription
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
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"}'
Python
result = client.call("recruiterflow", "create_task", {"title":"title","task_type":"To-do","priority":"High","assigned_to":"assigned to"})
Node.js
const result = await cotlet.call('recruiterflow', 'create_task', {"title":"title","task_type":"To-do","priority":"High","assigned_to":"assigned to"});
CLI
cotlet call recruiterflow create_task --data '{"title":"title","task_type":"To-do","priority":"High","assigned_to":"assigned to"}'

Example response

JSON

{
  "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"
  }
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.