Supported Formats

json, csv

Examples

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

Response Example

{
  "status" : 200,
  "success" : true,
  "offers" : [
    {
      "id" : 10009290,
      "type" : "Offer",
      "created_at" : "2020-01-07T15:19:45.620+00:00",
      "updated_at" : "2020-04-09T21:26:47.169+00:00",
      "user_updated_at" : "2020-01-07T15:19:45.782+00:00",
      "routes_show_path" : "\/offers\/10009290",
      "routes_edit_path" : "\/offers\/10009290\/edit",
      "user_offer_id" : "TEST",
      "paused" : false,
      "numbers_api_key" : "a6c928ea78b1047668afb93f94e035b1",
      "leads_api_key" : "f299efcd850f898841dda03f2cd7f7c9",
      "name" : "TEST - Test for Video Demo",
      "numbers_count" : 0,
      "max_cc_count" : 45,
      "active_cc_count" : 0,
      "in_progress_count" : 0,
      "call_routers_attributes" : [],
      "lead_token" : "326ee9b5b65523d71f4c1ae9bd9ccf46",
      "offer_conversion_ids" : [
        4014,
        4013,
        4012
      ],
      "buyers_count" : 3,
      "buyer_groups_count" : 0,
      "agents_count" : 0
    },
    {
      "id" : 10007557,
      "type" : "Offer",
      "created_at" : "2018-04-27T14:25:09.722+00:00",
      "updated_at" : "2020-04-28T11:08:41.266+00:00",
      "user_updated_at" : "2019-01-31T16:04:10.821+00:00",
      "routes_show_path" : "\/offers\/10007557",
      "routes_edit_path" : "\/offers\/10007557\/edit",
      "user_offer_id" : "HI",
      "paused" : false,
      "numbers_api_key" : "576eb9ab33cd90bef04165248756f2e9",
      "leads_api_key" : "115e70a54a2b77040580ee422d095467",
      "name" : "HI - Health Insurance Calls",
      "numbers_count" : 0,
      "max_cc_count" : 65,
      "active_cc_count" : 0,
      "in_progress_count" : 0,
      "call_routers_attributes" : [],
      "lead_token" : "119d117a4d26aec670b99ad4697e5590",
      "offer_conversion_ids" : [
        1928
      ],
      "buyers_count" : 5,
      "buyer_groups_count" : 0,
      "agents_count" : 0
    }
  ],
  "offer_conversions" : [
    {
      "id" : 1928,
      "payout" : 15.0,
      "payout_type" : "usd",
      "revenue_percentage" : null,
      "duration" : 180,
      "duplicate_timeframe" : 5184000,
      "name" : "$15 \/ 180 sec \/ 60 days",
      "token_values" : [],
      "sortable_order" : 0,
      "offer_id" : 10007557,
      "business_range_id" : 10020627
    },
    {
      "id" : 4013,
      "payout" : 10.0,
      "payout_type" : "usd",
      "revenue_percentage" : null,
      "duration" : 120,
      "duplicate_timeframe" : 5184000,
      "name" : "Traffic Sources at $10\/120s\/30day",
      "token_values" : [
        "buyer_converted:true",
        "trackdrive_traffic_source_id:10015522"
      ],
      "sortable_order" : 0,
      "offer_id" : 10009290,
      "business_range_id" : 10169614
    },
    {
      "id" : 4014,
      "payout" : null,
      "payout_type" : "buyer_conversion_percent",
      "revenue_percentage" : "75.0",
      "duration" : 120,
      "duplicate_timeframe" : 5184000,
      "name" : "Traffic Sources on Rev Share",
      "token_values" : [
        "trackdrive_traffic_source_id:10015518",
        "trackdrive_traffic_source_id:10015593"
      ],
      "sortable_order" : 1,
      "offer_id" : 10009290,
      "business_range_id" : 10169614
    },
    {
      "id" : 4012,
      "payout" : 0.0,
      "payout_type" : "usd",
      "revenue_percentage" : null,
      "duration" : 60,
      "duplicate_timeframe" : 604800,
      "name" : "Default Payout - Internal Traffic",
      "token_values" : [],
      "sortable_order" : 2,
      "offer_id" : 10009290,
      "business_range_id" : 10169614
    }
  ],
  "business_ranges" : [
    {
      "id" : 10020627,
      "type" : "BusinessRange",
      "created_at" : "2018-04-27T14:25:10.167+00:00",
      "updated_at" : "2018-04-27T14:25:10.167+00:00",
      "owner_id" : 10007557,
      "owner_type" : "Offer",
      "owner_relation" : "business_ranges",
      "sortable_order" : null,
      "color" : "#4176A3",
      "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_conversion_ids" : [],
      "offer_conversion_ids" : [
        1928
      ]
    },
    {
      "id" : 10169614,
      "type" : "BusinessRange",
      "created_at" : "2020-01-07T15:19:45.757+00:00",
      "updated_at" : "2020-01-07T15:19:45.757+00:00",
      "owner_id" : 10009290,
      "owner_type" : "Offer",
      "owner_relation" : "business_ranges",
      "sortable_order" : 1000,
      "color" : "#4176A3",
      "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_conversion_ids" : [],
      "offer_conversion_ids" : [
        4013,
        4014,
        4012
      ]
    }
  ],
  "associations" : {
    "offer_conversion_ids" : "offer_conversions",
    "business_range_id" : "business_ranges"
  },
  "metadata" : {
    "root" : "offers",
    "page" : 1,
    "total_pages" : 2,
    "per_page" : 2,
    "total_count" : 4,
    "next_cursor" : 10007557
  }
}

Params

Param name
Description
auth_token
Optional

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

  • Must be String

serializer
Optional Blank Value Allowed

This endpoint supports multiple response formats. Pass serializer=name to retrieve data in an alternate format.

  • Must be a value contained in the pick list:
    Acceptable ValueDescription
    offerDefault response format.
    offer_gridModern response format that returns various foreign keys for use with other API endpoints.
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: name, schedules_count, numbers_count, buyers_count, agents_count, paused, user_offer_id, calls_count, recent_calls_count, last_call_at, numbers_count, created_at.

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_offer_id
  • paused
  • numbers_api_key
  • leads_api_key
  • name
  • numbers_count
  • max_cc_count
  • active_cc_count
  • in_progress_count
  • call_routers_attributes
  • lead_token
  • offer_conversion_ids
  • buyers_count
  • buyer_groups_count
  • agents_count
  • Must be String