Examples

curl -H "Content-Type: application/json" -X PUT -d '{"post_call_tokens": {"good_lead":"yes","loan_amount":"500"}}' https://[your-subdomain].trackdrive.net/api/v1/calls/:id?auth_token=[your-auth-token]

Response Example

{
  "status" : 200,
  "errors" : {},
  "call" : {
    "name" : "+17035755041",
    "uuid" : "3bdabd79-73a4-4cd4-a45f-9934d30ebddf",
    "recording_url" : null,
    "number_called" : "+18772117194",
    "connected_to" : null,
    "caller_number" : "+17035755041",
    "offer" : "Student Loan Consolidation",
    "traffic_source" : "1000 - Google Adwords",
    "buyer" : null,
    "obfuscated_caller_number" : null,
    "caller_city" : "WSNGTNZN08",
    "caller_country" : "US",
    "token_values" : "38e461179b3cc5a4bd1ed4ecd9cb2689",
    "total_duration" : 3,
    "hold_duration" : 0,
    "ivr_duration" : 4,
    "attempted_duration" : 0,
    "answered_duration" : 0,
    "user_offer_id" : "SLC",
    "user_traffic_source_id" : "1000",
    "user_buyer_id" : null,
    "sub_id" : "none",
    "offer_id" : 10007440,
    "schedule_id" : null,
    "schedule_name" : null,
    "ring_pool_id" : null,
    "buyer_id" : null,
    "traffic_source_id" : 10015496,
    "number_id" : 14775880,
    "agent_id" : null,
    "status" : "ivr-no-keypress",
    "buyer_converted" : null,
    "buyer_repeat_caller" : null,
    "buyer_revenue" : null,
    "revenue" : null,
    "traffic_source_converted" : null,
    "traffic_source_repeat_caller" : null,
    "traffic_source_payout" : null,
    "payout" : null,
    "trackdrive_cost" : 0.03,
    "provider_cost" : 0.021,
    "call_sid" : "45d5f860-eec0-11e9-bdaf-239f8662bfab",
    "provider" : "tracktel",
    "outgoing_webhooks_count" : null,
    "created_at" : "2019-10-14T20:22:00.566+00:00",
    "ended_at" : "2019-10-14T20:22:04.255+00:00",
    "contact_field_type" : "level1",
    "hangup_cause" : "The call ended because the caller +17035755041 hungup with Completed (NORMAL_CLEARING) (Source: Caller) ",
    "token-geo" : "6efe4e4912fb2b8381d62e4e721dc3f5",
    "token-s1" : "9017dc05bbe3441dff22e53991334118",
    "token-buyer_converted" : "f1fda3417fb550d6185637420783e312",
    "token-trackdrive_traffic_source_id" : "6682864f9f7dec2d5ab5830bc86ba347"
  },
  "metadata" : {
    "root" : "call"
  }
}

Params

Param name
Description
auth_token
optional

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

  • Must be String

id
optional

Find the call by ID or UUID.
Example ID 123895022.
Example UUID c3b20b12-3b3b-4322-b15d-0f1c5f653479

  • Must be String

post_call_tokens
optional

Custom contact fields defined on the offer.
EG: {first_name: "John", last_name: "Smith", zip_code: "90210"}

  • Must be Hash

revenue
optional

The revenue paid out for the call.

  • Must be a decimal number.

add_revenue
optional

Add this amount to the call's current revenue. For example pass 2.5 to add 2.5 to the current call revenue. If the call revenue is currently 10.50, the revenue would become 13 (10.50 + 2.50)

  • Must be a decimal number.

buyer_converted
optional

Did the buyer convert?

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off

payout
optional

The amount paid to thetraffic source.

  • Must be a decimal number.

offer_converted
optional

Did the traffic source convert?

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off

contact_field_type
optional

Pass an ID belonging to an Agent Script & Field Type to select that Custom Contact Field Type for this call.

  • Must be String