LeadTaskFilterDTO
Lead task filter request body. Every field is optional — an empty body {} returns
the first page, newest ID first. All fields combine with AND; within one
...Ids/statuses array, values combine with OR.
Page number, 1-based. Min 1.
Possible values: >= 1
11Page size. Min 1, max 100.
Possible values: >= 1 and <= 100
1515orders object
Sort order. Each key is a sort field (see LeadTaskOrderField) and each value a
direction. Keys are applied in the order they appear in the JSON object.
Unless ID is one of the keys, a trailing ID DESC tie-breaker is appended so
paging stays stable. Omit (or send {}) to keep the default — newest ID first.
Possible values: [ASC, DESC]
Partial, case-insensitive match against the task text or close note.
qo'ng'iroqExact task IDs (bulk resync).
[501,502]Lead IDs — a task belonging to any of these leads matches.
[34606]Task type IDs — see GET /v1/open-api/lead-task/types.
[7]Assignee employee IDs.
[95]IDs of the employee who created the task.
[3]IDs of the employee who closed the task.
[95]Filter by statuses. If omitted or empty, all statuses are returned.
Possible values: [OPEN, SUCCESS, FAILED, DELETED]
["OPEN","SUCCESS"]Lower bound for deadlineStartTimestamp (epoch seconds, inclusive).
1730419200Upper bound for deadlineStartTimestamp (epoch seconds, inclusive).
1733011200Lower bound for deadlineFinishTimestamp (epoch seconds, inclusive).
1730419200Upper bound for deadlineFinishTimestamp (epoch seconds, inclusive).
1733011200Lower bound for createdTimestamp (epoch seconds, inclusive).
1733011200Upper bound for createdTimestamp (epoch seconds, inclusive).
Lower bound for closedTimestamp (epoch seconds, inclusive).
Upper bound for closedTimestamp (epoch seconds, inclusive).
Also return deleted tasks.
falseReturn only deleted tasks. Takes precedence over includeDeleted.
falsecustomFields object[]
Custom field conditions — see CustomFieldFilter. Elements combine with AND; one element's values combine with OR.
CRM custom field ID to filter on. Required.
42Field type, decides how the condition is interpreted. Defaults to TEXT.
Possible values: [TEXT, EXTENDED_TEXT, DATE, SELECT, MULTI_SELECT, RADIO, TOGGLE_SWITCH, URL, TAG, LOCATION, COUNTER, ADDRESS, EMPLOYEE, FILE, NUMBER]
TEXTSELECTValues to match (OR between them). Used for every type except NUMBER, and
ignored when hasValue is sent. For ADDRESS send comma-separated Uzbek
place names (see the description above).
["VIP"]Lower bound for NUMBER fields (inclusive). Defaults to 0 when omitted.
1000Upper bound for NUMBER fields (inclusive). Unbounded when omitted.
5000Restrict a NUMBER condition to one currency (optional). When omitted, any currency matches.
24Presence check. true → the lead has any value for this field, false → it has
none. Overrides values / numberStart / numberFinish / currencyId.
trueDeprecated — use leadIds instead.
34606Deprecated — use assignedByIds instead.
95Deprecated — use deadlineStartFrom instead.
Deprecated — use deadlineFinishTo instead.
Deprecated — use statuses instead.
Possible values: [OPEN, SUCCESS, FAILED, DELETED]
fields objectdeprecated
Deprecated — use customFields instead. Custom field ID → value, exact equality; all pairs AND.
{
"page": 1,
"size": 15,
"orders": {
"DEADLINE_FINISH": "ASC"
},
"search": "qo'ng'iroq",
"ids": [
501,
502
],
"leadIds": [
34606
],
"leadTaskTypeIds": [
7
],
"assignedByIds": [
95
],
"createdByIds": [
3
],
"closedByIds": [
95
],
"statuses": [
"OPEN",
"SUCCESS"
],
"deadlineStartFrom": 1730419200,
"deadlineStartTo": 1733011200,
"deadlineFinishFrom": 1730419200,
"deadlineFinishTo": 1733011200,
"createdTimestampFrom": 1733011200,
"createdTimestampTo": 0,
"closedTimestampFrom": 0,
"closedTimestampTo": 0,
"includeDeleted": false,
"deletedOnly": false,
"customFields": [
{
"customFieldId": 42,
"type": "SELECT",
"values": [
"VIP"
],
"numberStart": 1000,
"numberFinish": 5000,
"currencyId": 24,
"hasValue": true
}
]
}