Param name |
Description
Validations
|
||||||||
---|---|---|---|---|---|---|---|---|---|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass
|
||||||||
page Optional |
Return the next page of results.
|
||||||||
per_page Optional |
How many results to return per page. The default is 25.
|
||||||||
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
|
||||||||
fulltext Optional |
Search for any record that matches this text
|
||||||||
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:
|
||||||||
root Optional |
Pass
|
||||||||
created_at_label Optional Blank Value Allowed |
Dynamic Date String such as “Today” or “This Year”
|
||||||||
next_action_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
||||||||
next_action_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
||||||||
offer_id Optional |
Refer to the offer api for details
|
||||||||
schedule_id Optional |
Schedule internal id.
|
||||||||
contact_id Optional |
Match calls that were placed by this caller.
|
||||||||
traffic_source_id Optional |
Refer to the traffic source api for details
|
||||||||
buyer_id Optional |
Refer to the buyer api for details
|
||||||||
status Optional |
Match results that have this status.
|
||||||||
status_wait Optional |
Filter for leads that are waiting before performing an action.
|
||||||||
number Optional |
Filter for leads matching this callerid.
|
||||||||
email Optional |
The email address for the lead. The lead's email is required for sending emails from schedules to leads.
|
||||||||
has_next_action Optional |
Filter for leads that have more actions to perform.
|
||||||||
buyer_converted Optional |
Select leads that have converted.
|
||||||||
offer_converted Optional |
Select leads where a traffic source converted.
|
||||||||
either_converted Optional |
Select leads where either a buyer or traffic source converted.
|
||||||||
opt_out Optional |
Select leads that have opted-out.
|
Param name |
Description
Validations
|
---|---|
lead_token Optional |
The lead token is set to either the offer_lead_token you get at trackdrive.com/offers or a schedule_lead_token you get from trackdrive.com/schedules. The only difference is the use of offer_lead_token will just send data to the offer which is picked up when a call is made with the caller_id of the lead. EG: If a Call Center is transferring data before they send you a call. The schedule_lead_token will start the actions associated with the schedule.
|
caller_number Optional |
Find the lead by this caller number.
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -X PUT "https://trackdrive.com/api/v1/leads/e36e2da0-6984-4c59-999a-9207c973e143?opt_out=true" # Update leads with application/json: curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -H "Content-Type: application/json" -X PUT -d '{"opt_out":true}' "https://trackdrive.com/api/v1/leads/e36e2da0-6984-4c59-999a-9207c973e143"
Param name |
Description
Validations
|
---|---|
contact_field_type Optional Blank Value Allowed |
Pass an ID belonging to an
|
caller_id Optional Blank Value Allowed |
The callerID for the lead. This is the number Trackdrive will dial when making outbound calls to the lead. This is also the number where Trackdrive will send SMS.
|
blocked Optional Blank Value Allowed |
Set this to true in order to prevent this lead from calling any of your telephone numbers. This will also prevent all outbound actions from Trackdrive.
|
opt_out Optional Blank Value Allowed |
Select leads that have opted-out.
|
email Optional Blank Value Allowed |
The email address for the lead. The lead's email is required for sending emails from schedules to leads.
|
traffic_source_id Optional Blank Value Allowed |
Update the traffic source associated with this lead.
|
next_action_at Optional Blank Value Allowed |
Change when the next action is scheduled to run. EG If you mistakenly scheduled leads to wait until next week, you can use this to bulk update them to run 1 second from now.
|
schedule_callback_at Optional |
Schedule a callback with the submitted lead. Must be a valid time EG: 2021-07-23 14:26:43 +0000
|
schedule_callback_in_seconds Optional |
Schedule a callback with the submitted lead in X seconds. Must be a valid integer EG: 3600
|
schedule_start Optional Blank Value Allowed |
Translation missing: en.api.leads.schedule_start
|
schedule_stop Optional Blank Value Allowed |
Removes the lead from the Schedule. No further actions will be taken.
|
move_to_another_schedule_id Optional Blank Value Allowed |
Move To Another Schedule - Assign matching leads to the selected schedule. Lead's already on the selected schedule will restart their schedule.
|
apply_to Optional Blank Value Allowed |
Should the data you're sending also be applied to calls associated with this lead?
|
data Optional Blank Value Allowed |
Trackdrive will convert this hash of JSON data into tokens. Inbound and Outbound calls made and received from this Lead will automatically inherit these tokens.
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" "https://[your-subdomain].trackdrive.com/api/v1/leads/reports?category=buyer_id"
Param name |
Description
Validations
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
category Optional Blank Value Allowed |
Translation missing: en.api.leads.category
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pivot Optional Blank Value Allowed |
Translation missing: en.api.leads.category
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
page Optional |
Return the next page of results.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
per_page Optional |
How many results to return per page. The default is 25.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulltext Optional |
Search for any record that matches this text
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
root Optional |
Pass
|