Quick start
Search with query parameter
Thequery parameter performs full-text search across relevant fields:
Advanced filtering
Filter syntax
Filters use the format:filter.field.operator=value
Available operators
String operators
Number operators
Date operators
Array operators
Boolean operators
Filtering examples
Field selection
Use theselect[] parameter to specify which fields to include in the response:
Basic field selection
Nested field selection
Use dot notation for nested fields:Performance benefits
Field selection reduces payload size and improves performance:Complex filter combinations
Example 1: Sales qualified leads
Find high-value leads from specific industries:Example 2: Email campaign targets
Find contacts for an email campaign:Example 3: Data cleanup
Find potentially duplicate contacts:Special filters
Null and empty values
Date ranges
Pattern matching
Filter limits and performance
Best practices
- Use indexes: Filter on indexed fields (id, email, createdAt) for better performance
- Limit results: Always use pagination with filters
- Select fields: Only request fields you need
- Combine wisely: Too many filters can slow queries
Performance tips
Common use cases
1. Segmentation
2. Time-based queries
3. Data export
Troubleshooting
Common issues
- Invalid operator: Ensure the operator is valid for the field type
- Field not found: Check field names and nested paths
- Type mismatch: Ensure filter values match the field type
- Special characters: URL-encode special characters in filter values