Skip to main content
The FirstQuadrant API provides powerful filtering capabilities to help you find exactly the data you need. This guide covers search queries, advanced filters, and field selection.

Quick start

Search with query parameter

The query parameter performs full-text search across relevant fields:
The search is case-insensitive and searches across multiple fields depending on the resource type.

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 the select[] 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

  1. Use indexes: Filter on indexed fields (id, email, createdAt) for better performance
  2. Limit results: Always use pagination with filters
  3. Select fields: Only request fields you need
  4. 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

  1. Invalid operator: Ensure the operator is valid for the field type
  2. Field not found: Check field names and nested paths
  3. Type mismatch: Ensure filter values match the field type
  4. Special characters: URL-encode special characters in filter values

Debugging tips