Skip to main content
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.

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.
If both 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

When format=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.
CSV file columns (in the downloaded file):
  1. Base fields: leadId, firstName, lastName, email, phoneNumber, createdAt, completedAt, notInterestedAt, optedOutAt, message counts, last-touch timestamps
  2. Per-channel: channels.<name>.inbound, channels.<name>.outbound, channels.<name>.lastInboundAt, channels.<name>.lastOutboundAt
  3. Completion: completion.totalRequired, completion.totalCompleted, completion.bySource.*
  4. Interventions: interventions.*
  5. 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
Totals are not included in the CSV. Use format=json for aggregates. Example CSV response:
200

Errors