Supported Formats

json, csv

Examples

wget "https://[your-subdomain].trackdrive.net/api/v1/buyers?page=1&order=created_at&auth_token=[your-auth-token]"

Response Example

{
  "status" : 200,
  "buyers" : [
    {
      "id" : 10033328,
      "created_at" : "2019-02-19T19:01:20.473+00:00",
      "updated_at" : "2019-09-04T18:10:47.353+00:00",
      "user_updated_at" : "2019-08-11T05:48:49.500+00:00",
      "name" : "A4 - TrackDrive Tradeshow Agent 4",
      "number" : "+17195220393",
      "paused" : true,
      "time_zone" : "Eastern Time (US & Canada)",
      "user_buyer_id" : "A8018",
      "bid_price" : null,
      "route_by_type" : "tier",
      "buyer_group_ids" : [
        10001704
      ],
      "buyer_group_names" : [
        "All Agents"
      ],
      "token_values" : [
        "is_verified:level1",
        "agent_group:2"
      ],
      "context_menu_name" : "A8018 - A4 - TrackDrive Tradeshow Agent 4 - +17195220393",
      "last_call_at" : "2019-04-25T20:38:01.124+00:00",
      "weight" : 1,
      "tier" : -99999.0,
      "timeout_seconds" : 30,
      "dtmf_tones" : null,
      "concurrency_cap_limit" : 1,
      "concurrency_cap_used" : 0,
      "type" : "Buyer",
      "current_conversion_revenue_max" : null,
      "current_conversion_revenue_min" : null,
      "current_conversion_revenue_increment" : null,
      "current_conversion_revenue" : null,
      "current_conversion_duration" : null,
      "current_conversion_duplicate_timeframe" : null,
      "current_conversion_name" : null,
      "current_conversion_token_value_ids" : null,
      "current_conversion_attribution_token_value_ids" : null,
      "buyer_suppression_ids" : [],
      "attempt_daily_used" : 0,
      "attempt_hourly_used" : 0,
      "attempt_monthly_used" : 0,
      "attempt_total_used" : 9,
      "buyer_conversion_daily_used" : 0,
      "buyer_conversion_hourly_used" : 0,
      "buyer_conversion_monthly_used" : 0,
      "buyer_conversion_total_used" : 0,
      "connection_daily_used" : 0,
      "connection_hourly_used" : 0,
      "connection_monthly_used" : 0,
      "connection_total_used" : 2,
      "earned_revenue_daily_used" : "0.0",
      "earned_revenue_hourly_used" : "0.0",
      "earned_revenue_monthly_used" : "0.0",
      "earned_revenue_total_used" : "0.0",
      "revenue_daily_used" : 0.0,
      "revenue_hourly_used" : 0.0,
      "revenue_monthly_used" : 0.0,
      "revenue_total_used" : 0.0,
      "attempt_daily_limit" : null,
      "attempt_hourly_limit" : null,
      "attempt_monthly_limit" : null,
      "attempt_total_limit" : null,
      "buyer_conversion_daily_limit" : null,
      "buyer_conversion_hourly_limit" : null,
      "buyer_conversion_monthly_limit" : null,
      "buyer_conversion_total_limit" : null,
      "connection_daily_limit" : null,
      "connection_hourly_limit" : null,
      "connection_monthly_limit" : null,
      "connection_total_limit" : null,
      "earned_revenue_daily_limit" : null,
      "earned_revenue_hourly_limit" : null,
      "earned_revenue_monthly_limit" : null,
      "earned_revenue_total_limit" : null,
      "revenue_daily_limit" : null,
      "revenue_hourly_limit" : null,
      "revenue_monthly_limit" : null,
      "revenue_total_limit" : null,
      "business_hours_schedule" : [
        {
          "attempt_hourly_limit" : null,
          "connection_hourly_limit" : null,
          "buyer_conversion_hourly_limit" : null,
          "revenue_hourly_limit" : null,
          "concurrency_limit" : 1,
          "schedule" : [
            {
              "day" : 0,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 1,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 2,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 3,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 4,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 5,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 6,
              "times" : [
                "00:00..23:59"
              ]
            }
          ]
        }
      ],
      "buyer_conversions_schedule" : [
        {
          "buyer_conversions_attributes" : [],
          "schedule" : [
            {
              "day" : 0,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 1,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 2,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 3,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 4,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 5,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 6,
              "times" : [
                "00:00..23:59"
              ]
            }
          ]
        }
      ]
    },
    {
      "id" : 10033327,
      "created_at" : "2019-02-19T19:00:17.114+00:00",
      "updated_at" : "2019-09-11T17:00:47.732+00:00",
      "user_updated_at" : "2019-08-11T05:51:56.761+00:00",
      "name" : "A2 - TrackDrive Tradeshow Agent 2",
      "number" : "+17193041927",
      "paused" : false,
      "time_zone" : "Eastern Time (US & Canada)",
      "user_buyer_id" : "A8017",
      "bid_price" : null,
      "route_by_type" : "tier",
      "buyer_group_ids" : [
        10001704
      ],
      "buyer_group_names" : [
        "All Agents"
      ],
      "token_values" : [
        "is_verified:level1",
        "agent_group:1"
      ],
      "context_menu_name" : "A8017 - A2 - TrackDrive Tradeshow Agent 2 - +17193041927",
      "last_call_at" : "2019-02-21T15:47:20.949+00:00",
      "weight" : 1,
      "tier" : -99999.0,
      "timeout_seconds" : 30,
      "dtmf_tones" : null,
      "concurrency_cap_limit" : 1,
      "concurrency_cap_used" : 0,
      "type" : "Buyer",
      "current_conversion_revenue_max" : null,
      "current_conversion_revenue_min" : null,
      "current_conversion_revenue_increment" : null,
      "current_conversion_revenue" : null,
      "current_conversion_duration" : null,
      "current_conversion_duplicate_timeframe" : null,
      "current_conversion_name" : null,
      "current_conversion_token_value_ids" : null,
      "current_conversion_attribution_token_value_ids" : null,
      "buyer_suppression_ids" : [],
      "attempt_daily_used" : 0,
      "attempt_hourly_used" : 0,
      "attempt_monthly_used" : 1,
      "attempt_total_used" : 7,
      "buyer_conversion_daily_used" : 0,
      "buyer_conversion_hourly_used" : 0,
      "buyer_conversion_monthly_used" : 0,
      "buyer_conversion_total_used" : 0,
      "connection_daily_used" : 0,
      "connection_hourly_used" : 0,
      "connection_monthly_used" : 0,
      "connection_total_used" : 1,
      "earned_revenue_daily_used" : "0.0",
      "earned_revenue_hourly_used" : "0.0",
      "earned_revenue_monthly_used" : "0.0",
      "earned_revenue_total_used" : "0.0",
      "revenue_daily_used" : 0.0,
      "revenue_hourly_used" : 0.0,
      "revenue_monthly_used" : 0.0,
      "revenue_total_used" : 0.0,
      "attempt_daily_limit" : null,
      "attempt_hourly_limit" : null,
      "attempt_monthly_limit" : null,
      "attempt_total_limit" : null,
      "buyer_conversion_daily_limit" : null,
      "buyer_conversion_hourly_limit" : null,
      "buyer_conversion_monthly_limit" : null,
      "buyer_conversion_total_limit" : null,
      "connection_daily_limit" : null,
      "connection_hourly_limit" : null,
      "connection_monthly_limit" : null,
      "connection_total_limit" : null,
      "earned_revenue_daily_limit" : null,
      "earned_revenue_hourly_limit" : null,
      "earned_revenue_monthly_limit" : null,
      "earned_revenue_total_limit" : null,
      "revenue_daily_limit" : null,
      "revenue_hourly_limit" : null,
      "revenue_monthly_limit" : null,
      "revenue_total_limit" : null,
      "business_hours_schedule" : [
        {
          "attempt_hourly_limit" : null,
          "connection_hourly_limit" : null,
          "buyer_conversion_hourly_limit" : null,
          "revenue_hourly_limit" : null,
          "concurrency_limit" : 1,
          "schedule" : [
            {
              "day" : 0,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 1,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 2,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 3,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 4,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 5,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 6,
              "times" : [
                "00:00..23:59"
              ]
            }
          ]
        }
      ],
      "buyer_conversions_schedule" : [
        {
          "buyer_conversions_attributes" : [],
          "schedule" : [
            {
              "day" : 0,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 1,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 2,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 3,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 4,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 5,
              "times" : [
                "00:00..23:59"
              ]
            },
            {
              "day" : 6,
              "times" : [
                "00:00..23:59"
              ]
            }
          ]
        }
      ]
    }
  ],
  "metadata" : {
    "root" : "buyers",
    "page" : 1,
    "total_pages" : 7,
    "per_page" : 2,
    "total_count" : 14,
    "next_cursor" : 10033327
  }
}

