Supported Formats

json, csv

Examples

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

Response Example

{
  "status" : 200,
  "success" : true,
  "traffic_sources" : [
    {
      "id" : 10015594,
      "type" : "TrafficSource",
      "created_at" : "2018-04-09T21:39:14.308+00:00",
      "updated_at" : "2018-04-09T21:39:14.308+00:00",
      "user_updated_at" : "2018-04-09T21:39:14.308+00:00",
      "routes_show_path" : "\/traffic_sources\/10015594",
      "routes_edit_path" : "\/traffic_sources\/10015594\/edit",
      "user_traffic_source_id" : "1005",
      "first_name" : "Mary",
      "last_name" : "Smith",
      "company_name" : "ABC Email Marketing",
      "name" : "1005 - Mary Smith ABC Email Marketing",
      "number_limit" : null,
      "last_call_at" : "2020-05-28T18:51:47.000+00:00",
      "numbers_count" : 1,
      "calls_count" : 9,
      "recent_calls_count" : 1,
      "number_ids" : [
        14775873
      ],
      "outgoing_webhook_ids" : [],
      "team_ids" : []
    },
    {
      "id" : 10015593,
      "type" : "TrafficSource",
      "created_at" : "2018-04-09T21:39:14.271+00:00",
      "updated_at" : "2018-04-09T21:39:14.271+00:00",
      "user_updated_at" : "2018-04-09T21:39:14.271+00:00",
      "routes_show_path" : "\/traffic_sources\/10015593",
      "routes_edit_path" : "\/traffic_sources\/10015593\/edit",
      "user_traffic_source_id" : "9999",
      "first_name" : "Rich",
      "last_name" : "Nolan",
      "company_name" : "TrackDrive",
      "name" : "9999 - Rich Nolan TrackDrive",
      "number_limit" : null,
      "last_call_at" : "2020-05-21T20:51:25.000+00:00",
      "numbers_count" : 2,
      "calls_count" : 588,
      "recent_calls_count" : 1,
      "number_ids" : [
        14806007,
        14806006
      ],
      "outgoing_webhook_ids" : [],
      "team_ids" : []
    }
  ],
  "metadata" : {
    "root" : "traffic_sources",
    "page" : 1,
    "total_pages" : 5,
    "per_page" : 2,
    "total_count" : 9,
    "next_cursor" : 10015593
  }
}

Params

Param name
Description
auth_token
Optional

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

  • Must be String

page
Optional

Return the next page of results.

  • 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

order
Optional

Sort results by this field.

  • Must be one of: created_at, updated_at, first_name, last_name, company_name, numbers_count, recent_calls_count, last_call_at, calls_count, user_traffic_source_id, number_limit.

order_dir
Optional

Sort results in ascending or descending order.

  • Must be one of: asc, desc.

fulltext
Optional

Search for any record that matches this text

  • Must be String

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
  • type
  • created_at
  • updated_at
  • user_updated_at
  • routes_show_path
  • routes_edit_path
  • user_traffic_source_id
  • first_name
  • last_name
  • company_name
  • name
  • number_limit
  • last_call_at
  • numbers_count
  • calls_count
  • recent_calls_count
  • number_ids
  • outgoing_webhook_ids
  • team_ids
  • Must be String