Not contacted in 48 hours
{ "tool": "query_records", "type": "contact", "filters": [{ "field": "lifecycle", "op": "in", "value": ["lead", "prospect"] }, { "field": "doNotContact", "op": "eq", "value": false }, { "field": "lastContactedAt", "op": "lt_or_null", "value": "now-48h" }], "sort": "lastContactedAt:asc:nulls_first", "fields": ["fullName", "email", "lastContactedAt", "organizations"] }curl -sg "https://api.mety.ai/api/v1/contacts?filter[lifecycle][in]=lead,prospect&filter[doNotContact][eq]=false&filter[lastContactedAt][lt_or_null]=now-48h&sort=lastContactedAt:asc:nulls_first&fields=fullName,email,lastContactedAt,organizations" \ -H "Authorization: Bearer $METY_KEY"Why it works:
lt_or_nullmatches “older than 48 hours or never set”. Plainltwould skip the leads nobody ever contacted, usually the ones that matter most.nulls_firstputs the never-contacted at the top.doNotContact eq falserespects people who asked not to be contacted.lastContactedAtmoves only for emails, calls, meetings and messages that are not internal: a note does not count as contact.
For just the count, pipeline_metrics returns totals.staleContacts48h with the same definition.
Run it on a schedule with an API key, and send Mety-Agent-Run (for example stale-48h-2026-11-15) so the people
can see what each run did.