The average number of interactions per conversation
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"ChatDash Official Documentation","colors":{"primary":"#0023E6","light":"#0023E6","dark":"#0023E6"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/chatdash/-c4JWgzAK60YXAj4/logo/chat-dash.png?fit=max\u0026auto=format\u0026n=-c4JWgzAK60YXAj4\u0026q=85\u0026s=839bd877fa7b8e43a6555dd6ab10bb87","dark":"https://mintcdn.com/chatdash/-c4JWgzAK60YXAj4/logo/chat-dash.png?fit=max\u0026auto=format\u0026n=-c4JWgzAK60YXAj4\u0026q=85\u0026s=839bd877fa7b8e43a6555dd6ab10bb87"},"navbar":{"links":[{"label":"Support","href":"mailto:support@chat-dash.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://chat-dash.com/agency/clients"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chatdash","hasAudioNarration":false,"actualSubdomain":"chatdash","customDomains":["docs.chat-dash.com"],"gitSource":{"type":"github","owner":"habeen-jun","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e628572b750f6b6f9c20","collectionId":"2c95d72b-590f-4570-934f-21f60bd17e33","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21e628572b750f6b6f9c20:success","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API Reference","count":138},{"language":"default","tag":"Stripe Billing","count":23},{"language":"default","tag":"Clients","count":9},{"language":"default","tag":"Agents","count":8},{"language":"default","tag":"Leads","count":8},{"language":"default","tag":"Subscriptions","count":6},{"language":"default","tag":"Conversations","count":5},{"language":"default","tag":"Coupons","count":5},{"language":"default","tag":"Products","count":5},{"language":"default","tag":"Webhook Subscriptions","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/analytics/pages/get-analytics","slug":"/api-reference/analytics/pages/get-analytics","pageMetadata":{"openapi":"post /agents/{agentId}/analytics/query","title":"Query Agent Analytics","description":"Query various metrics about a agent, such as the number of conversations, the number of users, and the number of messages","href":"/api-reference/analytics/pages/get-analytics","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Query various metrics about a agent, such as the number of conversations, the number of users, and the number of messages\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /agents/{agentId}/analytics/query","title":"Query Agent Analytics","description":"Query various metrics about a agent, such as the number of conversations, the number of users, and the number of messages","href":"/api-reference/analytics/pages/get-analytics","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Analytics"],"summary":"Query Agent Analytics","description":"Query various metrics about a agent, such as the number of conversations, the number of users, and the number of messages","parameters":["584f3d3c-d852-439f-ada0-68cdb2672b9c","c16cae89-cd51-4edc-a5da-dbc4f3535a6d"],"requestBody":"38736db1-7778-49c7-b475-c8feb0638250","responses":{"200":"409b9239-6fb0-47d2-aa72-d33765fe5baa","500":"2f08bab1-361c-49e7-880a-5299b0df1805"},"method":"post","type":"path","servers":["843649d0-49f2-464a-bd9b-7f932ed284d7"],"security":[],"path":"/agents/{agentId}/analytics/query","baseUrlOptions":["https://api.chat-dash.com/v1/public"],"title":"Query Agent Analytics","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"584f3d3c-d852-439f-ada0-68cdb2672b9c":{"name":"Authorization","in":"header","required":true,"description":"All requests to the ChatDash API must be validated with the agency API Key found on your agency profile","schema":{"type":"string","isRequired":true,"description":"All requests to the ChatDash API must be validated with the agency API Key found on your agency profile","uniqueKey":"","typeLabel":"string"}},"c16cae89-cd51-4edc-a5da-dbc4f3535a6d":{"name":"agentId","in":"path","required":true,"description":"The ID of the agent","schema":{"type":"string","isRequired":true,"description":"The ID of the agent","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"object","properties":{"metrics":{"type":"array","items":{"type":"string","description":"The metrics to query","enum":["conversations","conversationByCountry","uniqueIps","totalCallDuration","totalCost","averageCost","topMisunderstoodMessages","topTopics","endedReason","interactions","incomingTextMessages","tokens","topIntents","understoodMessages","averageInteractions"],"uniqueKey":"query.metrics.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"query.metrics","typeLabel":"enum\u003cstring>[]"},"filter":{"type":"object","properties":{"startTime":{"type":"string","description":"UTC Timestamp in ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ)","uniqueKey":"query.filter.startTime","typeLabel":"string"},"endTime":{"type":"string","description":"UTC Timestamp in ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ)","uniqueKey":"query.filter.endTime","typeLabel":"string"},"utcOffset":{"type":"string","description":"The UTC offset for where the request is made from in the format UTC±[hh], e.g., \"UTC-4\"","uniqueKey":"query.filter.utcOffset","typeLabel":"string"}},"isRequired":true,"uniqueKey":"query.filter","typeLabel":"object"}},"required":["metrics","filter"],"isRequired":true,"uniqueKey":"query","typeLabel":"object"}},"required":["query"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"query":{"metrics":[],"filter":{"startTime":"\u003cstring>","endTime":"\u003cstring>","utcOffset":"\u003cstring>"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"409b9239-6fb0-47d2-aa72-d33765fe5baa":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"conversations":{"type":"object","properties":{"counts":{"type":"array","items":{"type":"integer","uniqueKey":"conversations.counts.items.[INDEX]","typeLabel":"integer"},"description":"The number of conversations by day","uniqueKey":"conversations.counts","typeLabel":"integer[]"},"total":{"type":"integer","description":"The total number of conversations","uniqueKey":"conversations.total","typeLabel":"integer"}},"uniqueKey":"conversations","typeLabel":"object"},"conversationsByCountry":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Country identifier","uniqueKey":"conversationsByCountry.items.[INDEX].id","typeLabel":"string"},"value":{"type":"integer","description":"Number of conversations for the country","uniqueKey":"conversationsByCountry.items.[INDEX].value","typeLabel":"integer"}},"uniqueKey":"conversationsByCountry.items.[INDEX]","typeLabel":"object"},"uniqueKey":"conversationsByCountry","typeLabel":"object[]"},"uniqueIps":{"type":"object","properties":{"counts":{"type":"array","items":{"type":"integer","uniqueKey":"uniqueIps.counts.items.[INDEX]","typeLabel":"integer"},"description":"The number of unique IPs by day","uniqueKey":"uniqueIps.counts","typeLabel":"integer[]"},"total":{"type":"integer","description":"The total number of unique IPs","uniqueKey":"uniqueIps.total","typeLabel":"integer"}},"uniqueKey":"uniqueIps","typeLabel":"object"},"totalCallDuration":{"type":"object","properties":{"counts":{"type":"array","items":{"type":"number","uniqueKey":"totalCallDuration.counts.items.[INDEX]","typeLabel":"number"},"description":"The total call duration by day","uniqueKey":"totalCallDuration.counts","typeLabel":"number[]"},"total":{"type":"number","description":"The overall total call duration","uniqueKey":"totalCallDuration.total","typeLabel":"number"}},"uniqueKey":"totalCallDuration","typeLabel":"object"},"totalCost":{"type":"object","properties":{"counts":{"type":"array","items":{"type":"number","uniqueKey":"totalCost.counts.items.[INDEX]","typeLabel":"number"},"description":"The total cost by day","uniqueKey":"totalCost.counts","typeLabel":"number[]"},"total":{"type":"number","description":"The overall total cost","uniqueKey":"totalCost.total","typeLabel":"number"},"currency":{"type":"string","description":"The currency format used","uniqueKey":"totalCost.currency","typeLabel":"string"}},"uniqueKey":"totalCost","typeLabel":"object"},"averageCost":{"type":"object","properties":{"counts":{"type":"array","items":{"type":"number","uniqueKey":"averageCost.counts.items.[INDEX]","typeLabel":"number"},"description":"The average cost by day","uniqueKey":"averageCost.counts","typeLabel":"number[]"},"average":{"type":"number","description":"The overall average cost","uniqueKey":"averageCost.average","typeLabel":"number"},"currency":{"type":"string","description":"The currency format used","uniqueKey":"averageCost.currency","typeLabel":"string"}},"uniqueKey":"averageCost","typeLabel":"object"},"endedReason":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","description":"The reason for ending the conversation","uniqueKey":"endedReason.items.[INDEX].reason","typeLabel":"string"},"count":{"type":"integer","description":"The number of conversations ended for this reason","uniqueKey":"endedReason.items.[INDEX].count","typeLabel":"integer"}},"uniqueKey":"endedReason.items.[INDEX]","typeLabel":"object"},"uniqueKey":"endedReason","typeLabel":"object[]"},"topMisunderstoodMessages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifier for the misunderstood message","uniqueKey":"topMisunderstoodMessages.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","description":"Label of the misunderstood message","uniqueKey":"topMisunderstoodMessages.items.[INDEX].label","typeLabel":"string"},"count":{"type":"integer","description":"Number of occurrences","uniqueKey":"topMisunderstoodMessages.items.[INDEX].count","typeLabel":"integer"}},"uniqueKey":"topMisunderstoodMessages.items.[INDEX]","typeLabel":"object"},"maxItems":5,"uniqueKey":"topMisunderstoodMessages","typeLabel":"object[]"},"topTopics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifier for the topic","uniqueKey":"topTopics.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","description":"Label of the topic","uniqueKey":"topTopics.items.[INDEX].label","typeLabel":"string"},"count":{"type":"integer","description":"Number of occurrences","uniqueKey":"topTopics.items.[INDEX].count","typeLabel":"integer"}},"uniqueKey":"topTopics.items.[INDEX]","typeLabel":"object"},"maxItems":5,"uniqueKey":"topTopics","typeLabel":"object[]"},"interactions":{"type":"object","properties":{"counts":{"type":"array","items":{"type":"integer","uniqueKey":"interactions.counts.items.[INDEX]","typeLabel":"integer"},"description":"The number of interactions by day","uniqueKey":"interactions.counts","typeLabel":"integer[]"},"total":{"type":"integer","description":"The total number of interactions","uniqueKey":"interactions.total","typeLabel":"integer"}},"uniqueKey":"interactions","typeLabel":"object"},"incomingTextMessages":{"type":"object","properties":{"counts":{"type":"array","items":{"type":"integer","uniqueKey":"incomingTextMessages.counts.items.[INDEX]","typeLabel":"integer"},"description":"The number of incoming text messages by day","uniqueKey":"incomingTextMessages.counts","typeLabel":"integer[]"},"total":{"type":"integer","description":"The total number of incoming text messages","uniqueKey":"incomingTextMessages.total","typeLabel":"integer"}},"uniqueKey":"incomingTextMessages","typeLabel":"object"},"tokens":{"type":"array","items":{"type":"object","properties":{"model":{"type":"string","description":"The model name","uniqueKey":"tokens.items.[INDEX].model","typeLabel":"string"},"count":{"type":"integer","description":"The token count for this model","uniqueKey":"tokens.items.[INDEX].count","typeLabel":"integer"}},"uniqueKey":"tokens.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tokens","typeLabel":"object[]"},"topIntents":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The intent name","uniqueKey":"topIntents.items.[INDEX].name","typeLabel":"string"},"count":{"type":"integer","description":"The number of occurrences of this intent","uniqueKey":"topIntents.items.[INDEX].count","typeLabel":"integer"}},"uniqueKey":"topIntents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"topIntents","typeLabel":"object[]"},"understoodMessages":{"type":"object","properties":{"total":{"type":"integer","description":"The total number of messages","uniqueKey":"understoodMessages.total","typeLabel":"integer"},"understood":{"type":"integer","description":"The number of understood messages","uniqueKey":"understoodMessages.understood","typeLabel":"integer"},"missed":{"type":"integer","description":"The number of not understood messages","uniqueKey":"understoodMessages.missed","typeLabel":"integer"}},"uniqueKey":"understoodMessages","typeLabel":"object"},"averageInteractions":{"type":"integer","description":"The average number of interactions per conversation","uniqueKey":"averageInteractions","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"conversations":{"counts":[123],"total":123},"conversationsByCountry":[{"id":"\u003cstring>","value":123}],"uniqueIps":{"counts":[123],"total":123},"totalCallDuration":{"counts":[123],"total":123},"totalCost":{"counts":[123],"total":123,"currency":"\u003cstring>"},"averageCost":{"counts":[123],"average":123,"currency":"\u003cstring>"},"endedReason":[{"reason":"\u003cstring>","count":123}],"topMisunderstoodMessages":[{"id":"\u003cstring>","label":"\u003cstring>","count":123}],"topTopics":[{"id":"\u003cstring>","label":"\u003cstring>","count":123}],"interactions":{"counts":[123],"total":123},"incomingTextMessages":{"counts":[123],"total":123},"tokens":[{"model":"\u003cstring>","count":123}],"topIntents":[{"name":"\u003cstring>","count":123}],"understoodMessages":{"total":123,"understood":123,"missed":123},"averageInteractions":123}}},"exampleType":"generated"}},"exampleType":"generated"},"2f08bab1-361c-49e7-880a-5299b0df1805":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"An unexpected error occurred","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"An unexpected error occurred"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"843649d0-49f2-464a-bd9b-7f932ed284d7":{"url":"https://api.chat-dash.com/v1/public"}}},"originalFileLocation":"api-reference/analytics/openapi-analytics.json"},"subdomain":"chatdash","siteName":"ChatDash Official Documentation","title":"Query Agent Analytics - ChatDash Official Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/analytics/pages/get-analytics.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Query various metrics about a agent, such as the number of conversations, the number of users, and the number of messages\">\u003cmeta data-mint-head name=\"application-name\" content=\"ChatDash Official Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Query Agent Analytics - ChatDash Official Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Query various metrics about a agent, such as the number of conversations, the number of users, and the number of messages\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ChatDash Official Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chatdash.mintlify.app/_mintlify/api/og/v2?division=Analytics\u0026amp;title=Query+Agent+Analytics\u0026amp;description=Query+various+metrics+about+a+agent%2C+such+as+the+number+of+conversations%2C+the+number+of+users%2C+and+the+number+of+messages\u0026amp;theme=616147d62f0aaa7203aa8a78\u0026amp;signature=27f1664bcb32bd158debffeaf463a79580a84ab08903b03e88134056df6769cd\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Query Agent Analytics - ChatDash Official Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Query various metrics about a agent, such as the number of conversations, the number of users, and the number of messages\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chatdash.mintlify.app/_mintlify/api/og/v2?division=Analytics\u0026amp;title=Query+Agent+Analytics\u0026amp;description=Query+various+metrics+about+a+agent%2C+such+as+the+number+of+conversations%2C+the+number+of+users%2C+and+the+number+of+messages\u0026amp;theme=616147d62f0aaa7203aa8a78\u0026amp;signature=27f1664bcb32bd158debffeaf463a79580a84ab08903b03e88134056df6769cd\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/chatdash/98dM2QlFg7BcfCiV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ChatDash Official Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0023E6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/analytics/pages/get-analytics.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.chat-dash.com/#organization\",\"name\":\"ChatDash Official Documentation\",\"url\":\"https://docs.chat-dash.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/chatdash/-c4JWgzAK60YXAj4/logo/chat-dash.png?fit=max\u0026auto=format\u0026n=-c4JWgzAK60YXAj4\u0026q=85\u0026s=839bd877fa7b8e43a6555dd6ab10bb87\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.chat-dash.com#website\",\"name\":\"ChatDash Official Documentation\",\"url\":\"https://docs.chat-dash.com\",\"publisher\":{\"@id\":\"https://docs.chat-dash.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics#webpage\",\"url\":\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics\",\"name\":\"Query Agent Analytics\",\"description\":\"Query various metrics about a agent, such as the number of conversations, the number of users, and the number of messages\",\"isPartOf\":{\"@id\":\"https://docs.chat-dash.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.chat-dash.com/api-reference/agents/pages/get-agents\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Query Agent Analytics\",\"item\":\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics#apireference\",\"headline\":\"Query Agent Analytics\",\"name\":\"Query Agent Analytics\",\"description\":\"Query various metrics about a agent, such as the number of conversations, the number of users, and the number of messages\",\"url\":\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics\",\"mainEntityOfPage\":{\"@id\":\"https://docs.chat-dash.com/api-reference/analytics/pages/get-analytics#webpage\"},\"publisher\":{\"@id\":\"https://docs.chat-dash.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.chat-dash.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ChatDash Official Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"ChatDash Official Documentation","nav":{"global":null,"anchors":[{"anchor":"Discord Community","href":"https://discord.com/invite/R9dx4mZphS","icon":"discord"},{"anchor":"API Reference","icon":"rectangle-terminal","groups":[{"group":"Using the API","pages":[{"title":"ChatDash API Introduction","href":"/api-reference/introduction"},{"title":"Use Case Examples","href":"/api-reference/use-case-examples"}]},{"group":"API Reference","pages":[{"group":"Agents","icon":"robot","pages":[{"openapi":"get /agents","title":"Fetch Agents","href":"/api-reference/agents/pages/get-agents"},{"openapi":"get /agents/{agentId}","title":"Fetch Agent","href":"/api-reference/agents/pages/get-agent"},{"openapi":"post /agents","title":"Create Agent","href":"/api-reference/agents/pages/post-agents"},{"openapi":"put /agents/{agentId}","title":"Update Agent","href":"/api-reference/agents/pages/put-agents"},{"openapi":"delete /agents/{agentId}","title":"Delete Agent","href":"/api-reference/agents/pages/delete-agents"},{"openapi":"get /clients/{clientId}/agents","title":"Fetch Client Agents","href":"/api-reference/agents/pages/get-client-agents"},{"openapi":"put /agents/assign","title":"Assign Agents to Client","href":"/api-reference/agents/pages/put-agents-assign"},{"openapi":"put /agents/{agentId}/unassign","title":"Unassign Agent from Client","href":"/api-reference/agents/pages/put-agents-unassign"}]},{"group":"Clients","icon":"user-tie","pages":[{"openapi":"get /clients","title":"Fetch Clients","href":"/api-reference/clients/pages/get-clients"},{"openapi":"get /clients/{clientId}","title":"Fetch Client","href":"/api-reference/clients/pages/get-client"},{"openapi":"post /clients","title":"Create Client","href":"/api-reference/clients/pages/post-clients"},{"openapi":"put /clients/{clientId}","title":"Update Client","href":"/api-reference/clients/pages/put-clients"},{"openapi":"delete /clients/{clientId}","title":"Delete Client","href":"/api-reference/clients/pages/delete-clients"},{"openapi":"get /clients/{clientId}/members","title":"Fetch Client Members","href":"/api-reference/clients/pages/get-client-members"},{"openapi":"post /clients/{clientId}/members","title":"Add Client Member","href":"/api-reference/clients/pages/post-client-members"},{"openapi":"put /clients/{clientId}/members/{memberId}","title":"Update Client Member","href":"/api-reference/clients/pages/put-client-members"},{"openapi":"delete /clients/{clientId}/members/{memberId}","title":"Remove Client Member","href":"/api-reference/clients/pages/delete-client-members"}]},{"group":"Conversations","icon":"comment","pages":[{"openapi":"get /agents/{agentId}/conversations","title":"Fetch Agent Conversations","href":"/api-reference/conversations/pages/get-agents-conversations"},{"openapi":"get /agents/{agentId}/conversations/{conversationId}","title":"Fetch Single Conversation","href":"/api-reference/conversations/pages/get-conversation"},{"openapi":"post /agents/{agentId}/conversations","title":"Create Conversation","href":"/api-reference/conversations/pages/post-agents-conversations"},{"openapi":"put /agents/{agentId}/conversations/{conversationId}","title":"Update Conversation","href":"/api-reference/conversations/pages/put-agents-conversations"},{"openapi":"delete /agents/{agentId}/conversations/{conversationId}","title":"Delete Conversation","href":"/api-reference/conversations/pages/delete-agents-conversations"}]},{"group":"Audit Logs","icon":"clipboard-list","pages":[{"openapi":"GET /agents/{agentId}/audit-logs","title":"Fetch Agent Audit Logs","href":"/api-reference/audit-logs/pages/get-agents-audit-logs"},{"openapi":"GET /conversations/{conversationId}/audit-logs","title":"Fetch Conversation Audit Logs","href":"/api-reference/audit-logs/pages/get-conversations-audit-logs"}]},{"group":"Messages","icon":"envelope","pages":[{"openapi":"get /agents/{agentId}/conversations/{conversationId}/messages","title":"Get Conversation Messages","href":"/api-reference/messages/pages/get-conversations-messages"},{"openapi":"post /agents/{agentId}/conversations/{conversationId}/messages","title":"Push Conversation Messages","href":"/api-reference/messages/pages/post-conversations-messages"},{"openapi":"put /agents/{agentId}/conversations/{conversationId}/messages","title":"Overwrite Conversation Messages","href":"/api-reference/messages/pages/put-conversations-messages"},{"openapi":"delete /agents/{agentId}/conversations/{conversationId}/messages","title":"Delete Conversation Messages","description":"Delete all messages for a conversation","href":"/api-reference/messages/pages/delete-conversations-messages"}]},{"group":"Analytics","icon":"chart-line","pages":[{"openapi":"post /agents/{agentId}/analytics/query","title":"Query Agent Analytics","href":"/api-reference/analytics/pages/get-analytics"}]},{"group":"Leads","icon":"user-group","pages":[{"openapi":"get /agents/{agentId}/leads","title":"Fetch Agent Leads","description":"Fetch all leads for a specific agent","href":"/api-reference/leads/pages/get-leads"},{"openapi":"post /agents/{agentId}/leads","title":"Create Leads","href":"/api-reference/leads/pages/post-leads"},{"openapi":"put /agents/{agentId}/leads/{leadId}","title":"Update Lead","href":"/api-reference/leads/pages/put-leads"},{"openapi":"delete /agents/{agentId}/leads/{leadId}","title":"Delete Lead","href":"/api-reference/leads/pages/delete-leads"},{"openapi":"get /agents/{agentId}/leads/tags","title":"Fetch Tags","href":"/api-reference/leads/pages/get-leads-tags"},{"openapi":"post /agents/{agentId}/leads/tags","title":"Create Tag","href":"/api-reference/leads/pages/post-leads-tags"},{"openapi":"put /agents/{agentId}/leads/tags/{tagId}","title":"Update Tag","href":"/api-reference/leads/pages/put-leads-tags"},{"openapi":"delete /agents/{agentId}/leads/tags/{tagId}","title":"Delete Tag","href":"/api-reference/leads/pages/delete-leads-tags"}]},{"group":"AI Analysis","icon":"brain","pages":[{"openapi":"post /agents/{agentId}/conversations/{conversationId}/{endpoint}","title":"Trigger AI Analysis","href":"/api-reference/ai-analysis/pages/post-ai-analysis"}]},{"group":"Stripe Billing","icon":"credit-card","pages":[{"group":"Products","pages":[{"openapi":"get /stripe/connect/accounts/{accountId}/products","title":"List Products","href":"/api-reference/stripe/pages/get-stripe-connect-products"},{"openapi":"get /stripe/connect/accounts/{accountId}/products/{productId}","title":"Get Product","href":"/api-reference/stripe/pages/get-stripe-connect-product"},{"openapi":"post /stripe/connect/accounts/{accountId}/products","title":"Create Product","href":"/api-reference/stripe/pages/post-stripe-connect-products"},{"openapi":"put /stripe/connect/accounts/{accountId}/products/{productId}","title":"Update Product","href":"/api-reference/stripe/pages/put-stripe-connect-product"},{"openapi":"delete /stripe/connect/accounts/{accountId}/products/{productId}","title":"Delete Product","href":"/api-reference/stripe/pages/delete-stripe-connect-product"}]},{"group":"Subscriptions","pages":[{"openapi":"get /stripe/connect/accounts/{accountId}/subscriptions","title":"List Subscriptions","href":"/api-reference/stripe/pages/get-stripe-connect-subscriptions"},{"openapi":"get /stripe/connect/accounts/{accountId}/subscriptions/by-customer","title":"List Subscriptions by Customer","href":"/api-reference/stripe/pages/get-stripe-connect-subscriptions-by-customer"},{"openapi":"get /stripe/connect/accounts/{accountId}/subscriptions/{subscriptionId}","title":"Get Subscription","href":"/api-reference/stripe/pages/get-stripe-connect-subscription"},{"openapi":"post /stripe/connect/accounts/{accountId}/subscriptions","title":"Create Subscription","href":"/api-reference/stripe/pages/post-stripe-connect-subscriptions"},{"openapi":"put /stripe/connect/accounts/{accountId}/subscriptions/{subscriptionId}","title":"Update Subscription","href":"/api-reference/stripe/pages/put-stripe-connect-subscription"},{"openapi":"delete /stripe/connect/accounts/{accountId}/subscriptions/{subscriptionId}","title":"Delete Subscription","href":"/api-reference/stripe/pages/delete-stripe-connect-subscription"}]},{"group":"Transactions","pages":[{"openapi":"get /stripe/connect/accounts/{accountId}/transactions","title":"List Transactions","href":"/api-reference/stripe/pages/get-stripe-connect-transactions"},{"openapi":"get /stripe/connect/accounts/{accountId}/transactions/{transactionId}","title":"Get Transaction","href":"/api-reference/stripe/pages/get-stripe-connect-transaction"}]},{"group":"Invoices","pages":[{"openapi":"get /stripe/connect/accounts/{accountId}/invoices","title":"List Invoices","href":"/api-reference/stripe/pages/get-stripe-connect-invoices"},{"openapi":"get /stripe/connect/accounts/{accountId}/invoices/{invoiceId}","title":"Get Invoice","href":"/api-reference/stripe/pages/get-stripe-connect-invoice"},{"openapi":"post /stripe/connect/accounts/{accountId}/invoices","title":"Create Invoice","href":"/api-reference/stripe/pages/post-stripe-connect-invoices"}]},{"group":"Coupons","pages":[{"openapi":"get /stripe/connect/accounts/{accountId}/coupons","title":"List Coupons","href":"/api-reference/stripe/pages/get-stripe-connect-coupons"},{"openapi":"get /stripe/connect/accounts/{accountId}/coupons/{couponId}","title":"Get Coupon","href":"/api-reference/stripe/pages/get-stripe-connect-coupon"},{"openapi":"post /stripe/connect/accounts/{accountId}/coupons","title":"Create Coupon","href":"/api-reference/stripe/pages/post-stripe-connect-coupons"},{"openapi":"put /stripe/connect/accounts/{accountId}/coupons/{couponId}","title":"Update Coupon","href":"/api-reference/stripe/pages/put-stripe-connect-coupon"},{"openapi":"delete /stripe/connect/accounts/{accountId}/coupons/{couponId}","title":"Delete Coupon","href":"/api-reference/stripe/pages/delete-stripe-connect-coupon"}]},{"group":"Promotion Codes","pages":[{"openapi":"get /stripe/connect/accounts/{accountId}/coupons/{couponId}/promotion-codes","title":"List Promotion Codes by Coupon","href":"/api-reference/stripe/pages/get-stripe-connect-promotion-codes-by-coupon"},{"openapi":"post /stripe/connect/accounts/{accountId}/promotion-codes","title":"Create Promotion Code","href":"/api-reference/stripe/pages/post-stripe-connect-promotion-codes"}]}]},{"group":"Webhook Subscriptions","icon":"webhook","pages":[{"openapi":"get /webhooks/subscriptions","title":"List Webhook Subscriptions","href":"/api-reference/webhooks/pages/get-webhook-subscriptions"},{"openapi":"post /webhooks/subscriptions","title":"Create Webhook Subscription","href":"/api-reference/webhooks/pages/post-webhook-subscriptions"},{"openapi":"get /webhooks/subscriptions/{subscriptionId}","title":"Get Webhook Subscription","href":"/api-reference/webhooks/pages/get-webhook-subscription"},{"openapi":"delete /webhooks/subscriptions/{subscriptionId}","title":"Delete Webhook Subscription","href":"/api-reference/webhooks/pages/delete-webhook-subscription"},{"openapi":"put /webhooks/subscriptions/{subscriptionId}/events","title":"Update Subscription Events","href":"/api-reference/webhooks/pages/put-webhook-subscription-events"}]},{"group":"Phone Numbers","icon":"phone","pages":[{"openapi":"get /clients/{clientId}/phone-numbers","title":"Get Phone Numbers","href":"/api-reference/phone-numbers/pages/get-phone-numbers"},{"openapi":"post /clients/{clientId}/agents/{agentId}/outbound-call","title":"Send Outbound Call","href":"/api-reference/phone-numbers/pages/post-outbound-call"}]}]}]}]},"title":"Query Agent Analytics - ChatDash Official Documentation","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}