Retrieve agents for your company, enriched with inspection statistics. Each record represents a single agent (connection) with computed inspection counts, revenue totals, and inspection date ranges.
List agent stats
Returns a paginated list of agents for your company, enriched with inspection statistics. Each record represents a single agent (connection) and includes computed attributes such as inspection counts, revenue (quote totals), and inspection date ranges based on their role as buying or selling agent.
query Parameters
includeComma-separated list of relationships to include in the response. Available relationships: agent_team.
page[number]Page number (starts at 1)
page[size]Number of records per page (default: 200, max: 200)
filter[id]Filter by agent ID (the connection ID for this agent in your company)
filter[agent_id]Filter by the agent's global ID (shared across companies)
filter[fulltext]Full-text search across agent name, agency name, agent team name, and user details
filter[tag]Filter by tag name(s). Can be a single tag or an array of tags.
filter[inspection_datetime_greater_than]Only include inspections on or after this date when computing stats. ISO 8601 format (e.g., '2024-01-01T00:00:00Z').
filter[inspection_datetime_less_than]Only include inspections before this date when computing stats. ISO 8601 format (e.g., '2024-12-31T23:59:59Z').
filter[first_inspection_date_greater_than]Filter agents whose first inspection date is on or after this date. ISO 8601 format.
filter[first_inspection_date_less_than]Filter agents whose first inspection date is before this date. ISO 8601 format.
filter[birthday_greater_than]Filter agents with birthday on or after this date. Must be used together with birthday_less_than. Format: YYYY-MM-DD.
filter[birthday_less_than]Filter agents with birthday before this date. Must be used together with birthday_greater_than. Format: YYYY-MM-DD.
filter[inspection_confirmed]Filter by whether inspections are confirmed. When true, only confirmed inspections are included in stats.
filter[inspection_paid]Filter by whether inspections are paid. When true, only paid inspections are included in stats.
filter[inactive_between][]Find agents with no inspections in a date range. Requires exactly 2 dates (start and end) in ISO 8601 format. Example: filter[inactive_between][]=2024-01-01&filter[inactive_between][]=2024-06-01
sortSort field. Prefix with '-' for descending order. Available fields: first_name, last_name, phone, agency_name, birthday, buying_inspections_count, selling_inspections_count, total_inspections_count, buying_inspections_quote, selling_inspections_quote, total_inspections_quote, first_inspection_date, last_inspection_date
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
List agent stats › Responses
Agent stats retrieved successfully
Pagination metadata
Pagination links

