LeadNoteFilterDTO
Request body for POST /v1/open-api/lead-note/filter. All fields optional except
pagination; an omitted or empty-array filter matches everything. Leads notes have no
custom fields — there is no customFields/fields key here.
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 LeadNoteOrderField) 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.
Omit (or send {}) to sort by ID DESC only.
Possible values: [ASC, DESC]
Case-insensitive partial match on the note text (optional).
callbackFilter by exact note IDs — for bulk re-sync (optional).
[7001,7002]Filter by lead IDs — omit (or empty) for company-wide notes.
[1001]Filter by the employee who wrote the note.
[95]Filter by the employee who deleted the note. Only meaningful with includeDeleted/deletedOnly.
[95]Filter by note type. Omit (or empty) for every type.
Possible values: [SIMPLE, SMS, PHONE]
true — only pinned notes, false — only unpinned, null (omit) — don't filter.
truetrue — only notes with attached files, false — only notes without, null (omit) — don't filter.
trueLower bound (inclusive) for createdTimestamp, epoch seconds (optional).
1730419200Upper bound (inclusive) for createdTimestamp, epoch seconds (optional).
1733011200true — also include soft-deleted notes. Default false.
falsefalsetrue — only soft-deleted notes. Takes precedence over includeDeleted. Default false.
falsefalse{
"page": 1,
"size": 15,
"orders": {
"CREATED_TIMESTAMP": "DESC"
},
"search": "callback",
"ids": [
7001,
7002
],
"leadIds": [
1001
],
"createdByIds": [
95
],
"deletedByIds": [
95
],
"types": [
"SIMPLE"
],
"pinned": true,
"hasFiles": true,
"createdTimestampFrom": 1730419200,
"createdTimestampTo": 1733011200,
"includeDeleted": false,
"deletedOnly": false
}