Skip to main content

Analytics & logs

Three distinct surfaces: prebuilt statistics, configurable dashboards, and raw logs.

Statistics

The fastest way to get numbers out of LeadX. Each returns an aggregate, no dashboard setup required.

EndpointCovers
GET /analytics-dashboard/statistics/overviewHeadline figures across the account.
GET /analytics-dashboard/statistics/leadsLead volume, stage distribution, conversion.
GET /analytics-dashboard/statistics/contactsContact growth and sources.
GET /analytics-dashboard/statistics/campaignsCampaign performance.
GET /analytics-dashboard/statistics/messagesMessage volume by channel.
GET /analytics-dashboard/statistics/teamPer-member and per-team activity.
GET /analytics-dashboard/statistics/appsIntegration usage.
GET /analytics-dashboard/statistics/activityActivity timeline.
GET /analytics-dashboard/statistics/revenueRevenue attribution.
curl -G https://api.leadx.in/api/key/protected/analytics-dashboard/statistics/leads \
-H "apikey: $KEY" \
--data-urlencode 'filters={"stage":"Won"}'

These accept the usual filters and date-range query parameters, so the same endpoint serves "this month" and "last quarter".

:::tip Start here If you are building a reporting integration, try the statistics endpoints before assembling anything from raw lists — they do the aggregation server-side. :::

Analytics dashboards

Saved, configurable dashboards made of widgets.

MethodEndpointPurpose
GET / POST/analytics-dashboardList / create dashboards.
GET / PUT / DELETE/analytics-dashboard/:idOne dashboard.
PUT/analytics-dashboard/reorderReorder.
GET / POST/analytics-dashboard/widgetList / create widgets.
GET / PUT / DELETE/analytics-dashboard/widget/:idOne widget.

Classic dashboards

The older CRM home-screen dashboards. Still fully supported.

MethodEndpointPurpose
GET / POST / DELETE/dashboardManage dashboards.
GET / PUT/dashboard/:idOne dashboard.
PUT/dashboard/reorderReorder.
GET/dashboard/presetsPrebuilt layouts to start from.
GET / DELETE/dashboard/widgetList / delete widgets.
GET/dashboard/widget/:idOne widget.

Widget create and update routes are commented out in source — build layouts from /dashboard/presets and configure at the dashboard level.

Message logs

Per-provider delivery records. Every one is a GET and supports the standard pagination and filtering.

EndpointRecords
/logs/smtpSMTP sends
/logs/gmailGmail sends
/logs/sesAmazon SES
/logs/sendgridSendGrid
/logs/postmarkPostmark
/logs/brevoBrevo
/logs/sparkpostSparkPost
/logs/elasticemailElastic Email
/logs/mailchimpMailchimp
/logs/whatsappWhatsApp messages
curl -G https://api.leadx.in/api/key/protected/logs/whatsapp \
-H "apikey: $KEY" \
--data-urlencode 'p=1' --data-urlencode 'n=100' \
--data-urlencode 'sortBy=createdAt' --data-urlencode 'sortOrder=desc'

For campaign-specific results, prefer GET /campaign/:id/recipients — it is the per-recipient report from the send engine and is scoped to one campaign.

Audit and system logs

EndpointPurpose
GET /logsServer request log for your company.
GET /logs/loginLogin history.
GET /logs/inviteMember invitation history.
GET /logs/reportGenerated reports.

GET /logs is genuinely useful when debugging an integration: every API-key request is logged with the key that made it, so you can confirm what your own code sent.

Website visitor tracking

MethodEndpointPurpose
GET / POST / DELETE/domain-trackingManage tracked domains.
GET/domain-tracking/:idOne domain.
GET/domain-tracking/:id/activitiesRecorded visitor activity.

Forms

MethodEndpointPurpose
GET / POST / DELETE/formManage forms.
GET / PUT/form/:idOne form.
PUT/form/:id/statusPublish or unpublish.
GET/form/:id/submissionsSubmissions.

Form submissions create leads automatically, so /form/:id/submissions is for auditing what arrived — you do not need to poll it to get the leads.