GET
/
api
/
v1
/
analytics
Get Conversation Analytics
curl --request GET \
  --url https://api.fleetworks.ai/api/v1/analytics \
  --header 'Authorization: Bearer <token>'
{
  "totalCalls": 245,
  "inboundCalls": 180,
  "outboundCalls": 65,
  "inboundCallsTags": {
    "negotiation": 45,
    "booking_confirmed": 30,
    "general_inquiry": 105
  },
  "outboundCallsTags": {
    "follow_up": 20,
    "new_opportunity": 45
  },
  "inboundCallsWithBids": 75,
  "outboundCallsWithBids": 22,
  "inboundCallsTransferred": 12,
  "outboundCallsTransferred": 3,
  "inboundCallMinutes": 1240.5,
  "outboundCallMinutes": 425.3,
  "avgNegotiatedValue": 125.5,
  "totalEmailThreads": 89,
  "inboundEmailThreads": 67,
  "outboundEmailThreads": 22,
  "inboundEmailThreadsTags": {
    "rate_request": 34,
    "booking_confirmation": 15,
    "general_inquiry": 18
  },
  "outboundEmailThreadsTags": {
    "quote_sent": 12,
    "follow_up": 10
  },
  "inboundEmailThreadsWithBids": 28,
  "outboundEmailThreadsWithBids": 8,
  "totalUniqueLoads": 156,
  "totalE2EBookings": 43,
  "totalAssistedBookings": 35,
  "totalLoadsBooked": 78,
  "statsByLabel": [
    {
      "label": "Jan 15",
      "from": "2024-01-15T00:00:00.000-06:00",
      "to": "2024-01-15T23:59:59.999-06:00",
      "totalCalls": 35,
      "inboundCalls": 25,
      "outboundCalls": 10,
      "inboundCallsTags": {
        "negotiation": 8,
        "booking_confirmed": 5,
        "general_inquiry": 12
      },
      "outboundCallsTags": {
        "follow_up": 4,
        "new_opportunity": 6
      },
      "inboundCallsWithBids": 10,
      "outboundCallsWithBids": 3,
      "inboundCallsTransferred": 2,
      "outboundCallsTransferred": 0,
      "inboundCallMinutes": 180.5,
      "outboundCallMinutes": 65.2,
      "avgNegotiatedValue": 115,
      "totalEmailThreads": 12,
      "inboundEmailThreads": 9,
      "outboundEmailThreads": 3,
      "inboundEmailThreadsTags": {
        "rate_request": 5,
        "booking_confirmation": 2,
        "general_inquiry": 2
      },
      "outboundEmailThreadsTags": {
        "quote_sent": 2,
        "follow_up": 1
      },
      "inboundEmailThreadsWithBids": 4,
      "outboundEmailThreadsWithBids": 1,
      "totalUniqueLoads": 22,
      "totalE2EBookings": 6,
      "totalAssistedBookings": 5,
      "totalLoadsBooked": 11
    }
  ],
  "previousPeriod": {
    "totalCalls": 220,
    "inboundCalls": 165,
    "outboundCalls": 55,
    "inboundCallsTags": {
      "negotiation": 40,
      "booking_confirmed": 25,
      "general_inquiry": 100
    },
    "outboundCallsTags": {
      "follow_up": 18,
      "new_opportunity": 37
    },
    "inboundCallsWithBids": 68,
    "outboundCallsWithBids": 19,
    "inboundCallsTransferred": 10,
    "outboundCallsTransferred": 2,
    "inboundCallMinutes": 1120.3,
    "outboundCallMinutes": 385.7,
    "avgNegotiatedValue": 120.25,
    "totalEmailThreads": 82,
    "inboundEmailThreads": 61,
    "outboundEmailThreads": 21,
    "inboundEmailThreadsTags": {
      "rate_request": 30,
      "booking_confirmation": 13,
      "general_inquiry": 18
    },
    "outboundEmailThreadsTags": {
      "quote_sent": 11,
      "follow_up": 10
    },
    "inboundEmailThreadsWithBids": 25,
    "outboundEmailThreadsWithBids": 7,
    "totalUniqueLoads": 148,
    "totalE2EBookings": 39,
    "totalAssistedBookings": 32,
    "totalLoadsBooked": 71,
    "statsByLabel": [
      {
        "label": "Jan 8",
        "from": "2024-01-08T00:00:00.000-06:00",
        "to": "2024-01-08T23:59:59.999-06:00",
        "totalCalls": 32,
        "inboundCalls": 24,
        "outboundCalls": 8,
        "inboundCallsTags": {
          "negotiation": 6,
          "booking_confirmed": 4,
          "general_inquiry": 14
        },
        "outboundCallsTags": {
          "follow_up": 3,
          "new_opportunity": 5
        },
        "inboundCallsWithBids": 9,
        "outboundCallsWithBids": 2,
        "inboundCallsTransferred": 1,
        "outboundCallsTransferred": 0,
        "inboundCallMinutes": 165.2,
        "outboundCallMinutes": 55.8,
        "avgNegotiatedValue": 118.5,
        "totalEmailThreads": 11,
        "inboundEmailThreads": 8,
        "outboundEmailThreads": 3,
        "inboundEmailThreadsTags": {
          "rate_request": 4,
          "booking_confirmation": 2,
          "general_inquiry": 2
        },
        "outboundEmailThreadsTags": {
          "quote_sent": 2,
          "follow_up": 1
        },
        "inboundEmailThreadsWithBids": 3,
        "outboundEmailThreadsWithBids": 1,
        "totalUniqueLoads": 20,
        "totalE2EBookings": 5,
        "totalAssistedBookings": 4,
        "totalLoadsBooked": 9
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

An authentication token that identifies the organization associated with the event. You can reach out to FleetWorks team to request a token.

Query Parameters

fromDate
string<date>
required

Start date in ISO 8601 format (e.g., "2024-01-01").

toDate
string<date>
required

End date in ISO 8601 format.

granularity
enum<string>
required

Time period grouping for the analytics data.

Available options:
hour,
day
timezone
string
default:America/Chicago

Timezone for date calculations (e.g., "America/New_York").

Response

Successful retrieval of conversation analytics data.

Comprehensive analytics for calls and emails with time-series data and period comparisons

totalCalls
integer
required

Total number of calls in the current period

statsByLabel
object[]
required

Time series breakdown of all metrics

previousPeriod
object
required

Same metrics for the previous period Base metrics shared across different analytics views

inboundCalls
integer

Number of inbound calls

outboundCalls
integer

Number of outbound calls

inboundCallsTags
object

Count of inbound calls by content tag

outboundCallsTags
object

Count of outbound calls by content tag

inboundCallsWithBids
integer

Inbound calls that resulted in bids

outboundCallsWithBids
integer

Outbound calls that resulted in bids

inboundCallsTransferred
integer

Number of transferred inbound calls

outboundCallsTransferred
integer

Number of transferred outbound calls

inboundCallMinutes
number

Total minutes of inbound calls

outboundCallMinutes
number

Total minutes of outbound calls

avgNegotiatedValue
number

Average negotiated value in dollars

totalEmailThreads
integer

Total number of email threads

inboundEmailThreads
integer

Number of inbound email threads

outboundEmailThreads
integer

Number of outbound email threads

inboundEmailThreadsTags
object

Count of inbound email threads by content tag

outboundEmailThreadsTags
object

Count of outbound email threads by content tag

inboundEmailThreadsWithBids
integer

Inbound email threads that resulted in bids

outboundEmailThreadsWithBids
integer

Outbound email threads that resulted in bids

totalUniqueLoads
integer

Number of unique loads discussed

totalE2EBookings
integer

Number of end-to-end bookings completed

totalAssistedBookings
integer

Number of assisted bookings completed

totalLoadsBooked
integer

Total number of loads booked