Supported Formats

json

Examples

wget "https://[your-subdomain].trackdrive.net/api/v1/calls/stats/?group_by=status&created_at_from=2017-12-15 04:37:15 UTC&created_at_to=2017-12-15 16:37:15 +0000&stat=count&auth_token=[your-auth-token]"

Params

Param name
Description
auth_token
optional

Authorize requests using your token. Get it from your profile: trackdrive.net/profile/edit

  • Must be String

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_ten_minutes, created_at_twenty_minutes, created_at_hour, 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 String

created_at_from
required

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

  • Must be String

page
optional

Return the next page of results.

  • Must be a number.

offer_repeat_caller
optional

Match calls where the Traffic Source had a repeat caller.

  • Must be a boolean value: true, false, 0, 1

buyer_repeat_caller
optional

Match calls where the Buyer had a repeat caller.

  • Must be a boolean value: true, false, 0, 1

buyer_converted
optional

Whether this call's buyer has converted.

  • Must be a boolean value: true, false, 0, 1

offer_converted
optional

Match calls where the Traffic Source converted.

  • Must be a boolean value: true, false, 0, 1

in_progress
optional

Match calls that are on-going

  • Must be a boolean value: true, false, 0, 1

placed_on_hold
optional

translation missing: en.api.calls.placed_on_hold

  • Must be a boolean value: true, false, 0, 1

has_recording
optional

Match calls that have a recording.

  • Must be a boolean value: true, false, 0, 1

buyer_conversion_duplicated_call
optional

Match calls where the callerID was a duplicate against the Buyer's conversion settings.

  • Must be a boolean value: true, false, 0, 1

offer_conversion_duplicated_call
optional

Match calls where the callerID was a duplicate against the Traffic Source's conversion settings.

  • Must be a boolean value: true, false, 0, 1

no_buyer
optional

Match calls that didn't connect to a Buyer

  • Must be a boolean value: true, false, 0, 1

token_key
optional

Calls that are tagged with this token will be matched. EG: token_key=buyer_id will return all calls that have a buyer_id token.

  • Must be String

token_value
optional

Will match calls that are tagged with a token:value. EG: token_key=buyer_id:12345 will return all calls that have a buyer_id token with the value set to 12345.

  • Must be String

order
optional

Sort results by this field.

  • Must be one of: direction, number_id, offer_id, traffic_source_id, sub_id, buyer_id, caller_number, updated_at, total_duration, hold_duration, ivr_duration, cost, charge, answered_duration, status, sub_status, buyer_converted, revenue, offer_converted, payout, outgoing_webhooks_count, created_at, end_time, lead_id.

order_dir
optional

Sort results in ascending or descending order.

  • Must be one of: desc, asc.

number_id
optional

Refer to the number api for details

  • Must be a decimal number.

offer_id
optional

Refer to the offer api for details

  • Must be a decimal number.

traffic_source_id
optional

Refer to the traffic source api for details

  • Must be a decimal number.

buyer_id
optional

Refer to the buyer api for details

  • Must be a decimal number.

buyer_group_ids
optional

translation missing: en.api.buyer_group_ids

  • Must be a decimal number.

ring_pool_id
optional

Refer to the ring pool api for details

  • Must be a decimal number.

id
optional

An Integer number eg: 12345

  • Must be a decimal number.

provider_configuration_id
optional

Refer to the provider api for details

  • Must be a decimal number.

contact_id
optional

Match calls that were placed by this caller.

  • Must be a decimal number.

status
optional

Match results that have this status.

  • Must be one of: forwarded, finished, on-hold, no-answer, no-buyer, no-buyer-all-maxed-out, no-buyer-all-filtered, no-buyer-prevent-dupes, not-open, caller-hung-up, rejected, rejected-traffic-source-capped-hang-up, rejected-no-concurrency-cap-available, no-answer-convert-on-attempt, rejected-caller-concurrency-exceeded, rejected-average-hold-time-exceeded, blocked, failed, hold-queue-waited-too-long.

ended_at_to
optional

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

  • Must be String

ended_at_from
optional

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

  • Must be String