Query Search Runs
query_search_runsTo see the people or companies one run found, pass its id to query_agent_people as a
{"column_key": "run", "operator": "is_any_of", "values": [run ids as strings]} filter, for the
people it found still on the agent, or to query_search_results as run_id, for the rows of the
people or companies it found on the list it saved to (none for a 'user_added' run, which saves to
no list). Both include the rejected ones.
A dict with runs and total, the number of matching runs; page with offset += limit while
offset + limit < total. Each run carries id; source, the discovery tool as the
source column of query_search_results names it, or 'user_added' for people the user
added; entity_type, 'person' or 'company', what it looks for, set even when it found
no one; arguments, what the run was called with (for a Websets run, its list's search
settings) and, unless the run's source is 'user_added', list_name, the list it saved
to, even when the call named none; started_at; finished_at, null while a Websets search
is still running; found, the
people or companies it returned, ones the agent already had included; matched and
filtered_out, those whose row in the list the run saved to is qualified or rejected now
(both 0 for people the user added, who get no list row); and new,
those this run brought to the agent: no earlier run returned them and they weren't on
the agent before it started.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Runs per page (default 50, max 200). | |
| offset | No | Runs to skip for paging (default 0). | |
| agent_id | Yes | The agent whose search runs to list. | |
| person_id | No | Only the runs that found this person (the person `id` query_agent_people returns). | |
| company_id | No | Only the runs that found this company (a row's `company_profile_id`). | |
| entity_type | No | Only the runs that look for people ('person') or for companies ('company'); omit for both. | |
| on_behalf_of | No | An agency client's email, from list_agency_clients, to run this call in that client's account: their agents, settings, connected accounts, and credits. Omit it to act on your own account. |