Skip to main content
TasksVersion: 2021-04-15

Search Tasks

POST/projects/tasks/search

Searches tasks across the location with filters, sort, free-text query, and optional subtaskViewMode. Requires limit; pass body searchAfter from the previous response searchAfter (opaque base64url string) for the next page. Scope to lists with listIds (max 10) — do not send a separate graph filter when using listIds. Filter subtasks with parentTaskId (Tasks V2 locations only; otherwise 422). subtaskViewMode=expanded returns embedded subtasks[]; separate may include parentName. Neither field appears on Get/Create/Update/List/Batch. total is the hit count after filters and access scope.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:projects/tasks.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Query Parameters

locationIdstring

Location id. Required for channel: APP. Ignored for OAuth/PIT — those use the location on the auth token. Do not send in path, body, or headers.

Example:ve9EPM428h8b87FE9C12Kg

Body

limitnumberrequired

Maximum number of tasks per page

Possible values: >= 1 and <= 100

Example:25
searchAfterProjectsTaskCursor

Opaque searchAfter from the previous response searchAfter (base64url-encoded JSON array). Pass the string back verbatim. A legacy decoded JSON array is also accepted.

Example:WzE3Mzg2ODM4MjgzNzIsIjY3YTIzNWI0OWIyODk0MzFiY2Y2NTdmOCJd
querystring

Free-text search across searchable task properties (max 75 characters)

Possible values: <= 75 characters

Example:follow up
filtersobject[]

Prefer listIds to scope a query to lists. Otherwise each item is a Filter (field, operator, value) or a GroupFilter (group: AND | OR, nested filters). Operators: eq, not_eq, gt, gte, lt, lte, contains, not_contains, contains_set, range, nested, exists, not_exists. Task fields: status, assignees, parentTaskId, dueDate, startDate, createdAt, updatedAt, contactId, businessId, plus custom-field keys. Unknown field or operator is rejected by search (422). Groups may nest. Do not combine listIds with a graph filter.

Example
[
  {
    "group": "AND",
    "filters": [
      {
        "field": "status",
        "operator": "eq",
        "value": "to_do"
      }
    ]
  },
  {
    "field": "updatedAt",
    "operator": "gte",
    "value": "2026-09-01T00:00:00.000Z"
  }
]
listIdsstring[]

List ids to scope the search (max 10). Equivalent to one nested graph filter (type=list, id eq or contains_set). More than 10 ids, a non-list target, or a second graph scope returns 422 (error: graph_scope_invalid).

Possible values: <= 10

Example:["6a58be26653cd983b7d3d437"]
sortobject[]

Sort order applied before pagination

Example
[
  {
    "field": "dueDate",
    "direction": "asc"
  }
]
subtaskViewModestring

How subtasks appear. Allowed: collapsed (parents only), expanded (parents with embedded subtasks[]), separate (subtasks as their own records with parentTaskId / parentName). Requires a Tasks V2 / Kanban location. On any other location this field, or a parentTaskId filter, returns 422. parentName and subtasks are search-only — Get Task By ID, Get Tasks, and Fetch Tasks By IDs do not populate them. total is the hit count after filters and access scope (post-RBAC). Page with searchAfter until it is null.

Available optionscollapsedexpandedseparate
Example:collapsed

Response

Successful response

tasksobject[]required

Matching tasks

totalnumberrequired

Total matching count

Example:1
searchAfterstringnullable

Opaque searchAfter (base64url-encoded JSON array, typically [sortValue, taskId]). Pass back verbatim as Search Tasks body searchAfter or Get Tasks query searchAfter. null when there is no further page.

Example:WzE3Mzg2ODM4MjgzNzIsIjY3YTIzNWI0OWIyODk0MzFiY2Y2NTdmOCJd