Params

Param name
Description
auth_token
optional

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

  • Must be String

number
optional

Filter buyers for a telephone number.

  • Must be String

paused
optional

Filter buyers that are either paused or unpaused.

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off

page
optional

Return the next page of results.

  • Must be a number.

per_page
optional

How many results to return per page. The default is 25.

  • Must be a number.

created_at_to
optional

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

  • Must be String

created_at_from
optional

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

  • Must be String

fulltext
optional

Search for any record that matches this text

  • Must be String

time_zone
optional

Date ranges will be parsed using this time zone.

columns
optional
Specify the columns you would like returned by the API for a given resource. Limiting the columns can significantly increase API response time since only the requested data will be processed. columns=uuid,number,created_at

Must be any combination of:

  • id
  • created_at
  • updated_at
  • user_updated_at
  • name
  • number
  • paused
  • time_zone
  • user_buyer_id
  • bid_price
  • route_by_type
  • buyer_group_ids
  • buyer_group_names
  • token_values
  • context_menu_name
  • last_call_at
  • weight
  • tier
  • timeout_seconds
  • dtmf_tones
  • concurrency_cap_limit
  • concurrency_cap_used
  • type
  • current_conversion_revenue_max
  • current_conversion_revenue_min
  • current_conversion_revenue_increment
  • current_conversion_revenue
  • current_conversion_duration
  • current_conversion_duplicate_timeframe
  • current_conversion_name
  • current_conversion_token_value_ids
  • current_conversion_attribution_token_value_ids
  • buyer_suppression_ids
  • attempt_daily_used
  • attempt_hourly_used
  • attempt_monthly_used
  • attempt_total_used
  • buyer_conversion_daily_used
  • buyer_conversion_hourly_used
  • buyer_conversion_monthly_used
  • buyer_conversion_total_used
  • connection_daily_used
  • connection_hourly_used
  • connection_monthly_used
  • connection_total_used
  • earned_revenue_daily_used
  • earned_revenue_hourly_used
  • earned_revenue_monthly_used
  • earned_revenue_total_used
  • revenue_daily_used
  • revenue_hourly_used
  • revenue_monthly_used
  • revenue_total_used
  • attempt_daily_limit
  • attempt_hourly_limit
  • attempt_monthly_limit
  • attempt_total_limit
  • buyer_conversion_daily_limit
  • buyer_conversion_hourly_limit
  • buyer_conversion_monthly_limit
  • buyer_conversion_total_limit
  • connection_daily_limit
  • connection_hourly_limit
  • connection_monthly_limit
  • connection_total_limit
  • earned_revenue_daily_limit
  • earned_revenue_hourly_limit
  • earned_revenue_monthly_limit
  • earned_revenue_total_limit
  • revenue_daily_limit
  • revenue_hourly_limit
  • revenue_monthly_limit
  • revenue_total_limit
  • business_hours_schedule
  • buyer_conversions_schedule
  • Must be String

