The filter query parameter allows you to retrieve specific records by applying conditional expressions on fields. It supports filtering on numeric, string, date, and primitive fields using various operators. The filter supports AND and OR logical operators to create complex queries.
When filtering on DATE fields, you must pass the localTimeZone query parameter.
Without this, the system may not return the correct records because of timezone differences in date comparison. localTimeZone must be in IANA timezone format (Example: America/Los_Angeles)
API Example for Master Record
API Example for Module Record
Copy GET / api / v1 / module - record / { moduleName } ?p ageSize = 1000 & page = 1 & filter = number2 : gt : 2 : and : email_id : cn : john
Copy fieldName : fieldType : operator : value fieldName: Field to filter on.
fieldType: Supported field types: NUMBER, STRING, DATE PRIMITIVE
operator: Comparison operator (explained below).
value: Value to compare against.
Combining Conditions with:
Copy number1 : eq : 6 : and : number2 : eq : 1 : or : contact : eq : 1234 Translates to: (number1 = 6 AND number2 = 1) OR (contact = 1234)
Supported Operators and Examples
Data Type
Operator
Meaning/Usage
Example
Equals (format: yyyy-MM-dd)
createdDate:eq:2024-03-22 &localTimeZone=America/Los_Angeles
createdDate:ne:2024-03-22&localTimeZone=America/Los_Angeles
createdDate:gt:2024-01-01&localTimeZone=America/Los_Angeles
createdDate:lt:2024-03-01&localTimeZone=America/Los_Angeles
createdDate:ge:2024-02-01&localTimeZone=America/Los_Angeles
createdDate:le:2024-03-31&localTimeZone=America/Los_Angeles
Combining AND and OR Conditions
Logic Type
Symbol
Example
Meaning
number_field_1:eq:6:and:number_field_2:eq:1
Both conditions must be true
number_field_1:eq:6:or:number_field_2:eq:1
Either conditions can be true
Examples of Filter Usage
Example 1 - AND Condition
Records where number_field_1 = 6 AND number_field_2 = 1
Example 2 - OR Condition
Records where number_field_1 = 2124 OR contact = 896543
Example 3 - in Operator (Multiple Values)
Records where number_field_1 is 2 , 10 , or 15
Example 4 - Date Comparison
Records created between March 1, 2024, and March 31, 2024
Example 5 - Null and Not Null Checks
Records where number_field_1 is blank
Records where email_id is not blank
Important Notes
filter is optional but powerful for targeted queries
Use the correct fieldType as per your data model
in: operator values must be separated by | (pipe symbol)
Date format must be YYYY-MM-DD
Supports up to 1,000 records per request
Common Use Cases
Filter by multiple number values
createdDate:ge:2024-03-01:and:createdDate:le:2024-03-31
Match text containing a string
Multiple conditions with AND/OR
number_field_1:eq:10:and:number_field_2:eq:20
number_field_1:eq:10:or:number_field_2:eq:20
The filter parameter provides a flexible querying mechanism with:
Support for AND and OR conditions
Numeric , String , Primitive , and Date field filtering
Range filtering , null checks , and list matching ( in )
Easy filtering by date ranges for audit or time-based queries
Last updated 4 months ago