List tasks

Tasks from Calendar, filtered by lead, responsible user or status.

GET https://cotlet.dev/api/v1/kommo/tasks

read

Returns tasks ordered by deadline, with type, comment, deadline, responsible user and the lead or contact each one is linked to. Follow next_cursor until it is null. Kommo tasks are linked to a lead or a contact, so a task with neither is not returned.

Parameters

Parameters: list_tasks
NameTypeDescription
lead_id integer integer Only tasks of this lead.
responsible_user_id integer integer Only tasks of this user.
status string string upcoming, overdue or completed. Default upcoming.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/kommo/tasks \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("kommo", "list_tasks")
Node.js
const result = await cotlet.call('kommo', 'list_tasks');
CLI
cotlet call kommo list_tasks

Example response

JSON

{
  "tasks": [
    {
      "task_id": 5530101,
      "lead_id": 24518377,
      "type": "Follow-up",
      "comment": "Ask about the loyalty app scope",
      "deadline": "2026-10-19T12:00:00+02:00",
      "responsible": {
        "user_id": 9102334,
        "name": "Anna Berg"
      },
      "status": "overdue"
    }
  ],
  "next_cursor": null
}

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.