Examples

curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" "https://[your-subdomain].trackdrive.com/api/v1/calls/5cc8897c-ad0f-44cb-8ea7-8f7736ae76f1/events"

Response Example

{
  "id" : 1234,
  "uuid" : "d1ddba47-79ad-4df9-9872-5061ff4bf085",
  "created_at" : "2023-12-11T11:49:32.495-05:00",
  "events" : [
    {
      "type" : "Leg",
      "id" : 3245,
      "call_sid" : "3697fcf9-4936-449a-8b97-f59f3ec88168",
      "direction" : "inbound",
      "created_at" : "2023-12-11T11:49:32.534-05:00",
      "answered_at" : null,
      "end_time" : "2023-12-11T13:11:16.473-05:00",
      "status" : "completed",
      "action_category" : "consumer",
      "dial_action" : "consumer_calling",
      "from" : "+17191231234",
      "to" : "+18001231234",
      "answered" : false,
      "ended" : true,
      "scheduled_callback" : false
    },
    {
      "type" : "FreeswitchLog",
      "id" : "838e11d4-3a61-45a7-8872-6952d4aa9ff1",
      "created_at" : "2023-12-11T11:49:34.420-05:00",
      "direction" : "out",
      "status" : "ok",
      "method" : "POST",
      "requester" : "trackdrive",
      "call_sid" : null,
      "request_event" : null,
      "action_category" : "consumer"
    },
    {
      "type" : "AuditLog",
      "id" : "e453601f-da79-428a-8041-edf6aa3a4ae3",
      "created_at" : "2023-12-11T11:50:45.692-05:00",
      "lead_id" : null,
      "agent_id" : 17635,
      "agent_email" : "john-smith@gmail.com",
      "request_path" : "\/api\/v1\/calls\/1234",
      "action_name" : "update",
      "controller_name" : "calls",
      "request_method" : "PUT",
      "request_ip" : "45.22.333.444",
      "response_status" : "200",
      "params" : {
        "contact_field_view_id" : "321",
        "post_call_tokens" : {
          "buyer_type" : "vertical",
          "first_name" : "Mary",
          "last_name" : "Adams",
          "state" : "MD"
        }
      }
    },
    {
      "type" : "WebhookLog",
      "id" : "081fda1d-07ea-4f0e-a7c3-25b4bbf3589d",
      "created_at" : "2023-12-11T11:57:27.443-05:00",
      "owner_id" : 123456,
      "owner_type" : "BuyerConversion",
      "request_url" : "https:\/\/example.com",
      "started_at" : "2023-12-11T11:57:27.369-05:00",
      "finished_at" : "2023-12-11T11:57:27.443-05:00",
      "call_id" : 1234,
      "code" : 200,
      "response_body" : "[]",
      "request_method" : "get",
      "request_body" : "",
      "read_from_cache" : true
    },
    {
      "type" : "CallRecording",
      "id" : "255e39b2-4b1e-4814-a555-27c1b8602f25",
      "created_at" : "2023-12-11T11:58:49.439-05:00",
      "recording_type" : "consumer_and_agent",
      "record_url" : "https:\/\/media.server.com\/v1\/Account\/abcdefg\/Recording\/255e39b2-4b1e-4814-a555-27c1b8602f25.mp3",
      "recording_duration" : 553,
      "leg_id" : 89023
    }
  ]
}