Examples

curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" "https://[your-subdomain].trackdrive.com/api/v1/calls/stats/?group_by=status&created_at_from=2025-01-01 04:46:54 UTC&created_at_to=2025-01-01 16:46:54 +0000&stat=count"

Params

Param name
Description
group_by
Required

Group calls by one of these attributes.

  • Must be one of: buyer_converted, offer_converted, status, created_at_five_minutes, created_at_day, created_at_week, created_at_month.

stat
Required

Return statistics on the grouped calls by one of these numeric columns.

  • Must be one of: count, revenue, profit, cost.

created_at_to
Required

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be a String

created_at_from
Required

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be a String

page
Optional

Return the next page of results.

  • Must be a number.