Supported Formats

json, csv

Examples

wget "https://[your-subdomain].trackdrive.net/api/v1/offers?page=1&order=created_at&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

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, paused, user_offer_id, 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
  • created_at
  • updated_at
  • user_updated_at
  • user_offer_id
  • numbers_api_key
  • leads_api_key
  • max_cc_count
  • active_cc_count
  • in_progress_count
  • Must be String


GET /api/v1/offers/:id
Get an offer by id.

Supported Formats

json

Params

Param name
Description
auth_token
optional

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

  • Must be String


PUT /api/v1/offers/:id
Update an offer by id.

Supported Formats

json

Params

Param name
Description
auth_token
optional

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

  • Must be String

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


DELETE /api/v1/offers/:id
Destroy an offer by id.

Supported Formats

json

Params

Param name
Description
auth_token
optional

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

  • Must be String