Search leads
rex_search_leadsSearch leads (enquiries from portals, the website and email). Filters (criteria) combine with AND; results are paged with offset/limit (next_offset says where to continue). Useful fields: lead.contact_id, lead.listing_id, lead.property_id, lead.assignee_id, lead.lead_source_id, lead.lead_status_id, lead.system_completed_time, system_ctime. POST /v1/rex/Leads/search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows to return, 1-100 (default 20). | |
| offset | No | Rows to skip (default 0). Use next_offset from the previous reply. | |
| criteria | No | Filters, combined with AND: [{ name, type?, value }]. Only the in type gives an OR. Field names come from rex_describe_search_fields. | |
| order_by | No | Sort, sortable field name to direction, for example { "system_modtime": "DESC" }. Sortable names can differ from search field names (rex_describe_search_fields with include_order_by lists them). | |
| search_state | No | Which records to search: active (default), archive or trash. |