root
optional

Pass root=false to return results without a root node and metadata.
For example:
GET /api/v1/calls?root=false will return [call1, call2, call3]
While:
GET /api/v1/calls will return {calls: [call1, call2, call3], metadata: {}}

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off

order
optional

Sort results by this field.

  • Must be one of: id, name, calls_count, recent_calls_count, paused, number, created_at, last_call_at, tier, weight, time_zone, user_buyer_id, call_limits.in_progress_count, call_limits.in_progress_used, call_limits.revenue_hourly_used, call_limits.revenue_daily_used, call_limits.revenue_monthly_used, call_limits.revenue_total_used, call_limits.earned_revenue_hourly_used, call_limits.earned_revenue_daily_used, call_limits.earned_revenue_monthly_used, call_limits.earned_revenue_total_used, call_limits.buyer_conversion_hourly_used, call_limits.buyer_conversion_daily_used, call_limits.buyer_conversion_monthly_used, call_limits.buyer_conversion_total_used, call_limits.connection_hourly_used, call_limits.connection_daily_used, call_limits.connection_monthly_used, call_limits.connection_total_used, call_limits.attempt_hourly_used, call_limits.attempt_daily_used, call_limits.attempt_monthly_used, call_limits.attempt_total_used.

order_dir
optional

Sort results in ascending or descending order.

  • Must be one of: desc, asc.