Offers
The set of offers in your account.
GET /offers
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/offers
List Offer records.
Search and list the offers (campaigns) in your account, with filtering, sorting, and pagination. Supports JSON or CSV output.
Supported Formats
json, csvParams
| Param name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
|
serializer Optional Blank value allowed |
This endpoint supports multiple response formats. Pass
|
||||||||
|
page Optional |
Return the next page of results.
|
||||||||
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
||||||||
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
||||||||
|
order Optional |
Sort results by this field.
|
||||||||
|
order_dir Optional |
Sort results in ascending or descending order.
|
||||||||
|
fulltext Optional |
Search for any record that matches this text
|
||||||||
|
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:
|
GET /offers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/offers/:id
Get Offer by id.
Retrieve full details of a single offer, including its tracking numbers, call routing, schedules, and conversion payout rules.
Params
| Param name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
|
serializer Optional Blank value allowed |
This endpoint supports multiple response formats. Pass
|
GET /offers/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/offers/new
Build Offer with defaults.
Return a new, unsaved offer pre-filled with defaults, useful for previewing the record shape before creating one.
Params
| Param name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
|
serializer Optional Blank value allowed |
This endpoint supports multiple response formats. Pass
|
POST /offers
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/offers
Create Offer.
Create a new offer, the central object that ties together tracking numbers, call routing, buyers, schedules, and contact fields for a campaign.
Params
| Param name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
|
serializer Optional Blank value allowed |
This endpoint supports multiple response formats. Pass
|
||||||||
|
name Optional Blank value allowed |
Give this offer a name. Example: Insurance Calls
|
||||||||
|
user_offer_id Optional Blank value allowed |
Give this offer a unique ID. Example: IC001
|
||||||||
|
description Optional Blank value allowed |
A human readable description of the record.
|
||||||||
|
paused Optional Blank value allowed |
Pause or unpause the offer. Paused offers will reject all calls and disable all schedules.
|
||||||||
|
record_calls Optional Blank value allowed |
Record Calls
|
||||||||
|
record_calls_require_authorization Optional Blank value allowed |
Require the user to be logged into TrackDrive, with access to your company, in order to have permission to download call recordings on this offer.
|
||||||||
|
vertical_id Optional Blank value allowed |
The Vertical assigned to this offer, used for reporting and Vertical-scoped enrichment.
|
||||||||
|
callback_behaviour Optional Blank value allowed |
How a caller who calls back the same offer is routed. One of
|
||||||||
|
callback_reconnect_timeframe Optional Blank value allowed |
The number of seconds after a call ends during which a callback is still treated as a repeat call for routing.
|
||||||||
|
callback_reconnect_buyer_ids Optional Blank value allowed |
The buyer IDs eligible to receive a reconnected callback. If blank, no buyers are reconnected.
|
||||||||
|
callback_reconnect_behaviour Optional Blank value allowed |
The action taken once the reconnect timeframe has passed, for example
|
||||||||
|
callback_anonymous_ignore_duplicate_timeframe Optional Blank value allowed |
When true, calls from anonymous caller IDs are treated as unique calls instead of being matched to a previous call for the duplicate timeframe.
|
||||||||
|
callback_reconnect_without_dupe Optional Blank value allowed |
When true, a call is not sent to a buyer who already converted a call from the same caller within the duplicate timeframe.
|
||||||||
|
callback_reconnect_without_repeat Optional Blank value allowed |
When true, a call is not sent to a buyer who already answered a call from the same caller within the duplicate timeframe.
|
||||||||
|
enforce_contact_field_validations Optional Blank value allowed |
When true, leads submitted to this offer must pass the offer’s contact field validations before they are accepted.
|
||||||||
|
require_traffic_source_id Optional Blank value allowed |
When true, a lead submitted to this offer must include a
|
||||||||
|
lead_traffic_source_reject_duplicates Optional Blank value allowed |
When true, a lead is rejected if it duplicates an existing lead from the same traffic source.
|
||||||||
|
enforce_lead_contact_field_keys Optional Blank value allowed |
When true, only the contact field keys configured on this offer are accepted on lead submission.
|
||||||||
|
minimum_caller_number_length Optional Blank value allowed |
The minimum number of digits accepted in an inbound caller’s phone number.
|
||||||||
|
maximum_caller_number_length Optional Blank value allowed |
The maximum number of digits accepted in an inbound caller’s phone number.
|
||||||||
|
map_contact_field_group_ids Optional Blank value allowed |
The Map Contact Field Groups applied to leads submitted to this offer.
|
||||||||
|
leads_expire_in_months Optional Blank value allowed |
The number of months a lead remains active before it is automatically archived and removed from delivery.
|
||||||||
|
enable_public_show Optional Blank value allowed |
When true, this offer’s public posting instructions page is reachable at its posting instructions link.
|
||||||||
|
enable_public_index Optional Blank value allowed |
When true, this offer is listed on the public posting instructions index page.
|
||||||||
|
public_name Optional Blank value allowed |
The title shown on this offer’s public posting instructions page.
|
||||||||
|
public_description Optional Blank value allowed |
The HTML description shown on this offer’s public posting instructions page.
|
PUT /offers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/offers/:id
Update Offer by id.
Update an existing offer's settings, such as its name, status, greeting, timezone, or routing configuration.
Params
| Param name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
|
serializer Optional Blank value allowed |
This endpoint supports multiple response formats. Pass
|
||||||||
|
reset_numbers_api_key Optional |
|
||||||||
|
name Optional Blank value allowed |
Give this offer a name. Example: Insurance Calls
|
||||||||
|
user_offer_id Optional Blank value allowed |
Give this offer a unique ID. Example: IC001
|
||||||||
|
description Optional Blank value allowed |
A human readable description of the record.
|
||||||||
|
paused Optional Blank value allowed |
Pause or unpause the offer. Paused offers will reject all calls and disable all schedules.
|
||||||||
|
record_calls Optional Blank value allowed |
Record Calls
|
||||||||
|
record_calls_require_authorization Optional Blank value allowed |
Require the user to be logged into TrackDrive, with access to your company, in order to have permission to download call recordings on this offer.
|
||||||||
|
vertical_id Optional Blank value allowed |
The Vertical assigned to this offer, used for reporting and Vertical-scoped enrichment.
|
||||||||
|
callback_behaviour Optional Blank value allowed |
How a caller who calls back the same offer is routed. One of
|
||||||||
|
callback_reconnect_timeframe Optional Blank value allowed |
The number of seconds after a call ends during which a callback is still treated as a repeat call for routing.
|
||||||||
|
callback_reconnect_buyer_ids Optional Blank value allowed |
The buyer IDs eligible to receive a reconnected callback. If blank, no buyers are reconnected.
|
||||||||
|
callback_reconnect_behaviour Optional Blank value allowed |
The action taken once the reconnect timeframe has passed, for example
|
||||||||
|
callback_anonymous_ignore_duplicate_timeframe Optional Blank value allowed |
When true, calls from anonymous caller IDs are treated as unique calls instead of being matched to a previous call for the duplicate timeframe.
|
||||||||
|
callback_reconnect_without_dupe Optional Blank value allowed |
When true, a call is not sent to a buyer who already converted a call from the same caller within the duplicate timeframe.
|
||||||||
|
callback_reconnect_without_repeat Optional Blank value allowed |
When true, a call is not sent to a buyer who already answered a call from the same caller within the duplicate timeframe.
|
||||||||
|
enforce_contact_field_validations Optional Blank value allowed |
When true, leads submitted to this offer must pass the offer’s contact field validations before they are accepted.
|
||||||||
|
require_traffic_source_id Optional Blank value allowed |
When true, a lead submitted to this offer must include a
|
||||||||
|
lead_traffic_source_reject_duplicates Optional Blank value allowed |
When true, a lead is rejected if it duplicates an existing lead from the same traffic source.
|
||||||||
|
enforce_lead_contact_field_keys Optional Blank value allowed |
When true, only the contact field keys configured on this offer are accepted on lead submission.
|
||||||||
|
minimum_caller_number_length Optional Blank value allowed |
The minimum number of digits accepted in an inbound caller’s phone number.
|
||||||||
|
maximum_caller_number_length Optional Blank value allowed |
The maximum number of digits accepted in an inbound caller’s phone number.
|
||||||||
|
map_contact_field_group_ids Optional Blank value allowed |
The Map Contact Field Groups applied to leads submitted to this offer.
|
||||||||
|
leads_expire_in_months Optional Blank value allowed |
The number of months a lead remains active before it is automatically archived and removed from delivery.
|
||||||||
|
enable_public_show Optional Blank value allowed |
When true, this offer’s public posting instructions page is reachable at its posting instructions link.
|
||||||||
|
enable_public_index Optional Blank value allowed |
When true, this offer is listed on the public posting instructions index page.
|
||||||||
|
public_name Optional Blank value allowed |
The title shown on this offer’s public posting instructions page.
|
||||||||
|
public_description Optional Blank value allowed |
The HTML description shown on this offer’s public posting instructions page.
|
DELETE /offers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/offers/:id
Destroy Offer by id.
Permanently delete an offer. Fails if the offer still has tracking numbers assigned to it, or if it has calls currently in progress.
Params
| Param name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
|
serializer Optional Blank value allowed |
This endpoint supports multiple response formats. Pass
|