LeadSearchFilter
A reusable set of lead filters (the same filters used by lead search), used here to target a manual sending campaign.
product_idProduct Idrequired
ID of the product (workspace) that owns this record. Most endpoints scope access by product.
id object
Match a single lead by id.
- integer
- null
integer
lead_idsinteger[]
Match a specific set of lead ids.
stage_idsinteger[]
Match leads in any of these stages.
name object
Match by lead name.
- string
- null
string
crm_id object
Identifier of the matching record in the connected external CRM, if any.
- string
- null
string
is_active object
Match by active flag.
- boolean
- null
boolean
is_test object
Match by test flag.
- boolean
- null
boolean
batch_name object
Match by import batch name.
- string
- null
string
tag_idsinteger[]
Match leads having any of these tags.
contact object
Match by a contact value.
- string
- null
string
crm_fields_conditions object
Composite CRM-field conditions (AND/OR with per-field operators).
- CRMFieldsConditionsConfig
- null
operatorCRMFieldsConditionsOperator
Possible values: [AND, OR]
Default value:
ANDconditions object[]
Array [
fieldFieldrequired
operatorCRMFieldConditionOperatorrequired
Possible values: [EQUALS, NOT_EQUALS, IN, NOT_IN, STARTS_WITH, ENDS_WITH, CONTAINS, EXISTS, NOT_EXISTS, IS_EMPTY, IS_NOT_EMPTY]
valueValue
]
LeadSearchFilter
{
"product_id": 0,
"id": 0,
"lead_ids": [
0
],
"stage_ids": [
0
],
"name": "string",
"crm_id": "string",
"is_active": true,
"is_test": true,
"batch_name": "string",
"tag_ids": [
0
],
"contact": "string",
"crm_fields_conditions": {
"operator": "AND",
"conditions": [
{
"field": "string",
"operator": "EQUALS"
}
]
}
}