Easymailing
Tasks

List tasks

GET /tasks

GET/tasks

Lists CRM tasks with their status, due date, person responsible and the contacts, companies and opportunities they are linked to. With no filters it returns the open tasks assigned to the user who owns the token, the most urgent first (overdue ones on top).

When to use: To answer what is pending: the user's own tasks, overdue tasks, tasks due today or this week, the tasks of a teammate, unassigned tasks, or everything open on one contact, company or opportunity.

When not to use: To read one task whose UUID you know, use get_task. To read the notes of a record, use list_notes. To find a valid person to assign a task to, use list_task_assignees. There is no text search on tasks: narrow by person, record, date, priority or type and read title.

Filters: All filters are optional and combine with AND.

  • assignee: me (the user who owns the token), unassigned, all, or the email of an active user of the account. Default: me, or all when you filter by contact, company or opportunity.
  • include_completed: false (default) returns only open tasks; true returns open and completed tasks. There is no filter for completed tasks only: read status.
  • priority, type: exact value.
  • due_from (inclusive) and due_to (exclusive): bounds of due_at, ISO 8601 with a time zone. Tasks without a due date are left out when either one is sent.
  • contact, company, opportunity: only tasks linked to that record, by its UUID. Send one at most. A UUID that does not exist, or that the user cannot see, gives 404. Overdue tasks: send due_to set to the current instant and leave include_completed out. Tasks due on a given day: due_from at the start of the day and due_to at the start of the next, in the user time zone. Sorting: sort=due (default) puts overdue tasks first, then open tasks by due date, then open tasks without due date, then completed ones (most recently completed first); priority orders from high to none and then by due date; title is alphabetical, ignoring case. There is no sort direction. Pagination: tasks are paged with itemsPerPage (default 30, maximum 50) and an opaque cursor[gt]: to read the next page, call again with the same filters and the cursor[gt] of the hydra:next link of the previous response. The total number of tasks is not returned. Keep following hydra:next until a page comes back empty. hydra:previous takes you back: it carries the cursor[lt] of the first task of the page and returns the page just before it; use it the same way, with the same filters.

Permissions: Requires a CRM seat and the crm.tasks_notes.read capability. A task linked to contacts or companies is only visible to users who also have crm.contacts_companies.read, and a task linked to an opportunity only to users who can see its pipeline; a task the user cannot fully see is treated as if it did not exist.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Query Parameters

itemsPerPage?integer

Tasks per page. Default 30, maximum 50.

Range1 <= value <= 50
Default30
cursor[gt]?string

Opaque cursor of the next page, taken from the hydra:next link of the previous response. Use it only with the same filters.

cursor[lt]?string

Opaque cursor of the previous page, taken from the hydra:previous link of the response. Use it only with the same filters. Do not send it together with cursor[gt].

assignee?string

Whose tasks: me, unassigned, all or the email of an active user of the account.

include_completed?boolean

true to include completed tasks. Default false: only open tasks.

priority?string

Only tasks with this priority.

Value in

  • "none"
  • "low"
  • "normal"
  • "high"
type?string

Only tasks of this type.

Value in

  • "general"
  • "call"
  • "email"
due_from?string

Inclusive lower bound of the due date, ISO 8601 with time zone. Tasks without due date are left out.

Formatdate-time
due_to?string

Exclusive upper bound of the due date, ISO 8601 with time zone. Set to the current instant to get the overdue tasks.

Formatdate-time
contact?string

UUID of a contact: only the tasks linked to it. Cannot be combined with company or opportunity.

Formatuuid
company?string

UUID of a company: only the tasks linked to it. Cannot be combined with contact or opportunity.

Formatuuid
opportunity?string

UUID of an opportunity: only the tasks linked to it. Cannot be combined with contact or company.

Formatuuid
sort?string

Order of the list.

Default"due"

Value in

  • "due"
  • "priority"
  • "title"

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/tasks?itemsPerPage=30&cursor%5Bgt%5D=eyJ2IjoxLCJzIjoiZHVlIn0&cursor%5Blt%5D=eyJ2IjoxLCJzIjoiZHVlIn0&assignee=me&include_completed=false&priority=high&type=call&due_from=2026-11-01T00%3A00%3A00%2B01%3A00&due_to=2026-11-08T00%3A00%3A00%2B01%3A00&contact=3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40&company=7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21&opportunity=5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95&sort=due" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "title": "string",    "description_html": "string",    "status": "open",    "priority": "none",    "type": "general",    "assignee": {      "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",      "name": "string",      "email": "user@example.com"    },    "due_at": "2019-08-24T14:15:22Z",    "overdue": true,    "reminder_offset_minutes": 0,    "reminder_at": "2019-08-24T14:15:22Z",    "completed_at": "2019-08-24T14:15:22Z",    "completed_by": {      "kind": "user",      "name": "string"    },    "created_by": {      "kind": "user",      "name": "string"    },    "initiated_via": "ui",    "contacts": [      {        "iri": "/entity/1",        "label": "string",        "secondary": "string"      }    ],    "companies": [      {        "iri": "/entity/1",        "label": "string",        "secondary": "string"      }    ],    "opportunities": [      {        "iri": "/entity/1",        "label": "string",        "secondary": "string"      }    ],    "version": 0,    "can_edit": true,    "can_delete": true,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]