What it does: Returns aggregated call metrics for a date range: total calls, connected calls, pickup rate, average duration, and transfers to a human agent. You can bucket results by hour, day, week, or month, split them by agent, campaign, or both, and filter by agent, campaign, call direction, or call status.It is built for dashboards and operational reporting. You get the totals directly instead of paging through Get Conversation Logs and counting calls yourself.You need: An API key with the conversations permission that belongs to a user with the org_admin or developer role. To filter by agent, get botId values from List Agents.
To get the outcome or transcript of a single call, use Get Conversation Statistics (GET /v1/conversations/{conversationId}/stats). This endpoint returns totals only. It does not return per-call data.
Only production calls are counted. Calls in development or staging are excluded, and there is no environment parameter.
Required Permission
conversations
Required Role
org_admin or developer. API keys that belong to any other role, such as QA, receive 403.
Request Body
Field
Type
Required
Description
startDate
string
Yes
First day of the range, YYYY-MM-DD. Starts at 00:00:00 IST.
endDate
string
Yes
Last day of the range, YYYY-MM-DD. Ends at 23:59:59 IST. Must be on or after startDate. Maximum span: 93 days.
granularity
string
No
Time bucket: hour, day, week, month, or total. Default: total.
groupBy
array of strings
No
Split results by botId, campaignId, or both. Maximum 2 values.
filter.botId
string | array
No
Count only calls handled by these agents.
filter.campaignId
string | array
No
Count only calls from these campaigns.
filter.type
string
No
Call direction, for example Inbound or Outbound.
filter.callStatus
string | array
No
Telephony status, for example ANSWERED, NO ANSWER, BUSY, FAILED. Use "NA" to match calls with no status recorded.
This request returns one row per day, totalled across all agents and campaigns. If you omit granularity, you get a single row covering the whole range.
How results are shaped
Three request fields decide what comes back:
filter → which calls are counted (agent, campaign, direction, status)granularity → how time is bucketed (hour / day / week / month / total)groupBy → how each bucket is split (by agent, by campaign, or both)
Each row in data is one time bucket × group combination. For example, granularity: "day" over 7 days with groupBy: ["botId"] and 3 active agents returns up to 21 rows.
Time buckets (granularity)
Value
Time field on each row
Example label
hour
date
"2026-03-18T14:00"
day
date
"2026-03-18"
week
week
"16-03-2026 to 22-03-2026"
month
month
"2026-03"
total (default)
none
One row per group for the whole range
All labels are in IST.
The week label uses DD-MM-YYYY. The other labels use YYYY-MM-DD, so parse week labels separately.
Grouping (groupBy)
groupBy
You get
omitted
One row per time bucket, across all agents and campaigns
["botId"]
One row per agent, with botId and botName
["campaignId"]
One row per campaign. Calls that are not part of a campaign are grouped under "no_campaign".
["botId", "campaignId"]
One row per agent and campaign pair
Filters
Each filter field accepts a single value or an array. Within an array, a call matches if it matches any of the values. Across fields, a call must match all of the filters. You can use any filter with any groupBy.
Pagination works on rows, not calls. Hourly buckets over a long range, especially with grouping, can produce more than 500 rows. Increase pageNo until it equals totalPages.
Edge cases
Scenario
What happens
startDate equals endDate
Valid. Returns that single day.
Range longer than 93 days
400. Split it into several requests and combine the results (see below).
Call is not part of a campaign
When grouping by campaign, it appears under campaignId: "no_campaign".
filter.callStatus set to "ANSWERED"
pickupRate is always 1, because only answered calls are counted. Leave callStatus unset to measure pickup rate.
Your business day is not on IST
Dates are always interpreted in IST, and there is no timezone parameter. Request granularity: "hour" and re-bucket the rows on your side.
Combining results across pages or requests
You can add up totalCalls, connected, and callTransfers directly. Do not average pickupRate or avgDurationSec across rows. Instead:
pickupRate = sum of connected ÷ sum of totalCalls
avgDurationSec = a weighted average across rows, not a simple average of the row values
Errors
Status
Condition
Message
400
startDate is after endDate
'startDate' must be before 'endDate'.
400
Range exceeds 93 days
Date range exceeds the maximum allowed span of 93 days.
Access denied. Only org_admin and developer roles can access call statistics.
422
Invalid granularity
Input should be 'hour', 'day', 'week', 'month' or 'total'.
422
Invalid groupBy value
Input should be 'botId' or 'campaignId'.
422
More than 2 groupBy values
Maximum 2 groupBy dimensions allowed.
422
pageSize above 500
Input should be less than or equal to 500.
422
startDate or endDate missing
Field required.
429
Rate limit exceeded
Retry after the interval in the Retry-After header.
500
Server error
An unexpected error occurred while computing call statistics.
400 Bad Request
{ "status": "failure", "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "message": "Date range exceeds the maximum allowed span of 93 days."}
403 Forbidden
{ "status": "failure", "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "message": "Access denied. Only org_admin and developer roles can access call statistics."}
Save the requestId from every response. You will need it if you contact Gnani support to trace a specific request.
Authorizations
x-api-key
string
header
required
API key with 'conversations' permission
Body
application/json
startDate
string<date>
required
First day of the range (YYYY-MM-DD), from 00:00:00 IST.
Example:
"2026-03-18"
endDate
string<date>
required
Last day of the range (YYYY-MM-DD), until 23:59:59 IST. Must be on or after startDate. Maximum span 93 days.
Example:
"2026-03-19"
granularity
enum<string>
default:total
Time bucket size.
Available options:
hour,
day,
week,
month,
total
groupBy
enum<string>[]
Split results by agent, campaign, or both.
Maximum array length: 2
Available options:
botId,
campaignId
filter
object
Narrows which calls are counted. Each field accepts a single value or an array.
Show child attributes
pageNo
integer
default:1
Page number (1-based).
Required range: x >= 1
pageSize
integer
default:100
Rows per page.
Required range: 1 <= x <= 500
Response
Aggregated statistics retrieved successfully
status
string
Example:
"success"
requestId
string
message
string
Example:
"Conversation stats retrieved successfully."
response
object
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Gnani AI Documentation","description":"Gnani AI docs for Speech APIs (STT and TTS), Agent Builder, and the Agent Builder Platform API. Build Voice AI for Indian languages and call audio.","colors":{"primary":"#1A1A1A","light":"#FAFAFA","dark":"#1A1A1A"},"logo":{"light":"https://mintcdn.com/gnaniinnovationsprivatelimited/07TQaHxEIXJZr-iJ/logo/favicon.svg?fit=max\u0026auto=format\u0026n=07TQaHxEIXJZr-iJ\u0026q=85\u0026s=feca06a904160c2b661bfa77fe1f90c4","dark":"https://mintcdn.com/gnaniinnovationsprivatelimited/07TQaHxEIXJZr-iJ/logo/favicon.svg?fit=max\u0026auto=format\u0026n=07TQaHxEIXJZr-iJ\u0026q=85\u0026s=feca06a904160c2b661bfa77fe1f90c4","href":"https://app.gnani.ai/voice"},"favicon":"https://mintcdn.com/gnaniinnovationsprivatelimited/j9EzPlQTWx8MehCB/favicon.svg?fit=max\u0026auto=format\u0026n=j9EzPlQTWx8MehCB\u0026q=85\u0026s=f14fb3fd819d0b628fbcd5108850f804","api":{"openapi":["STT.yml","STTBatch.yml","TTS.yml","VC.yml","voice-clone-embeddings.yml","agents_openapi.yml","agent_config_openapi.yml"],"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript"],"prefill":true},"mdx":{"auth":{"method":"key","name":"X-API-Key-ID"},"server":"https://api.vachana.ai"}},"appearance":{"default":"system","strict":false},"background":{"decoration":"gradient","color":{"light":"#FAFAFA","dark":"#1A1A1A"}},"navbar":{"links":[{"href":"mailto:hello-inya@gnani.site","label":"Support"},{"icon":"discord","href":"https://discord.gg/aECcvtABpq","label":"Community"},{"href":"https://www.gnani.ai/","label":"Website"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.gnani.ai/voice"}},"footer":{"socials":{"x":"https://x.com/GnaniAi","linkedin":"https://www.linkedin.com/company/gnani-ai","website":"https://www.gnani.ai/","instagram":"https://instagram.com/gnani.ai"}},"seo":{"indexing":"all"},"fonts":{"body":{"family":"Inter"}},"integrations":{"clarity":{"projectId":"ytd0fajeva"},"ga4":{"measurementId":"G-58CTSCY1G8"}},"contextual":{"options":[{"title":"View as Markdown","description":"View this page as Markdown on docs.gnani.ai","icon":"file-text","href":{"base":"https://docs.gnani.ai$path.md"}},"copy",{"title":"Open in Claude","description":"Open this page in Claude using docs.gnani.ai","icon":"claude","href":{"base":"https://claude.ai/new","query":[{"key":"q","value":"Read from https://docs.gnani.ai$path.md so I can ask questions about it."}]}},{"title":"Open in ChatGPT","description":"Open this page in ChatGPT using docs.gnani.ai","icon":"openai","href":{"base":"https://chat.openai.com/","query":[{"key":"hints","value":"search"},{"key":"q","value":"Read from https://docs.gnani.ai$path so I can ask questions about it."}]}},"add-mcp","mcp","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gnaniinnovationsprivatelimited","hasAudioNarration":false,"actualSubdomain":"gnaniinnovationsprivatelimited","customDomains":["docs.gnani.ai"],"gitSource":{"type":"github","owner":"gnani-ai-mintlify","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false},"entitlements":{},"buildId":"6ae480c3c2f3f73890232923","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"default","tag":"Gnani AI APIs","count":37},{"language":"default","tag":"Gnani AI Agent Builder APIs","count":28},{"language":"default","tag":"Gnani AI Agents","count":26},{"language":"default","tag":"APIs","count":25},{"language":"default","tag":"Speech-to-Text","count":15},{"language":"default","tag":"Gnani APIs","count":8},{"language":"default","tag":"Getting Started","count":7},{"language":"default","tag":"Agents API","count":7},{"language":"default","tag":"Batch transcription","count":7},{"language":"default","tag":"Automating Workflows with Integrations","count":6}],"searchSettings":{"showContentSnippets":false}},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"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":"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":"full-page-search","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":"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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html[data-gnani-index] #content-side-layout[data-api-example]>:not(#gnani-toc-layout){display:none!important}html[data-gnani-index] [id$=\"operation-page\"]>div:first-child>div:nth-child(2){display:none!important}#gnani-toc-layout{display:none;box-sizing:border-box;max-height:100%;padding-left:2.5rem;width:19rem}@media (min-width: 1280px){#gnani-toc-layout{display:flex}}#gnani-toc{width:16.5rem;min-width:0;max-height:100%;margin-top:-2.5rem;padding:2.5rem 0 1rem;overflow-y:auto;font-size:0.875rem;line-height:1.5rem;scrollbar-width:none}#gnani-toc::-webkit-scrollbar{display:none}#gnani-toc .gnani-toc-title{display:flex;align-items:center;gap:0.5rem;margin:0 0 0.5rem;font-weight:500;color:rgb(55 65 81)}html.dark #gnani-toc .gnani-toc-title{color:rgb(209 213 219)}#gnani-toc ul{margin:0;padding:0;list-style:none}#gnani-toc a{display:block;padding:0.25rem 0 0.25rem var(--gnani-toc-indent, 0);font-weight:500;color:rgb(75 85 99);text-decoration:none;overflow-wrap:anywhere}html.dark #gnani-toc a{color:rgb(156 163 175)}#gnani-toc a:hover{color:rgb(17 24 39)}html.dark #gnani-toc a:hover{color:rgb(209 213 219)}#gnani-toc li[data-active]>a{color:rgb(17 24 39)}html.dark #gnani-toc li[data-active]>a{color:rgb(250 250 250)}"}],"page":{"pagePath":"Platform/Aggregated_Stats","slug":"/Platform/Aggregated_Stats","pageMetadata":{"title":"Get Aggregated Stats","description":"Get call volume, pickup rate, duration, and transfers across agents and campaigns for a date range","openapi":"agents_openapi.yml POST /v1/conversations/stats","href":"/Platform/Aggregated_Stats"},"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: \"Get call volume, pickup rate, duration, and transfers across agents and campaigns for a date range\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Returns `,_jsx(_components.strong,{children:`aggregated`}),` call metrics for a date range: total calls, connected calls, pickup rate, average duration, and transfers to a human agent. You can bucket results by hour, day, week, or month, split them by agent, campaign, or both, and filter by agent, campaign, call direction, or call status.`]}),`\n`,_jsxs(_components.p,{children:[`It is built for dashboards and operational reporting. You get the totals directly instead of paging through `,_jsx(_components.a,{href:`/Platform/Get_Conversation_Logs`,children:`Get Conversation Logs`}),` and counting calls yourself.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`You need:`}),` An API key with the `,_jsx(_components.code,{children:`conversations`}),` permission that belongs to a user with the `,_jsx(_components.code,{children:`org_admin`}),` or `,_jsx(_components.code,{children:`developer`}),` role. To filter by agent, get `,_jsx(_components.code,{children:`botId`}),` values from `,_jsx(_components.a,{href:`/Platform/List_Agents`,children:`List Agents`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`To get the outcome or transcript of a `,_jsx(_components.strong,{children:`single`}),` call, use `,_jsx(_components.a,{href:`/Platform/Get_Conversation_Stats`,children:`Get Conversation Statistics`}),` (`,_jsx(_components.code,{children:`GET /v1/conversations/{conversationId}/stats`}),`). This endpoint returns totals only. It does not return per-call data.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Only `,_jsx(_components.strong,{children:`production`}),` calls are counted. Calls in `,_jsx(_components.code,{children:`development`}),` or `,_jsx(_components.code,{children:`staging`}),` are excluded, and there is no `,_jsx(_components.code,{children:`environment`}),` parameter.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`required-permission`,children:`Required Permission`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`conversations`})}),`\n`,_jsx(Heading,{level:`2`,id:`required-role`,children:`Required Role`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`org_admin`}),` or `,_jsx(_components.code,{children:`developer`}),`. API keys that belong to any other role, such as QA, receive `,_jsx(_components.code,{children:`403`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startDate`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`First day of the range, `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`. Starts at 00:00:00 IST.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`endDate`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`Last day of the range, `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`. Ends at 23:59:59 IST. Must be on or after `,_jsx(_components.code,{children:`startDate`}),`. Maximum span: 93 days.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`granularity`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Time bucket: `,_jsx(_components.code,{children:`hour`}),`, `,_jsx(_components.code,{children:`day`}),`, `,_jsx(_components.code,{children:`week`}),`, `,_jsx(_components.code,{children:`month`}),`, or `,_jsx(_components.code,{children:`total`}),`. Default: `,_jsx(_components.code,{children:`total`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`groupBy`})}),_jsx(_components.td,{children:`array of strings`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Split results by `,_jsx(_components.code,{children:`botId`}),`, `,_jsx(_components.code,{children:`campaignId`}),`, or both. Maximum 2 values.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`filter.botId`})}),_jsx(_components.td,{children:`string | array`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Count only calls handled by these agents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`filter.campaignId`})}),_jsx(_components.td,{children:`string | array`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Count only calls from these campaigns.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`filter.type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Call direction, for example `,_jsx(_components.code,{children:`Inbound`}),` or `,_jsx(_components.code,{children:`Outbound`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`filter.callStatus`})}),_jsx(_components.td,{children:`string | array`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Telephony status, for example `,_jsx(_components.code,{children:`ANSWERED`}),`, `,_jsx(_components.code,{children:`NO ANSWER`}),`, `,_jsx(_components.code,{children:`BUSY`}),`, `,_jsx(_components.code,{children:`FAILED`}),`. Use `,_jsx(_components.code,{children:`\"NA\"`}),` to match calls with no status recorded.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pageNo`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Page number, 1-based. Default: `,_jsx(_components.code,{children:`1`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pageSize`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Rows per page, `,_jsx(_components.code,{children:`1`}),`–`,_jsx(_components.code,{children:`500`}),`. Default: `,_jsx(_components.code,{children:`100`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`minimum-working-example`,children:`Minimum working example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -X POST `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.inya.ai/platform/v1/conversations/stats\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key: \u003cyour_api_key>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"startDate\": \"2026-03-18\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"endDate\": \"2026-03-19\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"granularity\": \"day\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This request returns one row per day, totalled across all agents and campaigns. If you omit `,_jsx(_components.code,{children:`granularity`}),`, you get a single row covering the whole range.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-results-are-shaped`,children:`How results are shaped`}),`\n`,_jsx(_components.p,{children:`Three request fields decide what comes back:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`filter → which calls are counted (agent, campaign, direction, status)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`granularity → how time is bucketed (hour / day / week / month / total)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`groupBy → how each bucket is split (by agent, by campaign, or both)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Each row in `,_jsx(_components.code,{children:`data`}),` is one `,_jsx(_components.strong,{children:`time bucket × group`}),` combination. For example, `,_jsx(_components.code,{children:`granularity: \"day\"`}),` over 7 days with `,_jsx(_components.code,{children:`groupBy: [\"botId\"]`}),` and 3 active agents returns up to 21 rows.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`time-buckets-granularity`,children:[`Time buckets (`,_jsx(_components.code,{children:`granularity`}),`)`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Time field on each row`}),_jsx(_components.th,{children:`Example label`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`hour`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`date`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`\"2026-03-18T14:00\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`day`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`date`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`\"2026-03-18\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`week`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`week`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`\"16-03-2026 to 22-03-2026\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`month`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`month`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"2026-03\"`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`total`}),` (default)`]}),_jsx(_components.td,{children:`none`}),_jsx(_components.td,{children:`One row per group for the whole range`})]})]})]}),`\n`,_jsx(_components.p,{children:`All labels are in IST.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`week`}),` label uses `,_jsx(_components.code,{children:`DD-MM-YYYY`}),`. The other labels use `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`, so parse week labels separately.`]})}),`\n`,_jsxs(Heading,{level:`3`,id:`grouping-groupby`,children:[`Grouping (`,_jsx(_components.code,{children:`groupBy`}),`)`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`groupBy`})}),_jsx(_components.th,{children:`You get`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`omitted`}),_jsx(_components.td,{children:`One row per time bucket, across all agents and campaigns`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`[\"botId\"]`})}),_jsxs(_components.td,{children:[`One row per agent, with `,_jsx(_components.code,{children:`botId`}),` and `,_jsx(_components.code,{children:`botName`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`[\"campaignId\"]`})}),_jsxs(_components.td,{children:[`One row per campaign. Calls that are not part of a campaign are grouped under `,_jsx(_components.code,{children:`\"no_campaign\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`[\"botId\", \"campaignId\"]`})}),_jsx(_components.td,{children:`One row per agent and campaign pair`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`filters`,children:`Filters`}),`\n`,_jsxs(_components.p,{children:[`Each filter field accepts a single value or an array. Within an array, a call matches if it matches `,_jsx(_components.strong,{children:`any`}),` of the values. Across fields, a call must match `,_jsx(_components.strong,{children:`all`}),` of the filters. You can use any filter with any `,_jsx(_components.code,{children:`groupBy`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"filter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"botId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fb79920229d144608ebf665a10e50275\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a3c1e0d9b2f84f6e9c7d5b4a3f2e1d0c\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Outbound\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ANSWERED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NO ANSWER\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This filter counts outbound calls from either agent whose status is `,_jsx(_components.code,{children:`ANSWERED`}),` or `,_jsx(_components.code,{children:`NO ANSWER`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`metrics-on-every-row`,children:`Metrics on every row`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Plain English`}),_jsx(_components.th,{children:`Use it for`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`totalCalls`})}),_jsx(_components.td,{children:`How many calls matched?`}),_jsx(_components.td,{children:`Volume trends, capacity planning`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`connected`})}),_jsxs(_components.td,{children:[`How many were picked up? (`,_jsx(_components.code,{children:`callStatus`}),` is `,_jsx(_components.code,{children:`ANSWERED`}),`)`]}),_jsx(_components.td,{children:`Reach`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pickupRate`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`connected ÷ totalCalls`}),`, as a decimal (`,_jsx(_components.code,{children:`0.764`}),` = 76.4%)`]}),_jsx(_components.td,{children:`Comparing campaigns, best time to call`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`avgDurationSec`})}),_jsx(_components.td,{children:`Average call length in seconds`}),_jsx(_components.td,{children:`Engagement, cost estimates`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`callTransfers`})}),_jsx(_components.td,{children:`Calls handed off to a human agent`}),_jsx(_components.td,{children:`Escalation tracking`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(Heading,{level:`3`,id:`success-200`,children:`Success (200)`}),`\n`,_jsxs(_components.p,{children:[`Response to the `,_jsx(_components.a,{href:`#minimum-working-example`,children:`minimum working example`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`34`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`34`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c3d4e5f6-a7b8-9012-cdef-345678901234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Conversation stats retrieved successfully.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"startDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-18\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"endDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-19\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"granularity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"day\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timezone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"IST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"groupBy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pageNo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pageSize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalPages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-18\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalCalls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1402`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"connected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1071`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pickupRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.764`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"avgDurationSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`137`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callTransfers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`33`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-19\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalCalls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1455`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"connected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1108`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pickupRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.762`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"avgDurationSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`137`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callTransfers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`35`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`all-response-fields`,children:`All response fields`}),`\n`,_jsx(Heading,{level:`3`,id:`response-2`,children:_jsx(_components.code,{children:`response`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startDate`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Echo of the request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`endDate`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Echo of the request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`granularity`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Bucket size applied. `,_jsx(_components.code,{children:`total`}),` if you omitted it.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timezone`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`\"IST\"`}),`. All dates and labels use this timezone.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`groupBy`})}),_jsx(_components.td,{children:`array | null`}),_jsxs(_components.td,{children:[`Dimensions applied, or `,_jsx(_components.code,{children:`null`}),` when ungrouped.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pageNo`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Current page.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pageSize`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Rows per page.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`totalCount`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Total `,_jsx(_components.strong,{children:`rows`}),` across all pages. This is not the total number of calls.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`totalPages`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Total pages at the current `,_jsx(_components.code,{children:`pageSize`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`Result rows. See below.`})]})]})]}),`\n`,_jsxs(Heading,{level:`3`,id:`each-row-in-data`,children:[`Each row in `,_jsx(_components.code,{children:`data`})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Present when`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`date`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`granularity`}),` is `,_jsx(_components.code,{children:`hour`}),` or `,_jsx(_components.code,{children:`day`})]}),_jsxs(_components.td,{children:[`Bucket label: `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` or `,_jsx(_components.code,{children:`YYYY-MM-DDTHH:00`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`week`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`granularity`}),` is `,_jsx(_components.code,{children:`week`})]}),_jsxs(_components.td,{children:[`Week range: `,_jsx(_components.code,{children:`DD-MM-YYYY to DD-MM-YYYY`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`month`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`granularity`}),` is `,_jsx(_components.code,{children:`month`})]}),_jsxs(_components.td,{children:[`Month label: `,_jsx(_components.code,{children:`YYYY-MM`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`botId`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`groupBy`}),` includes `,_jsx(_components.code,{children:`botId`})]}),_jsx(_components.td,{children:`Agent for this row.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`botName`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`groupBy`}),` includes `,_jsx(_components.code,{children:`botId`})]}),_jsx(_components.td,{children:`Agent display name.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`campaignId`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`groupBy`}),` includes `,_jsx(_components.code,{children:`campaignId`})]}),_jsxs(_components.td,{children:[`Campaign for this row, or `,_jsx(_components.code,{children:`\"no_campaign\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`totalCalls`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Always`}),_jsx(_components.td,{children:`Calls matching the query in this bucket and group.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`connected`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Always`}),_jsxs(_components.td,{children:[`Calls with `,_jsx(_components.code,{children:`callStatus`}),` = `,_jsx(_components.code,{children:`ANSWERED`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pickupRate`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Always`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`connected ÷ totalCalls`}),`, from `,_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`1`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`avgDurationSec`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Always`}),_jsx(_components.td,{children:`Average call duration in seconds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`callTransfers`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Always`}),_jsx(_components.td,{children:`Calls transferred to a human agent.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`more-examples`,children:`More examples`}),`\n`,_jsx(Heading,{level:`3`,id:`outbound-calls-by-agent-and-campaign`,children:`Outbound calls by agent and campaign`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -X POST `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.inya.ai/platform/v1/conversations/stats\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key: \u003cyour_api_key>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"startDate\": \"2026-03-18\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"endDate\": \"2026-03-18\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"granularity\": \"day\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"groupBy\": [\"botId\", \"campaignId\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"filter\": { \"type\": \"Outbound\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`40`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`40`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"d4e5f6a7-b8c9-0123-def4-567890123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Conversation stats retrieved successfully.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"startDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-18\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"endDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-18\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"granularity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"day\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timezone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"IST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"groupBy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"botId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"campaignId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pageNo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pageSize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalPages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-18\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"botId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fb79920229d144608ebf665a10e50275\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"botName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Payment Reminder\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"campaignId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"camp_9182\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalCalls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"connected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`920`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pickupRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.767`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"avgDurationSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`145`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callTransfers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`28`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-18\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"botId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fb79920229d144608ebf665a10e50275\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"botName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Payment Reminder\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"campaignId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"no_campaign\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalCalls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`202`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"connected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`151`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pickupRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.748`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"avgDurationSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`92`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callTransfers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`quarter-total-for-one-agent`,children:`Quarter total for one agent`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -X POST `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.inya.ai/platform/v1/conversations/stats\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key: \u003cyour_api_key>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"startDate\": \"2026-01-01\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"endDate\": \"2026-03-31\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"granularity\": \"total\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"filter\": { \"botId\": \"fb79920229d144608ebf665a10e50275\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`25`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"e5f6a7b8-c9d0-1234-ef56-789012345678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Conversation stats retrieved successfully.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"startDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-01-01\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"endDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-31\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"granularity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timezone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"IST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"groupBy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pageNo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pageSize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalPages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalCalls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42560`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"connected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`31920`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pickupRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.75`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"avgDurationSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`128`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callTransfers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`312`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`pagination`,children:`Pagination`}),`\n`,_jsxs(_components.p,{children:[`Pagination works on `,_jsx(_components.strong,{children:`rows`}),`, not calls. Hourly buckets over a long range, especially with grouping, can produce more than 500 rows. Increase `,_jsx(_components.code,{children:`pageNo`}),` until it equals `,_jsx(_components.code,{children:`totalPages`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`edge-cases`,children:`Edge cases`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scenario`}),_jsx(_components.th,{children:`What happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`startDate`}),` equals `,_jsx(_components.code,{children:`endDate`})]}),_jsx(_components.td,{children:`Valid. Returns that single day.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Range longer than 93 days`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`400`}),`. Split it into several requests and combine the results (see below).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Call is not part of a campaign`}),_jsxs(_components.td,{children:[`When grouping by campaign, it appears under `,_jsx(_components.code,{children:`campaignId: \"no_campaign\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`filter.callStatus`}),` set to `,_jsx(_components.code,{children:`\"ANSWERED\"`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`pickupRate`}),` is always `,_jsx(_components.code,{children:`1`}),`, because only answered calls are counted. Leave `,_jsx(_components.code,{children:`callStatus`}),` unset to measure pickup rate.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Your business day is not on IST`}),_jsxs(_components.td,{children:[`Dates are always interpreted in IST, and there is no timezone parameter. Request `,_jsx(_components.code,{children:`granularity: \"hour\"`}),` and re-bucket the rows on your side.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`combining-results-across-pages-or-requests`,children:`Combining results across pages or requests`}),`\n`,_jsxs(_components.p,{children:[`You can add up `,_jsx(_components.code,{children:`totalCalls`}),`, `,_jsx(_components.code,{children:`connected`}),`, and `,_jsx(_components.code,{children:`callTransfers`}),` directly. Do `,_jsx(_components.strong,{children:`not`}),` average `,_jsx(_components.code,{children:`pickupRate`}),` or `,_jsx(_components.code,{children:`avgDurationSec`}),` across rows. Instead:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pickupRate`}),` = sum of `,_jsx(_components.code,{children:`connected`}),` ÷ sum of `,_jsx(_components.code,{children:`totalCalls`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`avgDurationSec`}),` = a weighted average across rows, not a simple average of the row values`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Condition`}),_jsx(_components.th,{children:`Message`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`startDate`}),` is after `,_jsx(_components.code,{children:`endDate`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`'startDate' must be before 'endDate'.`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Range exceeds 93 days`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Date range exceeds the maximum allowed span of 93 days.`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`Date is not `,_jsx(_components.code,{children:`YYYY-MM-DD`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Invalid date format. Expected: YYYY-MM-DD.`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`API key missing or invalid`}),_jsxs(_components.td,{children:[`See `,_jsx(_components.a,{href:`/Platform/platform-introduction#authentication`,children:`Authentication`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Key does not have the required role`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Access denied. Only org_admin and developer roles can access call statistics.`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[`Invalid `,_jsx(_components.code,{children:`granularity`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Input should be 'hour', 'day', 'week', 'month' or 'total'.`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[`Invalid `,_jsx(_components.code,{children:`groupBy`}),` value`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Input should be 'botId' or 'campaignId'.`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[`More than 2 `,_jsx(_components.code,{children:`groupBy`}),` values`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Maximum 2 groupBy dimensions allowed.`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`pageSize`}),` above 500`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Input should be less than or equal to 500.`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`startDate`}),` or `,_jsx(_components.code,{children:`endDate`}),` missing`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Field required.`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limit exceeded`}),_jsxs(_components.td,{children:[`Retry after the interval in the `,_jsx(_components.code,{children:`Retry-After`}),` header.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Server error`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`An unexpected error occurred while computing call statistics.`})})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`400 Bad Request`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"failure\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Date range exceeds the maximum allowed span of 93 days.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`403 Forbidden`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"failure\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Access denied. Only org_admin and developer roles can access call statistics.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Save the `,_jsx(_components.code,{children:`requestId`}),` from every response. You will need it if you contact Gnani support to trace a specific request.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Aggregated Stats","description":"Get call volume, pickup rate, duration, and transfers across agents and campaigns for a date range","openapi":"agents_openapi.yml POST /v1/conversations/stats","href":"/Platform/Aggregated_Stats"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Required Permission","slug":"required-permission","depth":2,"children":[]},{"title":"Required Role","slug":"required-role","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Minimum working example","slug":"minimum-working-example","depth":2,"children":[]},{"title":"How results are shaped","slug":"how-results-are-shaped","depth":2,"children":[{"title":"Time buckets (granularity)","slug":"time-buckets-granularity","depth":3,"children":[]},{"title":"Grouping (groupBy)","slug":"grouping-groupby","depth":3,"children":[]},{"title":"Filters","slug":"filters","depth":3,"children":[]},{"title":"Metrics on every row","slug":"metrics-on-every-row","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Success (200)","slug":"success-200","depth":3,"children":[]}]},{"title":"All response fields","slug":"all-response-fields","depth":2,"children":[{"title":"response","slug":"response-2","depth":3,"children":[]},{"title":"Each row in data","slug":"each-row-in-data","depth":3,"children":[]}]},{"title":"More examples","slug":"more-examples","depth":2,"children":[{"title":"Outbound calls by agent and campaign","slug":"outbound-calls-by-agent-and-campaign","depth":3,"children":[]},{"title":"Quarter total for one agent","slug":"quarter-total-for-one-agent","depth":3,"children":[]}]},{"title":"Pagination","slug":"pagination","depth":2,"children":[]},{"title":"Edge cases","slug":"edge-cases","depth":2,"children":[{"title":"Combining results across pages or requests","slug":"combining-results-across-pages-or-requests","depth":3,"children":[]}]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gnaniinnovationsprivatelimited/aa125a548bc31de7/api-page-index.js"],"openApiReferenceData":{"operation":{"summary":"Get Aggregated Stats","description":"Get call volume, pickup rate, duration, and transfers across agents and campaigns for a date range","operationId":"getAggregatedStats","tags":["Conversations"],"security":["c7753489-2bdd-4ddc-b687-72986c539509"],"requestBody":"33bae1d9-5231-4bf7-8aa5-f3f0b224dd7d","responses":{"200":"7cd156a6-d41b-47fd-a486-b70cbcfc210e","400":"618fb44a-e710-411f-b437-bad9b66755f8","403":"0ee72af5-770a-4578-bf98-9349b5305036","422":"73d909df-ed55-452d-8833-093be2bad100","500":"1c80fd8a-1585-4b7d-8a13-13146bf68b73"},"method":"post","type":"path","servers":["4cad90c8-82e8-41e0-99ef-70250b4f4b93"],"path":"/v1/conversations/stats","baseUrlOptions":["https://api.inya.ai/platform"],"title":"Get Aggregated Stats","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.startDate":"2026-03-18","body.endDate":"2026-03-19","body.granularity":"day"},{"body.startDate":"2026-03-18","body.endDate":"2026-03-18","body.granularity":"day","body.groupBy.items.0":"botId","body.groupBy.items.1":"campaignId","body.filter.type":"Outbound"},{"body.startDate":"2026-01-01","body.endDate":"2026-03-31","body.granularity":"total","body.filter.botId.oneOf.0":"fb79920229d144608ebf665a10e50275"}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["startDate","endDate"],"properties":{"startDate":{"type":"string","format":"date","description":"First day of the range (YYYY-MM-DD), from 00:00:00 IST.","example":"2026-03-18","isRequired":true,"uniqueKey":"startDate","typeLabel":"string\u003cdate>"},"endDate":{"type":"string","format":"date","description":"Last day of the range (YYYY-MM-DD), until 23:59:59 IST. Must be on or after startDate. Maximum span 93 days.","example":"2026-03-19","isRequired":true,"uniqueKey":"endDate","typeLabel":"string\u003cdate>"},"granularity":{"type":"string","enum":["hour","day","week","month","total"],"default":"total","description":"Time bucket size.","uniqueKey":"granularity","typeLabel":"enum\u003cstring>"},"groupBy":{"type":"array","maxItems":2,"description":"Split results by agent, campaign, or both.","items":{"type":"string","enum":["botId","campaignId"],"uniqueKey":"groupBy.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"groupBy","typeLabel":"enum\u003cstring>[]"},"filter":{"type":"object","description":"Narrows which calls are counted. Each field accepts a single value or an array.","properties":{"botId":{"oneOf":[{"type":"string","description":"One or more agent IDs.","uniqueKey":"filter.botId.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"filter.botId.oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"One or more agent IDs.","uniqueKey":"filter.botId.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"filter.botId","typeLabel":"string | string[]"},"campaignId":{"oneOf":[{"type":"string","description":"One or more campaign IDs.","uniqueKey":"filter.campaignId.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"filter.campaignId.oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"One or more campaign IDs.","uniqueKey":"filter.campaignId.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"filter.campaignId","typeLabel":"string | string[]"},"type":{"type":"string","description":"Call direction, e.g. Inbound or Outbound.","example":"Outbound","uniqueKey":"filter.type","typeLabel":"string"},"callStatus":{"oneOf":[{"type":"string","description":"Telephony status, e.g. ANSWERED, NO ANSWER, BUSY, FAILED. Use \"NA\" for calls with no status recorded.","uniqueKey":"filter.callStatus.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"filter.callStatus.oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"Telephony status, e.g. ANSWERED, NO ANSWER, BUSY, FAILED. Use \"NA\" for calls with no status recorded.","uniqueKey":"filter.callStatus.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"filter.callStatus","typeLabel":"string | string[]"}},"uniqueKey":"filter","typeLabel":"object"},"pageNo":{"type":"integer","minimum":1,"default":1,"description":"Page number (1-based).","uniqueKey":"pageNo","typeLabel":"integer"},"pageSize":{"type":"integer","minimum":1,"maximum":500,"default":100,"description":"Rows per page.","uniqueKey":"pageSize","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"dailyTotals":{"title":"dailyTotals","value":{"startDate":"2026-03-18","endDate":"2026-03-19","granularity":"day"}},"byAgentAndCampaign":{"title":"byAgentAndCampaign","value":{"startDate":"2026-03-18","endDate":"2026-03-18","granularity":"day","groupBy":["botId","campaignId"],"filter":{"type":"Outbound"}}},"quarterTotalForAgent":{"title":"quarterTotalForAgent","value":{"startDate":"2026-01-01","endDate":"2026-03-31","granularity":"total","filter":{"botId":"fb79920229d144608ebf665a10e50275"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"7cd156a6-d41b-47fd-a486-b70cbcfc210e":{"description":"Aggregated statistics retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success","uniqueKey":"status","typeLabel":"string"},"requestId":{"type":"string","uniqueKey":"requestId","typeLabel":"string"},"message":{"type":"string","example":"Conversation stats retrieved successfully.","uniqueKey":"message","typeLabel":"string"},"response":{"type":"object","properties":{"startDate":{"type":"string","format":"date","uniqueKey":"response.startDate","typeLabel":"string\u003cdate>"},"endDate":{"type":"string","format":"date","uniqueKey":"response.endDate","typeLabel":"string\u003cdate>"},"granularity":{"type":"string","uniqueKey":"response.granularity","typeLabel":"string"},"timezone":{"type":"string","description":"Always IST.","example":"IST","uniqueKey":"response.timezone","typeLabel":"string"},"groupBy":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"response.groupBy.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"response.groupBy.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"response.groupBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"response.groupBy","typeLabel":"string[] | null"},"pageNo":{"type":"integer","uniqueKey":"response.pageNo","typeLabel":"integer"},"pageSize":{"type":"integer","uniqueKey":"response.pageSize","typeLabel":"integer"},"totalCount":{"type":"integer","description":"Total rows across all pages (not total calls).","uniqueKey":"response.totalCount","typeLabel":"integer"},"totalPages":{"type":"integer","uniqueKey":"response.totalPages","typeLabel":"integer"},"data":{"type":"array","description":"One row per time bucket and group combination.","items":{"type":"object","properties":{"date":{"type":"string","description":"Present when granularity is hour or day. YYYY-MM-DD or YYYY-MM-DDTHH:00.","uniqueKey":"response.data.items.[INDEX].date","typeLabel":"string"},"week":{"type":"string","description":"Present when granularity is week. DD-MM-YYYY to DD-MM-YYYY.","uniqueKey":"response.data.items.[INDEX].week","typeLabel":"string"},"month":{"type":"string","description":"Present when granularity is month. YYYY-MM.","uniqueKey":"response.data.items.[INDEX].month","typeLabel":"string"},"botId":{"type":"string","description":"Present when groupBy includes botId.","uniqueKey":"response.data.items.[INDEX].botId","typeLabel":"string"},"botName":{"type":"string","description":"Present when groupBy includes botId.","uniqueKey":"response.data.items.[INDEX].botName","typeLabel":"string"},"campaignId":{"type":"string","description":"Present when groupBy includes campaignId. \"no_campaign\" for calls without a campaign.","uniqueKey":"response.data.items.[INDEX].campaignId","typeLabel":"string"},"totalCalls":{"type":"integer","description":"Calls matching the query in this bucket and group.","uniqueKey":"response.data.items.[INDEX].totalCalls","typeLabel":"integer"},"connected":{"type":"integer","description":"Calls with callStatus ANSWERED.","uniqueKey":"response.data.items.[INDEX].connected","typeLabel":"integer"},"pickupRate":{"type":"number","description":"connected / totalCalls as a decimal (0 to 1).","uniqueKey":"response.data.items.[INDEX].pickupRate","typeLabel":"number"},"avgDurationSec":{"type":"number","description":"Average call duration in seconds.","uniqueKey":"response.data.items.[INDEX].avgDurationSec","typeLabel":"number"},"callTransfers":{"type":"integer","description":"Calls transferred to a human agent.","uniqueKey":"response.data.items.[INDEX].callTransfers","typeLabel":"integer"}},"uniqueKey":"response.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"response.data","typeLabel":"object[]"}},"uniqueKey":"response","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"success","requestId":"c3d4e5f6-a7b8-9012-cdef-345678901234","message":"Conversation stats retrieved successfully.","response":{"startDate":"2026-03-18","endDate":"2026-03-19","granularity":"day","timezone":"IST","groupBy":null,"pageNo":1,"pageSize":100,"totalCount":2,"totalPages":1,"data":[{"date":"2026-03-18","totalCalls":1402,"connected":1071,"pickupRate":0.764,"avgDurationSec":137,"callTransfers":33},{"date":"2026-03-19","totalCalls":1455,"connected":1108,"pickupRate":0.762,"avgDurationSec":137,"callTransfers":35}]}},"examples":{"Example":{"title":"Example","value":{"status":"success","requestId":"c3d4e5f6-a7b8-9012-cdef-345678901234","message":"Conversation stats retrieved successfully.","response":{"startDate":"2026-03-18","endDate":"2026-03-19","granularity":"day","timezone":"IST","groupBy":null,"pageNo":1,"pageSize":100,"totalCount":2,"totalPages":1,"data":[{"date":"2026-03-18","totalCalls":1402,"connected":1071,"pickupRate":0.764,"avgDurationSec":137,"callTransfers":33},{"date":"2026-03-19","totalCalls":1455,"connected":1108,"pickupRate":0.762,"avgDurationSec":137,"callTransfers":35}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"618fb44a-e710-411f-b437-bad9b66755f8":{"description":"Invalid dates (bad format, startDate after endDate, or range over 93 days)","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"failure","uniqueKey":"status","typeLabel":"string"},"requestId":{"type":"string","uniqueKey":"requestId","typeLabel":"string"},"message":{"type":"string","example":"Date range exceeds the maximum allowed span of 93 days.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"failure","requestId":"\u003cstring>","message":"Date range exceeds the maximum allowed span of 93 days."}}},"exampleType":"generated"}},"exampleType":"generated"},"0ee72af5-770a-4578-bf98-9349b5305036":{"description":"Permission denied","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"failure","uniqueKey":"status","typeLabel":"string"},"requestId":{"type":"string","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"requestId","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"failure","requestId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"73d909df-ed55-452d-8833-093be2bad100":{"description":"Request body failed validation (invalid granularity or groupBy, more than 2 groupBy values, pageSize over 500, or missing dates)","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"1c80fd8a-1585-4b7d-8a13-13146bf68b73":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"failure","uniqueKey":"status","typeLabel":"string"},"requestId":{"type":"string","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"requestId","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"failure","requestId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c7753489-2bdd-4ddc-b687-72986c539509":{"ConversationsApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key with 'conversations' permission","scopes":[],"schemeName":"ConversationsApiKeyAuth"}}},"servers":{"4cad90c8-82e8-41e0-99ef-70250b4f4b93":{"url":"https://api.inya.ai/platform","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key with 'conversations' permission","scopes":[],"schemeName":"ConversationsApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"API key with 'conversations' permission","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ConversationsApiKeyAuth","name":"x-api-key"}],"title":"ConversationsApiKeyAuth"}]},"originalFileLocation":"agents_openapi.yml"},"subdomain":"gnaniinnovationsprivatelimited","siteName":"Gnani AI Documentation","title":"Get Aggregated Stats - Gnani AI Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-13T05:28:54.362Z","originalFileLocation":"Platform/Aggregated_Stats.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=\"Get call volume, pickup rate, duration, and transfers across agents and campaigns for a date range\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gnani AI 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/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_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/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_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/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_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/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_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/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_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/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_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/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_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/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Aggregated Stats - Gnani AI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get call volume, pickup rate, duration, and transfers across agents and campaigns for a date range\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gnani AI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gnani.ai/Platform/Aggregated_Stats\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gnaniinnovationsprivatelimited.mintlify.site/_mintlify/api/og/v2?division=Conversations+API\u0026amp;title=Get+Aggregated+Stats\u0026amp;description=Get+call+volume%2C+pickup+rate%2C+duration%2C+and+transfers+across+agents+and+campaigns+for+a+date+range\u0026amp;theme=07070e9119adcc39f71f2fbc\u0026amp;signature=55bb8e457a44a8cab7f647e0fcaa6ca974700dea2272dd050b90daa74d88f600\">\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=\"Get Aggregated Stats - Gnani AI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get call volume, pickup rate, duration, and transfers across agents and campaigns for a date range\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gnaniinnovationsprivatelimited.mintlify.site/_mintlify/api/og/v2?division=Conversations+API\u0026amp;title=Get+Aggregated+Stats\u0026amp;description=Get+call+volume%2C+pickup+rate%2C+duration%2C+and+transfers+across+agents+and+campaigns+for+a+date+range\u0026amp;theme=07070e9119adcc39f71f2fbc\u0026amp;signature=55bb8e457a44a8cab7f647e0fcaa6ca974700dea2272dd050b90daa74d88f600\">\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/gnaniinnovationsprivatelimited/b9mY1NvMwd3p02_R/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gnani AI Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1A1A1A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gnani.ai/Platform/Aggregated_Stats\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/Platform/Aggregated_Stats.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gnani.ai/#organization\",\"name\":\"Gnani AI Documentation\",\"url\":\"https://docs.gnani.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gnaniinnovationsprivatelimited/07TQaHxEIXJZr-iJ/logo/favicon.svg?fit=max\u0026auto=format\u0026n=07TQaHxEIXJZr-iJ\u0026q=85\u0026s=feca06a904160c2b661bfa77fe1f90c4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gnani.ai#website\",\"name\":\"Gnani AI Documentation\",\"url\":\"https://docs.gnani.ai\",\"publisher\":{\"@id\":\"https://docs.gnani.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gnani.ai/Platform/Aggregated_Stats#webpage\",\"url\":\"https://docs.gnani.ai/Platform/Aggregated_Stats\",\"name\":\"Get Aggregated Stats\",\"description\":\"Get call volume, pickup rate, duration, and transfers across agents and campaigns for a date range\",\"dateModified\":\"2026-10-13T05:28:54.362Z\",\"isPartOf\":{\"@id\":\"https://docs.gnani.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gnani.ai/Platform/Aggregated_Stats#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gnani.ai/Platform/Aggregated_Stats#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Conversations API\",\"item\":\"https://docs.gnani.ai/Platform/Get_Conversation_Logs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Aggregated Stats\",\"item\":\"https://docs.gnani.ai/Platform/Aggregated_Stats\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gnani.ai/Platform/Aggregated_Stats#apireference\",\"headline\":\"Get Aggregated Stats\",\"name\":\"Get Aggregated Stats\",\"description\":\"Get call volume, pickup rate, duration, and transfers across agents and campaigns for a date range\",\"url\":\"https://docs.gnani.ai/Platform/Aggregated_Stats\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gnani.ai/Platform/Aggregated_Stats#webpage\"},\"dateModified\":\"2026-10-13T05:28:54.362Z\",\"publisher\":{\"@id\":\"https://docs.gnani.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gnani.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gnani AI Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gnani AI Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/Platform/Aggregated_Stats.md","siteName":"Gnani AI Documentation","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Gnani AI APIs","pages":[{"title":"Gnani AI APIs","href":"/api/introduction/introduction"}]},{"tab":"Gnani AI Agents","pages":[{"title":"Gnani AI Agents","href":"/introduction"}]},{"tab":"Gnani AI Agent Builder APIs","groups":[{"group":"Getting Started","pages":[{"title":"Introduction – Agent Builder Platform API","href":"/Platform/platform-introduction"}]},{"group":"Agents API","pages":[{"title":"Create Agent","openapi":"POST /v1/agents","href":"/Platform/Create_Agent"},{"title":"List Agents","openapi":"GET /v1/agents","href":"/Platform/List_Agents"},{"title":"Get Agent","openapi":"GET /v1/agents/{botId}","href":"/Platform/Get_Agent"},{"title":"Update Agent","openapi":"PUT /v1/agents/{botId}","href":"/Platform/Update_Agent"},{"title":"Delete Agent","openapi":"DELETE /v1/agents/{botId}","href":"/Platform/Delete_Agent"},{"title":"Trigger Test Call","openapi":"POST /v1/agents/{botId}/trigger_call","href":"/Platform/Trigger_Call"},{"title":"Validate Prompt","openapi":"POST /v1/agents/prompt/validate","href":"/Platform/Validate_Prompt"}]},{"group":"Conversations API","pages":[{"title":"Get Conversation Logs","openapi":"POST /v1/conversations/logs","href":"/Platform/Get_Conversation_Logs"},{"title":"Get Conversation Statistics","openapi":"GET /v1/conversations/{conversationId}/stats","href":"/Platform/Get_Conversation_Stats"},{"title":"Get Conversation Audio","openapi":"GET /v1/conversations/{conversationId}/audio","description":"Stream or download the audio recording of a specific conversation","href":"/Platform/Stream_Conversation_Audio"},{"title":"Get Aggregated Stats","openapi":"agents_openapi.yml POST /v1/conversations/stats","href":"/Platform/Aggregated_Stats"}]},{"group":"Agent Config API","pages":[{"title":"Get Languages","openapi":"GET /v1/agents/config/languages","description":"Retrieve the list of supported languages for agent configuration","href":"/Platform/Get_Languages"},{"title":"Get Regions","openapi":"GET /v1/agents/config/regions","href":"/Platform/Get_Regions"},{"title":"Get Timezones","openapi":"GET /v1/agents/config/timezone/{regId}","href":"/Platform/Get_Timezones"},{"title":"Get LLM Models","openapi":"GET /v1/agents/config/llm_models","href":"/Platform/Get_LLM_Models"},{"title":"Get Transcriber Config","openapi":"GET /v1/agents/config/transcriber_config","href":"/Platform/Get_Transcriber_Config"},{"title":"Get TTS Config","openapi":"GET /v1/agents/config/tts_config","href":"/Platform/Get_TTS_Config"}]},{"group":"Agent FAQ API","pages":[{"title":"Add FAQ Entries","openapi":"POST /v1/agents/{botId}/faqs","href":"/Platform/Add_FAQs"},{"title":"List FAQs","openapi":"GET /v1/agents/{botId}/faqs","href":"/Platform/List_FAQs"},{"title":"Update FAQ","openapi":"PUT /v1/agents/{botId}/faqs","href":"/Platform/Update_FAQ"},{"title":"Delete FAQs","openapi":"DELETE /v1/agents/{botId}/faqs","href":"/Platform/Delete_FAQs"},{"title":"Get FAQ Sample","openapi":"GET /v1/agents/faqs/sample","href":"/Platform/FAQ_Sample"},{"title":"Bulk Import FAQs","openapi":"POST /v1/agents/{botId}/faqs/import","href":"/Platform/Import_FAQs"}]},{"group":"Chat SDK API","pages":[{"title":"Get Chat Widget Config","openapi":"GET /v1/agents/{botId}/chat-sdk-config","href":"/Platform/Get_Chat_SDK_Config"},{"title":"Update Chat Widget Config","openapi":"PUT /v1/agents/{botId}/chat-sdk-config","href":"/Platform/Update_Chat_SDK_Config"},{"title":"Upload Chat Widget Icon","openapi":"POST /v1/agents/{botId}/chat-sdk-icon","href":"/Platform/Upload_Chat_SDK_Icon"}]},{"group":"Reference","pages":[{"title":"Error Reference","href":"/Platform/Error_Reference"}]}]}]},"basePath":"","title":"Get Aggregated Stats - Gnani AI Documentation","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-NXj-Rqjv.js","utils-m0thOP-_.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D13EKcfm.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema--XTdfsEb.js","snippetPresets-D3s4lmAH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-ChURybxL.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DL8CiXq2.js","shallow-DI2-YB2E.js","getApiPlaygroundDisplay-DxbW7b_y.js","CodeSnippet-CiNYS0pP.js","CodeSnippets-BT87bThu.js","Page-DSpdRuhM.js","getPastedJson-F_g_IrFQ.js","icon-CCIG5BAs.js","MethodPill-DY3E0jwx.js","DuplicateIcon-BN88xnEg.js","createIcon-VCCc5HO5.js","DynamicMarkdown-CaSwclgK.js","SectionHeading-DXV8nWhc.js","axios-vUo_bRtp.js","Markdown-CV32Re6G.js","clsx-5ydLOnhV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-pFDdfjRe.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BUGO5bPJ.js"]}