Fetch aggregate totals and per-lead analytics for your workspace
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.Documentation Index
Fetch the complete documentation index at: https://docs.getomni.ai/llms.txt
Use this file to discover all available pages before exploring further.
2026-03-14T00:00:00Z). Filters leads by createdAt.start when both are provided.json or csv. When csv, the response is a JSON object with a signed downloadUrl pointing to a CSV file hosted on S3.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.
null when no more leads remain. Pass back as the token query param to fetch the next page.| Source | Origin |
|---|---|
agent | AI agent via tool calls |
imported | Public REST API calls |
manual | Human team member direct edits |
portal | Customer self-service via portal |
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:
leadId, firstName, lastName, email, phoneNumber, createdAt, completedAt, optedOutAt, message counts, last-touch timestampschannels.<name>.inbound, channels.<name>.outbound, channels.<name>.lastInboundAt, channels.<name>.lastOutboundAtcompletion.totalRequired, completion.totalCompleted, completion.bySource.*interventions.*checklist.<i>.code, checklist.<i>.required, checklist.<i>.status, checklist.<i>.value, checklist.<i>.updatedAt, checklist.<i>.sourceformat=json for aggregates.
Example CSV response:
| Status | Cause |
|---|---|
| 400 | Missing or invalid query parameters (e.g., non-ISO date, start after end, unrecognized param) |
| 401 | Missing or invalid API key |