Skip to main content
TeamCare APIs support flexible filtering through a q parameter sent in the request body. The q parameter is a JSON object that lets you narrow results using comparisons, ranges, and text matching.

Supported filter specifiers

Use the date specifiers for filtering by date or numeric ranges. Use in to match against an array of allowed values. Use cont for partial string matches and eq for exact matches.

Filtering appointments by date range

The example below filters appointments to return only those scheduled between January 1, 2024, and January 31, 2024.
Include this JSON object in the request body when calling endpoints that support filtering, such as /appointments, /patients, /treatments, /ledger/transactions, and /patients/referrals.
Combine multiple specifiers in the same q object to create precise filters.