Menu · Leads
Leads

Get a lead's activity

GEThttps://api.ruuster.com/v1/leads/{leadId}/activity

What one lead did, by day, week or month, and optionally the individual events (the same events webhooks send).

  • Authentication: x-api-key and x-email headers of an owner or admin
  • Rate limit: 120 requests per minute per key
View as Markdown

Path parameters

Name Type Description
leadId string user:<uuid> or unregistered:<uuid>, exactly as returned in leadId

Query parameters

Name Type Default Description
from date 30 days before to First day, YYYY-MM-DD in America/Chicago, included
to date today Day after the last day, YYYY-MM-DD, excluded
granularity string day day, week (Monday start) or month
events 0 | 1 0 1 adds the lead's individual events from the last 30 days, newest first, 500 per page. This part is a lookup call
cursor string meta.nextCursor from the previous page of events

Response

Each bucket in data.series, and data.totals, contain actions, propertyViews, favorites, savedSearchEvents, searches, emailsSent, emailOpens, emailClicks, tourRequests, contactAgentClicks, logins and shares, plus firstAt and lastAt per bucket.

  • actions counts recorded activities: listing views, searches, favorites, saved-search changes, tour and contact requests, sign-ins, shares, and human email opens and clicks. Other browsing isn't counted.
  • Email opens and clicks leave out opens that look automated, such as mail scanners and security tools. That filter is best-effort. emailsSent, emailOpens and emailClicks are counted on the day the email was sent.

With events=1, data.events lists events with id, kind, at and the same fields as the matching webhook. Kinds: lead.property_view, lead.favorite, lead.saved_search_created, lead.saved_search_updated, lead.search, lead.email_open, lead.email_click, lead.tour_request, lead.contact_agent, lead.login, lead.share, lead.email_status_changed. The property object names any listing involved, yours or not, by propertyId, mlsRecordId, mlsName and address, with ownedByYou; Get a listing returns its details and photos. See Event catalog.