List tasks

Your Freshsales tasks, filtered by status and by the deal or contact they belong to.

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

read

Returns tasks with title, due date, status, owner and the deal, contact or account each is related to. Freshsales shows a task only to its owner and its collaborators, so you see your own tasks and the ones shared with you, not the whole team. Read a page at a time with next_cursor.

Parameters

Parameters: list_tasks
NameTypeDescription
filter string required string open, overdue or completed.
deal_id integer integer Only tasks related to this deal.
contact_id integer integer Only tasks related to this contact.
cursor string string next_cursor of the previous page.

Request

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

Example response

JSON

{
  "tasks": [
    {
      "task_id": 8800121,
      "title": "Send revised quote",
      "due": "2026-10-19T10:00:00",
      "status": "open",
      "overdue": true,
      "owner": "Dana Reyes",
      "related_to": {
        "type": "Deal",
        "id": 7000412,
        "name": "Website redesign"
      }
    }
  ],
  "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.