Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Insights

Get high-level analytics about your CRM activity, including contact growth, activity volume, and period-over-period comparisons.

Endpoint: insights-overview

FieldTypeRequiredDescription
start_datestringNoPeriod start (YYYY-MM-DD)
end_datestringNoPeriod end (YYYY-MM-DD)
compare_start_datestringNoComparison period start
compare_end_datestringNoComparison period end
Terminal window
curl -X POST https://api.driftwoodapp.com/api/insights-overview \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"start_date": "2025-06-01",
"end_date": "2025-06-30",
"compare_start_date": "2025-05-01",
"compare_end_date": "2025-05-31"
}'

The response includes metrics for the specified period with optional comparison to a previous period for trend analysis.