Analytics
Get Analytics
Fetch aggregate totals and per-lead analytics for your workspace
GET
Returns aggregate totals and a per-lead breakdown for leads in your workspace. Results are scoped to the API key’s workspace and exclude deleted and test leads.
If both
CSV file columns (in the downloaded file):
Query Parameters
string
ISO 8601 datetime (e.g.
2026-03-14T00:00:00Z). Filters leads by createdAt.string
ISO 8601 datetime. Must be on or after
start when both are provided.string
default:"json"
Response format. Either
json or csv. When csv, the response is a JSON object with a signed downloadUrl pointing to a CSV file hosted on S3.string
Pagination token returned as
nextToken on a prior request. Only used when format=json. Omit on the first request.start and end are omitted, all leads in the workspace are returned.
JSON responses are capped at 500 leads per page. Use nextToken to fetch the next page.
Response
string
Echo of the start of the date range
string
Echo of the end of the date range
string
Pagination token for the next page.
null when no more leads remain. Pass back as the token query param to fetch the next page.object
Workspace-wide aggregates over all leads matching the filter.
array
Array of per-lead analytics objects.
Source values
CSV format
Whenformat=csv, the response is a JSON object with a signed URL to download the CSV file from S3. The URL expires after 1 hour.
Response fields:
string
Signed S3 URL to download the CSV file. Expires in 1 hour.
string
ISO timestamp when the signed URL expires.
- Base fields:
leadId,firstName,lastName,email,phoneNumber,createdAt,completedAt,notInterestedAt,optedOutAt, message counts, last-touch timestamps - Per-channel:
channels.<name>.inbound,channels.<name>.outbound,channels.<name>.lastInboundAt,channels.<name>.lastOutboundAt - Completion:
completion.totalRequired,completion.totalCompleted,completion.bySource.* - Interventions:
interventions.* - Checklist items (index-based, sorted by group order then item order, padded to the maximum count across all leads):
checklist.<i>.code,checklist.<i>.required,checklist.<i>.status,checklist.<i>.value,checklist.<i>.updatedAt,checklist.<i>.source
format=json for aggregates.
Example CSV response:
200