Median

GET /analytics/conversations

Updated Oct 1, 20262 minute read

Conversation volume

How many started each day, which door they came through, how the window's conversations ended up, and what the agent reached for.

Part of Analytics.

Parameters

NameInTypeRequiredDescription
fromqueryintegerNoThe window's start, unix ms. Defaults to days ago.
daysquery7 | 30 | 90NoDaily buckets after from. Default 30.

Responses

StatusDescription
200The window, bucketed by day.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
perDayinteger[]No
perDayFinishedinteger[]No
perDayFinishedByAgentinteger[]No
totalintegerNo
byChannelobjectNo
byChannel.widgetintegerNo
byChannel.emailintegerNo
byChannel.discordintegerNo
outcomesobjectNo
outcomes.openintegerNo
outcomes.finishedintegerNo
outcomes.finishedByAgentintegerNo
outcomes.finishedByPeopleintegerNo
funnelobjectNo
funnel.startedintegerNo
funnel.agentRepliedintegerNo
funnel.customerReturnedintegerNo
funnel.handedOffintegerNo
funnel.finishedintegerNo
funnel.resolvedintegerNo
funnel.closedintegerNo
sentimentobjectNo
sentiment.positiveintegerNo
sentiment.neutralintegerNo
sentiment.negativeintegerNo
sentiment.waitingintegerNo
actionsobjectNoWhat the agent reached for, then how those threads ended. primary is the middle column. toOutcome is the next split. The remaining counts overlap.
actions.primaryobjectNo
actions.primary.usedToolintegerNo
actions.primary.filedReportintegerNo
actions.primary.lookedUpintegerNo
actions.primary.justRepliedintegerNo
actions.primary.neverRepliedintegerNo
actions.searchedintegerNo
actions.usedToolintegerNo
actions.filedintegerNo
actions.toOutcomeobjectNo
actions.toOutcome.usedToolobjectNo
actions.toOutcome.filedReportobjectNo
actions.toOutcome.lookedUpobjectNo
actions.toOutcome.justRepliedobjectNo
actions.toOutcome.neverRepliedobjectNo
perDayHandedOffinteger[]No
perDayCustomerReturnedinteger[]No
perDayByChannelobjectNo
perDayByChannel.widgetinteger[]No
perDayByChannel.emailinteger[]No
perDayByChannel.discordinteger[]No
byHourinteger[]NoStarted per hour of the window's day, midnight first. 24 entries.
topPagesobject[]NoWhere conversations began, busiest pages first.
topPages[].pathstringNo
topPages[].countintegerNo
customersobjectNoHow many different people wrote in, and how many wrote more than once.
customers.distinctintegerNo
customers.repeatintegerNo
resolveTimeobjectNoFirst message to last, over finished conversations: the median in milliseconds, and a histogram of under five minutes, five to thirty, thirty to two hours, two hours to a day, and longer.
resolveTime.mediananyNo
resolveTime.bucketsinteger[]No
cappedbooleanNo

Example request

curl https://api.median.sh/v1/analytics/conversations \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc