| Param name | 
           
              Description
             
            
                Validations
               
             | 
      ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 
        serializer  Optional Blank Value Allowed  | 
      
         This endpoint supports multiple response formats. Pass  Validations: 
  | 
    ||||||||
| 
        page  Optional  | 
      
         Return the next page of results. Validations: 
  | 
    ||||||||
| 
        per_page  Optional  | 
      
         How many results to return per page. The default is 25. Validations: 
  | 
    ||||||||
| 
        created_at_to  Optional  | 
      
         Date formatted like 2016-01-01 12:25:15 -0500 Validations: 
  | 
    ||||||||
| 
        created_at_from  Optional  | 
      
         Date formatted like 2016-01-01 12:25:15 -0500 Validations: 
  | 
    ||||||||
| 
        fulltext  Optional  | 
      
         Search for any record that matches this text Validations: 
  | 
    ||||||||
| 
        time_zone  Optional  | 
      
         Date ranges will be parsed using this time zone. Validations: 
  | 
    ||||||||
| 
        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:
 Validations: 
  | 
    ||||||||
| 
        root  Optional  | 
      
         Pass  Validations: 
  | 
    ||||||||
| 
        created_at_label  Optional Blank Value Allowed  | 
      
         Dynamic Date String such as “Today” or “This Year” Validations: 
  | 
    ||||||||
| 
        next_action_at_to  Optional  | 
      
         Date formatted like 2016-01-01 12:25:15 -0500 Validations: 
  | 
    ||||||||
| 
        next_action_at_from  Optional  | 
      
         Date formatted like 2016-01-01 12:25:15 -0500 Validations: 
  | 
    ||||||||
| 
        offer_id  Optional  | 
      
         Refer to the offer api for details Validations: 
  | 
    ||||||||
| 
        schedule_id  Optional  | 
      
         Schedule internal id. Validations: 
  | 
    ||||||||
| 
        contact_id  Optional  | 
      
         Match calls that were placed by this caller. Validations: 
  | 
    ||||||||
| 
        traffic_source_id  Optional  | 
      
         Refer to the traffic source api for details Validations: 
  | 
    ||||||||
| 
        buyer_id  Optional  | 
      
         Refer to the buyer api for details Validations: 
  | 
    ||||||||
| 
        status  Optional  | 
      
         Match results that have this status. Validations: 
  | 
    ||||||||
| 
        status_wait  Optional  | 
      
         Filter for leads that are waiting before performing an action. Validations: 
  | 
    ||||||||
| 
        number  Optional  | 
      
         Filter for leads matching this callerid. Validations: 
  | 
    ||||||||
| 
        email  Optional  | 
      
         The email address for the lead. The lead's email is required for sending emails from schedules to leads. Validations: 
  | 
    ||||||||
| 
        has_next_action  Optional  | 
      
         Filter for leads that have more actions to perform. Validations: 
  | 
    ||||||||
| 
        buyer_converted  Optional  | 
      
         Select leads that have converted. Validations: 
  | 
    ||||||||
| 
        offer_converted  Optional  | 
      
         Select leads where a traffic source converted. Validations: 
  | 
    ||||||||
| 
        either_converted  Optional  | 
      
         Select leads where either a buyer or traffic source converted. Validations: 
  | 
    ||||||||
| 
        opt_out  Optional  | 
      
         Select leads that have opted-out. Validations: 
  | 
    
| 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. Validations: 
  | 
    
| 
        caller_number  Optional  | 
      
         Find the lead by this caller number. Validations: 
  | 
    
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  Validations: 
  | 
    
| 
        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. Validations: 
  | 
    
| 
        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. Validations: 
  | 
    
| 
        opt_out  Optional Blank Value Allowed  | 
      
         Select leads that have opted-out. Validations: 
  | 
    
| 
        email  Optional Blank Value Allowed  | 
      
         The email address for the lead. The lead's email is required for sending emails from schedules to leads. Validations: 
  | 
    
| 
        traffic_source_id  Optional Blank Value Allowed  | 
      
         Update the traffic source associated with this lead. Validations: 
  | 
    
| 
        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. Validations: 
  | 
    
| 
        schedule_callback_at  Optional  | 
      
         Schedule a callback with the submitted lead. Must be a valid time EG: 2021-07-23 14:26:43 +0000 Validations: 
  | 
    
| 
        schedule_callback_in_seconds  Optional  | 
      
         Schedule a callback with the submitted lead in X seconds. Must be a valid integer EG: 3600 Validations: 
  | 
    
| 
        schedule_start  Optional Blank Value Allowed  | 
      
         Translation missing: en.api.leads.schedule_start Validations: 
  | 
    
| 
        schedule_stop  Optional Blank Value Allowed  | 
      
         Removes the lead from the Schedule. No further actions will be taken. Validations: 
  | 
    
| 
        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. Validations: 
  | 
    
| 
        apply_to  Optional Blank Value Allowed  | 
      
         Should the data you're sending also be applied to calls associated with this lead? Validations: 
  | 
    
| 
        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.  Validations: 
  | 
    
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 Validations: 
  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
        pivot  Optional Blank Value Allowed  | 
      
         Translation missing: en.api.leads.category Validations: 
  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
        page  Optional  | 
      
         Return the next page of results. Validations: 
  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
        per_page  Optional  | 
      
         How many results to return per page. The default is 25. Validations: 
  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
        created_at_to  Optional  | 
      
         Date formatted like 2016-01-01 12:25:15 -0500 Validations: 
  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
        created_at_from  Optional  | 
      
         Date formatted like 2016-01-01 12:25:15 -0500 Validations: 
  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
        fulltext  Optional  | 
      
         Search for any record that matches this text Validations: 
  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
        time_zone  Optional  | 
      
         Date ranges will be parsed using this time zone. Validations: 
  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
        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:
 Validations: 
  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
        root  Optional  | 
      
         Pass  Validations: 
  |