Skip to main content

Filtering Interactions

The interactions endpoint supports powerful filtering options to help you retrieve exactly the data you need. This guide covers common use cases with practical examples.

Filter Parameters

Common Use Cases

Get All WhatsApp Inbound Messages

Retrieve all incoming WhatsApp conversations from patients:

Get Voice Campaign Outbound Calls

Retrieve all outbound calls from campaigns (e.g., no-show recovery, reactivation):

Get All Appointment Reminders

Retrieve WhatsApp appointment reminder conversations:

Get All Inbound Calls

Retrieve all incoming voice calls:

Get Interactions for a Date Range

Retrieve interactions within a specific date range:

Get Interactions by Outcome

Filter by specific outcomes (e.g., new bookings):

Filter by Clinic

Get interactions for a specific clinic:

Combine Multiple Filters

You can combine multiple filters for precise queries:

Pagination

When dealing with large datasets, use pagination:

Iterating Through All Pages


Search by Phone Number

Use the search parameter to find interactions by phone number. Search uses partial matching - any phone number containing your search term will be returned.
The search parameter is case-insensitive and matches any part of the phone number. For example, search=555 will match +1-555-123-4567, 555-1234, etc.

Multi-Outcome Filtering

Filter interactions by multiple outcomes at once using comma-separated values. This is useful for getting all appointment-related interactions in a single request.

Valid Outcome Values

Outcome values are case-sensitive and must be UPPERCASE. Invalid values will return a 400 validation error.

Get All Bookings

A common use case is retrieving all appointment-related interactions from a date range:

Quick Reference: Filter Combinations