{
"code": "TOO_MANY_REQUESTS",
"message": "Rate limit exceeded. Retry after the Retry-After interval."
}
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}
Analytics
Get metrics breakdown
Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams.
Metrics and the dimensions they support (metric and groupBy)
credits: user, group, agent, workflow, source
chatMessages: user, group, agent, source, plugin
workflowRuns: user, group, workflow
meetingHours: user, group
meetings: user, group
For meetingHours and meetings, each meeting counts toward the member it’s attributed to, the person who first added the notetaker. To see who joined each meeting, use /meetings.
Narrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below.
The range is widened to whole days in UTC.
Requires the Analytics permission (analytics:read).
{
"code": "TOO_MANY_REQUESTS",
"message": "Rate limit exceeded. Retry after the Retry-After interval."
}
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}
Authorizations
Authorization
string
header
required
An Admin API key, starting with cas_admin_.
Scopes
analytics:read
Query Parameters
userId
string
Only count usage by this user. For meetingHours and meetings, only count meetings billed to them, which are the meetings they were first to add the notetaker to.
externalEmail
string
Only count usage by this external deployment user (e.g. such as a Slack, Microsoft Teams, Google Chat, or email user).
groupId
string
Only count usage by members of this group. This uses current group membership, so it may include a member's usage from before they joined.
agentIds
string[]
Only include these Agents, using the IDs from the agent breakdown or /chats. Built-in models combine their thinking levels. Pass several as a comma-separated list.
Maximum array length: 20
excludeAgentIds
string[]
Leave out these Agents. Pass several as a comma-separated list.
Maximum array length: 20
modelIds
string[]
Only include Agents that use these models, such as claude-opus-5-5, including the built-in model's own Agent. Agents count as the model they use today, so changing an Agent's model moves its past usage too. Thinking levels are combined. Pass several as a comma-separated list.
Maximum array length: 20
excludeModelIds
string[]
Leave out Agents that use these models. Pass several as a comma-separated list.
Maximum array length: 20
workflowId
string
Only count usage of this Workflow.
source
enum<string>
Only count Agent chat usage from this source, such as slack or web. Available for credits and chatMessages; with credits, only Agent chat credits count.
Available options:
web,
slack,
teams,
googleChat,
embedded,
email,
api
plugin
enum<string>
Only count messages sent to Agents from this Cassidy plugin, such as chrome or excel. Available for chatMessages. Plugin filtering is available from November 10, 2026 onward.
Available options:
chrome,
word,
outlook,
excel,
powerpoint
from
string<date-time>
required
Inclusive start of the range as an ISO 8601 timestamp. Rounded down to the start of its bucket in UTC.
to
string<date-time>
required
Exclusive end of the range as an ISO 8601 timestamp. Rounded up to the next bucket boundary in UTC.
metric
enum<string>
required
The metric to total.
Available options:
credits,
chatMessages,
workflowRuns,
meetingHours,
meetings
groupBy
enum<string>
required
The dimension to total by. Not every metric supports every dimension; the error message lists the ones it does.
Available options:
user,
group,
agent,
workflow,
source,
plugin
Response
Successful response
from
string
required
to
string
required
metric
enum<string>
required
Available options:
credits,
chatMessages,
workflowRuns,
meetingHours,
meetings
groupBy
enum<string>
required
Available options:
user,
group,
agent,
workflow,
source,
plugin
rows
object[]
required
Users, groups, Agents, Workflows, sources, or plugins with usage in the range, largest first. At most 10000 rows. Groups use current group membership, and a user in several groups counts toward each, so group values can overlap. Agent and source values count direct chats only, not usage inside Workflows, and built-in model Agents combine their thinking levels. Plugin grouping is available from November 10, 2026 onward. For meetingHours and meetings, each meeting counts toward the member it's attributed to, the person who first added the notetaker.
Show child attributes
truncated
boolean
required
True when more than 10000 rows had usage and only the largest were returned. Narrow the range or add a filter to see the rest.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cassidy","colors":{"primary":"#325ED1","light":"#547ADE","dark":"#2852BF"},"logo":{"light":"https://mintcdn.com/cassidy/wE0GgFgF7sg6yClA/logo/light.svg?fit=max\u0026auto=format\u0026n=wE0GgFgF7sg6yClA\u0026q=85\u0026s=a282ef0ea39b2568b4c0d9164c38a471","dark":"https://mintcdn.com/cassidy/wE0GgFgF7sg6yClA/logo/dark.svg?fit=max\u0026auto=format\u0026n=wE0GgFgF7sg6yClA\u0026q=85\u0026s=97b6c3e038ba04fb75c98291dce0f15e"},"favicon":"https://mintcdn.com/cassidy/OMxepbwbagSrdWXh/favicon.png?fit=max\u0026auto=format\u0026n=OMxepbwbagSrdWXh\u0026q=85\u0026s=e2b5f49115e3bdfcbf30f5793e849793","api":{"playground":{"display":"simple"}},"navbar":{"links":[{"href":"mailto:support@cassidyai.com","label":"Support"}],"primary":{"type":"button","label":"Get started","href":"https://app.cassidy.ai"}},"footer":{"socials":{"x":"https://x.com/Cassidy_AI","linkedin":"https://www.linkedin.com/company/cassidyai"}},"fonts":{"family":"Inter"},"integrations":{"intercom":{"appId":"n12guz9i"}},"contextual":{"options":["copy","download-spec"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cassidy","hasAudioNarration":false,"actualSubdomain":"cassidy","customDomains":["docs.cassidyai.com"],"gitSource":{"type":"github","owner":"cassidyai","repo":"cassidy","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b059f476419144090627468","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Documentation","count":226},{"language":"default","tag":"Integrations","count":146},{"language":"default","tag":"Workflows","count":128},{"language":"default","tag":"Use Cases","count":112},{"language":"default","tag":"Actions","count":44},{"language":"default","tag":"Agents","count":37},{"language":"default","tag":"Sales","count":24},{"language":"default","tag":"Advanced","count":21},{"language":"default","tag":"Marketing","count":18},{"language":"default","tag":"Settings and admin","count":17}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/analytics/get-metrics-breakdown","slug":"/api-reference/analytics/get-metrics-breakdown","pageMetadata":{"title":"Get metrics breakdown","description":"Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams.\n\n**Metrics and the dimensions they support** (`metric` and `groupBy`)\n- `credits`: `user`, `group`, `agent`, `workflow`, `source`\n- `chatMessages`: `user`, `group`, `agent`, `source`, `plugin`\n- `workflowRuns`: `user`, `group`, `workflow`\n- `meetingHours`: `user`, `group`\n- `meetings`: `user`, `group`\n\nFor `meetingHours` and `meetings`, each meeting counts toward the member it's attributed to, the person who first added the notetaker. To see who joined each meeting, use `/meetings`.\n\nNarrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below.\n\nThe range is widened to whole days in UTC.\n\nRequires the Analytics permission (`analytics:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /metrics/breakdown","href":"/api-reference/analytics/get-metrics-breakdown","autogeneratedByOpenApi":true,"hidden":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Metrics and the dimensions they support\"\n }), \" (\", _jsx(_components.code, {\n children: \"metric\"\n }), \" and \", _jsx(_components.code, {\n children: \"groupBy\"\n }), \")\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"credits\"\n }), \": \", _jsx(_components.code, {\n children: \"user\"\n }), \", \", _jsx(_components.code, {\n children: \"group\"\n }), \", \", _jsx(_components.code, {\n children: \"agent\"\n }), \", \", _jsx(_components.code, {\n children: \"workflow\"\n }), \", \", _jsx(_components.code, {\n children: \"source\"\n })]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"chatMessages\"\n }), \": \", _jsx(_components.code, {\n children: \"user\"\n }), \", \", _jsx(_components.code, {\n children: \"group\"\n }), \", \", _jsx(_components.code, {\n children: \"agent\"\n }), \", \", _jsx(_components.code, {\n children: \"source\"\n }), \", \", _jsx(_components.code, {\n children: \"plugin\"\n })]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"workflowRuns\"\n }), \": \", _jsx(_components.code, {\n children: \"user\"\n }), \", \", _jsx(_components.code, {\n children: \"group\"\n }), \", \", _jsx(_components.code, {\n children: \"workflow\"\n })]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"meetingHours\"\n }), \": \", _jsx(_components.code, {\n children: \"user\"\n }), \", \", _jsx(_components.code, {\n children: \"group\"\n })]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"meetings\"\n }), \": \", _jsx(_components.code, {\n children: \"user\"\n }), \", \", _jsx(_components.code, {\n children: \"group\"\n })]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"For \", _jsx(_components.code, {\n children: \"meetingHours\"\n }), \" and \", _jsx(_components.code, {\n children: \"meetings\"\n }), \", each meeting counts toward the member it’s attributed to, the person who first added the notetaker. To see who joined each meeting, use \", _jsx(_components.code, {\n children: \"/meetings\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Narrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"The range is widened to whole days in UTC.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Requires the Analytics permission (\", _jsx(_components.code, {\n children: \"analytics:read\"\n }), \").\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get metrics breakdown","description":"Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams.\n\n**Metrics and the dimensions they support** (`metric` and `groupBy`)\n- `credits`: `user`, `group`, `agent`, `workflow`, `source`\n- `chatMessages`: `user`, `group`, `agent`, `source`, `plugin`\n- `workflowRuns`: `user`, `group`, `workflow`\n- `meetingHours`: `user`, `group`\n- `meetings`: `user`, `group`\n\nFor `meetingHours` and `meetings`, each meeting counts toward the member it's attributed to, the person who first added the notetaker. To see who joined each meeting, use `/meetings`.\n\nNarrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below.\n\nThe range is widened to whole days in UTC.\n\nRequires the Analytics permission (`analytics:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /metrics/breakdown","href":"/api-reference/analytics/get-metrics-breakdown","autogeneratedByOpenApi":true,"hidden":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getMetricsBreakdown","summary":"Get metrics breakdown","description":"Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams.\n\n**Metrics and the dimensions they support** (`metric` and `groupBy`)\n- `credits`: `user`, `group`, `agent`, `workflow`, `source`\n- `chatMessages`: `user`, `group`, `agent`, `source`, `plugin`\n- `workflowRuns`: `user`, `group`, `workflow`\n- `meetingHours`: `user`, `group`\n- `meetings`: `user`, `group`\n\nFor `meetingHours` and `meetings`, each meeting counts toward the member it's attributed to, the person who first added the notetaker. To see who joined each meeting, use `/meetings`.\n\nNarrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below.\n\nThe range is widened to whole days in UTC.\n\nRequires the Analytics permission (`analytics:read`).","tags":["Analytics"],"security":["33efc8e6-deab-4b66-bf68-235add749933"],"parameters":["0f0222dc-d6c4-4ce9-a99f-c3b4b231abf9","39d00d2a-43d4-4ab9-87de-3b022d9fc20a","0217bd0a-669f-4aa9-8d66-3a0135d4eb7a","872a0a7c-6f50-412b-9957-01b29fa87770","5fbfba89-133b-49c4-9a8c-1eedd6f2532a","179aa36e-09ec-41bb-9565-74d61e1a501c","7d95343e-f703-4b8d-a60a-3b90cfd93d33","2a6a7eea-c3a2-477a-89a0-184635285e6c","5a124311-d313-48ce-814d-a358c0c93f4b","5dbdd878-3e1e-47f3-967d-7cc48b189b60","45606d19-aa82-49b0-8dc9-928fdb2f05ac","c60f36e8-f336-43b7-af7e-5ad0db31690c","2a9b0df4-8fc6-4dc2-8dbe-61e97003d48c","be593170-f962-4c27-9aca-ac1549c04769"],"responses":{"200":"d10cd47c-5d8c-43af-89d1-63f0d7c2fbe1","400":"bdfe0d74-3fc0-4a82-adf2-a1a1257862dd","401":"212383d7-0c32-46da-8d34-9ddb0b1b05fc","403":"07a3bf4f-e839-4be6-962e-896c6c6e9980","404":"2c42d088-22c7-4078-ab83-b71247bfa33e","429":"b2963c45-762b-4ce9-bdfb-86e5ef3f523b","500":"fa1b0016-1916-488c-b284-607c0739f3b9"},"method":"get","type":"path","servers":["62973fa6-f659-472c-8be4-e029e79b0bf6"],"path":"/metrics/breakdown","baseUrlOptions":["https://app.cassidyai.com/api/admin/v1"],"title":"Get metrics breakdown","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0f0222dc-d6c4-4ce9-a99f-c3b4b231abf9":{"in":"query","name":"userId","schema":{"description":"Only count usage by this user. For `meetingHours` and `meetings`, only count meetings billed to them, which are the meetings they were first to add the notetaker to.","type":"string","uniqueKey":"","typeLabel":"string"},"description":"Only count usage by this user. For `meetingHours` and `meetings`, only count meetings billed to them, which are the meetings they were first to add the notetaker to."},"39d00d2a-43d4-4ab9-87de-3b022d9fc20a":{"in":"query","name":"externalEmail","schema":{"description":"Only count usage by this external deployment user (e.g. such as a Slack, Microsoft Teams, Google Chat, or email user).","type":"string","uniqueKey":"","typeLabel":"string"},"description":"Only count usage by this external deployment user (e.g. such as a Slack, Microsoft Teams, Google Chat, or email user)."},"0217bd0a-669f-4aa9-8d66-3a0135d4eb7a":{"in":"query","name":"groupId","schema":{"description":"Only count usage by members of this group. This uses current group membership, so it may include a member's usage from before they joined.","type":"string","uniqueKey":"","typeLabel":"string"},"description":"Only count usage by members of this group. This uses current group membership, so it may include a member's usage from before they joined."},"872a0a7c-6f50-412b-9957-01b29fa87770":{"in":"query","name":"agentIds","schema":{"description":"Only include these Agents, using the IDs from the `agent` breakdown or `/chats`. Built-in models combine their thinking levels. Pass several as a comma-separated list.","maxItems":20,"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX]","typeLabel":"string"},"uniqueKey":"","typeLabel":"string[]"},"description":"Only include these Agents, using the IDs from the `agent` breakdown or `/chats`. Built-in models combine their thinking levels. Pass several as a comma-separated list.","style":"form","explode":false},"5fbfba89-133b-49c4-9a8c-1eedd6f2532a":{"in":"query","name":"excludeAgentIds","schema":{"description":"Leave out these Agents. Pass several as a comma-separated list.","maxItems":20,"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX]","typeLabel":"string"},"uniqueKey":"","typeLabel":"string[]"},"description":"Leave out these Agents. Pass several as a comma-separated list.","style":"form","explode":false},"179aa36e-09ec-41bb-9565-74d61e1a501c":{"in":"query","name":"modelIds","schema":{"description":"Only include Agents that use these models, such as `claude-opus-5-5`, including the built-in model's own Agent. Agents count as the model they use today, so changing an Agent's model moves its past usage too. Thinking levels are combined. Pass several as a comma-separated list.","maxItems":20,"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX]","typeLabel":"string"},"uniqueKey":"","typeLabel":"string[]"},"description":"Only include Agents that use these models, such as `claude-opus-5-5`, including the built-in model's own Agent. Agents count as the model they use today, so changing an Agent's model moves its past usage too. Thinking levels are combined. Pass several as a comma-separated list.","style":"form","explode":false},"7d95343e-f703-4b8d-a60a-3b90cfd93d33":{"in":"query","name":"excludeModelIds","schema":{"description":"Leave out Agents that use these models. Pass several as a comma-separated list.","maxItems":20,"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX]","typeLabel":"string"},"uniqueKey":"","typeLabel":"string[]"},"description":"Leave out Agents that use these models. Pass several as a comma-separated list.","style":"form","explode":false},"2a6a7eea-c3a2-477a-89a0-184635285e6c":{"in":"query","name":"workflowId","schema":{"description":"Only count usage of this Workflow.","type":"string","uniqueKey":"","typeLabel":"string"},"description":"Only count usage of this Workflow."},"5a124311-d313-48ce-814d-a358c0c93f4b":{"in":"query","name":"source","schema":{"description":"Only count Agent chat usage from this source, such as `slack` or `web`. Available for `credits` and `chatMessages`; with `credits`, only Agent chat credits count.","type":"string","enum":["web","slack","teams","googleChat","embedded","email","api"],"uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Only count Agent chat usage from this source, such as `slack` or `web`. Available for `credits` and `chatMessages`; with `credits`, only Agent chat credits count."},"5dbdd878-3e1e-47f3-967d-7cc48b189b60":{"in":"query","name":"plugin","schema":{"description":"Only count messages sent to Agents from this Cassidy plugin, such as `chrome` or `excel`. Available for `chatMessages`. Plugin filtering is available from November 10, 2026 onward.","type":"string","enum":["chrome","word","outlook","excel","powerpoint"],"uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Only count messages sent to Agents from this Cassidy plugin, such as `chrome` or `excel`. Available for `chatMessages`. Plugin filtering is available from November 10, 2026 onward."},"45606d19-aa82-49b0-8dc9-928fdb2f05ac":{"in":"query","name":"from","schema":{"type":"string","format":"date-time","description":"Inclusive start of the range as an ISO 8601 timestamp. Rounded down to the start of its bucket in UTC.","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cdate-time>"},"required":true,"description":"Inclusive start of the range as an ISO 8601 timestamp. Rounded down to the start of its bucket in UTC."},"c60f36e8-f336-43b7-af7e-5ad0db31690c":{"in":"query","name":"to","schema":{"type":"string","format":"date-time","description":"Exclusive end of the range as an ISO 8601 timestamp. Rounded up to the next bucket boundary in UTC.","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cdate-time>"},"required":true,"description":"Exclusive end of the range as an ISO 8601 timestamp. Rounded up to the next bucket boundary in UTC."},"2a9b0df4-8fc6-4dc2-8dbe-61e97003d48c":{"in":"query","name":"metric","schema":{"type":"string","enum":["credits","chatMessages","workflowRuns","meetingHours","meetings"],"description":"The metric to total.","isRequired":true,"uniqueKey":"","typeLabel":"enum\u003cstring>"},"required":true,"description":"The metric to total."},"be593170-f962-4c27-9aca-ac1549c04769":{"in":"query","name":"groupBy","schema":{"type":"string","enum":["user","group","agent","workflow","source","plugin"],"description":"The dimension to total by. Not every metric supports every dimension; the error message lists the ones it does.","isRequired":true,"uniqueKey":"","typeLabel":"enum\u003cstring>"},"required":true,"description":"The dimension to total by. Not every metric supports every dimension; the error message lists the ones it does."}},"responses":{"d10cd47c-5d8c-43af-89d1-63f0d7c2fbe1":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","isRequired":true,"uniqueKey":"from","typeLabel":"string"},"to":{"type":"string","isRequired":true,"uniqueKey":"to","typeLabel":"string"},"metric":{"type":"string","enum":["credits","chatMessages","workflowRuns","meetingHours","meetings"],"isRequired":true,"uniqueKey":"metric","typeLabel":"enum\u003cstring>"},"groupBy":{"type":"string","enum":["user","group","agent","workflow","source","plugin"],"isRequired":true,"uniqueKey":"groupBy","typeLabel":"enum\u003cstring>"},"rows":{"type":"array","items":{"type":"object","properties":{"id":{"oneOf":[{"description":"ID of the user, group, Agent, or Workflow, the source, such as `slack`, or the plugin, such as `excel`. Null for external users.","type":"string","isRequired":true,"uniqueKey":"rows.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"description":"ID of the user, group, Agent, or Workflow, the source, such as `slack`, or the plugin, such as `excel`. Null for external users.","type":"null","isRequired":true,"uniqueKey":"rows.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"rows.items.[INDEX].id","typeLabel":"string | null"},"name":{"type":"string","description":"Display name.","isRequired":true,"uniqueKey":"rows.items.[INDEX].name","typeLabel":"string"},"externalEmail":{"oneOf":[{"description":"When grouped by user, the email of a deployment user (for example from Slack or Microsoft Teams) who doesn't match any member's email.","type":"string","isRequired":true,"uniqueKey":"rows.items.[INDEX].externalEmail.oneOf.0","typeLabel":"string"},{"description":"When grouped by user, the email of a deployment user (for example from Slack or Microsoft Teams) who doesn't match any member's email.","type":"null","isRequired":true,"uniqueKey":"rows.items.[INDEX].externalEmail.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"rows.items.[INDEX].externalEmail","typeLabel":"string | null"},"value":{"type":"number","isRequired":true,"uniqueKey":"rows.items.[INDEX].value","typeLabel":"number"}},"required":["id","name","externalEmail","value"],"uniqueKey":"rows.items.[INDEX]","typeLabel":"object"},"description":"Users, groups, Agents, Workflows, sources, or plugins with usage in the range, largest first. At most 10000 rows. Groups use current group membership, and a user in several groups counts toward each, so group values can overlap. Agent and source values count direct chats only, not usage inside Workflows, and built-in model Agents combine their thinking levels. Plugin grouping is available from November 10, 2026 onward. For `meetingHours` and `meetings`, each meeting counts toward the member it's attributed to, the person who first added the notetaker.","isRequired":true,"uniqueKey":"rows","typeLabel":"object[]"},"truncated":{"type":"boolean","description":"True when more than 10000 rows had usage and only the largest were returned. Narrow the range or add a filter to see the rest.","isRequired":true,"uniqueKey":"truncated","typeLabel":"boolean"}},"required":["from","to","metric","groupBy","rows","truncated"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"from":"\u003cstring>","to":"\u003cstring>","metric":"credits","groupBy":"user","rows":[{"id":"\u003cstring>","name":"\u003cstring>","externalEmail":"\u003cstring>","value":123}],"truncated":true}}},"exampleType":"generated"}},"exampleType":"generated"},"bdfe0d74-3fc0-4a82-adf2-a1a1257862dd":{"description":"Invalid input data","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"The error message","example":"Invalid input data","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The error code","example":"BAD_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"description":"An array of issues that were responsible for the error","example":[],"type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["message","code"],"title":"Invalid input data error (400)","description":"The error information","example":{"code":"BAD_REQUEST","message":"Invalid input data","issues":[]},"uniqueKey":"","typeLabel":"Invalid input data error (400) · object"},"examples":{"Example":{"title":"Example","value":{"code":"BAD_REQUEST","message":"Invalid input data","issues":[]}}},"exampleType":"generated"}},"exampleType":"generated"},"212383d7-0c32-46da-8d34-9ddb0b1b05fc":{"description":"Authorization not provided","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"The error message","example":"Authorization not provided","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The error code","example":"UNAUTHORIZED","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"description":"An array of issues that were responsible for the error","example":[],"type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["message","code"],"title":"Authorization not provided error (401)","description":"The error information","example":{"code":"UNAUTHORIZED","message":"Authorization not provided","issues":[]},"uniqueKey":"","typeLabel":"Authorization not provided error (401) · object"},"examples":{"Example":{"title":"Example","value":{"code":"UNAUTHORIZED","message":"Authorization not provided","issues":[]}}},"exampleType":"generated"}},"exampleType":"generated"},"07a3bf4f-e839-4be6-962e-896c6c6e9980":{"description":"Insufficient access","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"The error message","example":"Insufficient access","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The error code","example":"FORBIDDEN","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"description":"An array of issues that were responsible for the error","example":[],"type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["message","code"],"title":"Insufficient access error (403)","description":"The error information","example":{"code":"FORBIDDEN","message":"Insufficient access","issues":[]},"uniqueKey":"","typeLabel":"Insufficient access error (403) · object"},"examples":{"Example":{"title":"Example","value":{"code":"FORBIDDEN","message":"Insufficient access","issues":[]}}},"exampleType":"generated"}},"exampleType":"generated"},"2c42d088-22c7-4078-ab83-b71247bfa33e":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"The error message","example":"Not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The error code","example":"NOT_FOUND","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"description":"An array of issues that were responsible for the error","example":[],"type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["message","code"],"title":"Not found error (404)","description":"The error information","example":{"code":"NOT_FOUND","message":"Not found","issues":[]},"uniqueKey":"","typeLabel":"Not found error (404) · object"},"examples":{"Example":{"title":"Example","value":{"code":"NOT_FOUND","message":"Not found","issues":[]}}},"exampleType":"generated"}},"exampleType":"generated"},"b2963c45-762b-4ce9-bdfb-86e5ef3f523b":{"description":"Too many requests","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","required":true,"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"The error message","example":"Rate limit exceeded. Retry after the Retry-After interval.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The error code","example":"TOO_MANY_REQUESTS","isRequired":true,"uniqueKey":"code","typeLabel":"string"}},"required":["message","code"],"title":"Too many requests error (429)","description":"The error information","example":{"code":"TOO_MANY_REQUESTS","message":"Rate limit exceeded. Retry after the Retry-After interval."},"uniqueKey":"","typeLabel":"Too many requests error (429) · object"},"examples":{"Example":{"title":"Example","value":{"code":"TOO_MANY_REQUESTS","message":"Rate limit exceeded. Retry after the Retry-After interval."}}},"exampleType":"generated"}},"exampleType":"generated"},"fa1b0016-1916-488c-b284-607c0739f3b9":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"The error message","example":"Internal server error","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The error code","example":"INTERNAL_SERVER_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"issues":{"description":"An array of issues that were responsible for the error","example":[],"type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["message","code"],"title":"Internal server error error (500)","description":"The error information","example":{"code":"INTERNAL_SERVER_ERROR","message":"Internal server error","issues":[]},"uniqueKey":"","typeLabel":"Internal server error error (500) · object"},"examples":{"Example":{"title":"Example","value":{"code":"INTERNAL_SERVER_ERROR","message":"Internal server error","issues":[]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"33efc8e6-deab-4b66-bf68-235add749933":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An Admin API key, starting with `cas_admin_`.","scopes":["analytics:read"],"schemeName":"bearerAuth"}}},"servers":{"62973fa6-f659-472c-8be4-e029e79b0bf6":{"url":"https://app.cassidyai.com/api/admin/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An Admin API key, starting with `cas_admin_`.","scopes":["analytics:read"],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An Admin API key, starting with `cas_admin_`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"admin-api-openapi.json"},"subdomain":"cassidy","siteName":"Cassidy","title":"Get metrics breakdown - Cassidy","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T20:33:09.955Z","originalFileLocation":"api-reference/analytics/get-metrics-breakdown.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=\"Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams. Metrics and the dimensions they support (metric and groupBy) - credits: user, group, agent, workflow, source - chatMessages: user, group, agent, source, plugin - workflowRuns: user, group, workflow - meetingHours: user, group - meetings: user, group For meetingHours and meetings, each meeting counts toward the member it\u0026#x27;s attributed to, the person who first added the notetaker. To see who joined each meeting, use /meetings. Narrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below. The range is widened to whole days in UTC. Requires the Analytics permission (analytics:read).\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cassidy\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cassidy/gcVXXkk00gvCM7Lb/_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/cassidy/gcVXXkk00gvCM7Lb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cassidy/gcVXXkk00gvCM7Lb/_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/cassidy/gcVXXkk00gvCM7Lb/_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/cassidy/gcVXXkk00gvCM7Lb/_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/cassidy/gcVXXkk00gvCM7Lb/_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/cassidy/gcVXXkk00gvCM7Lb/_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/cassidy/gcVXXkk00gvCM7Lb/_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/cassidy/gcVXXkk00gvCM7Lb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get metrics breakdown - Cassidy\">\u003cmeta data-mint-head property=\"og:description\" content=\"Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams. Metrics and the dimensions they support (metric and groupBy) - credits: user, group, agent, workflow, source - chatMessages: user, group, agent, source, plugin - workflowRuns: user, group, workflow - meetingHours: user, group - meetings: user, group For meetingHours and meetings, each meeting counts toward the member it\u0026#x27;s attributed to, the person who first added the notetaker. To see who joined each meeting, use /meetings. Narrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below. The range is widened to whole days in UTC. Requires the Analytics permission (analytics:read).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cassidy\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cassidy.mintlify.site/_mintlify/api/og/v2?division=Analytics\u0026amp;title=Get+metrics+breakdown\u0026amp;description=Totals+one+metric+over+the+range+for+each+user%2C+group%2C+Agent%2C+Workflow%2C+or+source%2C+largest+first.+For+example%2C+credits+by+person%2C+Workflow+runs+by+Workflow%2C+or+\u0026amp;theme=fbeaa4c0b59d086bcec67451\u0026amp;signature=7c83af6e08d3a1a41883a0157cbf9dca1a164259cffc879b6f4e69c00c049b71\">\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 metrics breakdown - Cassidy\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams. Metrics and the dimensions they support (metric and groupBy) - credits: user, group, agent, workflow, source - chatMessages: user, group, agent, source, plugin - workflowRuns: user, group, workflow - meetingHours: user, group - meetings: user, group For meetingHours and meetings, each meeting counts toward the member it\u0026#x27;s attributed to, the person who first added the notetaker. To see who joined each meeting, use /meetings. Narrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below. The range is widened to whole days in UTC. Requires the Analytics permission (analytics:read).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cassidy.mintlify.site/_mintlify/api/og/v2?division=Analytics\u0026amp;title=Get+metrics+breakdown\u0026amp;description=Totals+one+metric+over+the+range+for+each+user%2C+group%2C+Agent%2C+Workflow%2C+or+source%2C+largest+first.+For+example%2C+credits+by+person%2C+Workflow+runs+by+Workflow%2C+or+\u0026amp;theme=fbeaa4c0b59d086bcec67451\u0026amp;signature=7c83af6e08d3a1a41883a0157cbf9dca1a164259cffc879b6f4e69c00c049b71\">\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/cassidy/gcVXXkk00gvCM7Lb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cassidy\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#325ED1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/analytics/get-metrics-breakdown.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cassidyai.com/#organization\",\"name\":\"Cassidy\",\"url\":\"https://docs.cassidyai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cassidy/wE0GgFgF7sg6yClA/logo/light.svg?fit=max\u0026auto=format\u0026n=wE0GgFgF7sg6yClA\u0026q=85\u0026s=a282ef0ea39b2568b4c0d9164c38a471\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cassidyai.com#website\",\"name\":\"Cassidy\",\"url\":\"https://docs.cassidyai.com\",\"publisher\":{\"@id\":\"https://docs.cassidyai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown#webpage\",\"url\":\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown\",\"name\":\"Get metrics breakdown\",\"description\":\"Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams. Metrics and the dimensions they support (metric and groupBy) - credits: user, group, agent, workflow, source - chatMessages: user, group, agent, source, plugin - workflowRuns: user, group, workflow - meetingHours: user, group - meetings: user, group For meetingHours and meetings, each meeting counts toward the member it's attributed to, the person who first added the notetaker. To see who joined each meeting, use /meetings. Narrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below. The range is widened to whole days in UTC. Requires the Analytics permission (analytics:read).\",\"dateModified\":\"2026-11-23T20:33:09.955Z\",\"isPartOf\":{\"@id\":\"https://docs.cassidyai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Admin API\",\"item\":\"https://docs.cassidyai.com/reference/admin-api\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Analytics\",\"item\":\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-timeseries\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get metrics breakdown\",\"item\":\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown#apireference\",\"headline\":\"Get metrics breakdown\",\"name\":\"Get metrics breakdown\",\"description\":\"Totals one metric over the range for each user, group, Agent, Workflow, or source, largest first. For example, credits by person, Workflow runs by Workflow, or chat messages by source, such as Slack or Microsoft Teams. Metrics and the dimensions they support (metric and groupBy) - credits: user, group, agent, workflow, source - chatMessages: user, group, agent, source, plugin - workflowRuns: user, group, workflow - meetingHours: user, group - meetings: user, group For meetingHours and meetings, each meeting counts toward the member it's attributed to, the person who first added the notetaker. To see who joined each meeting, use /meetings. Narrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below. The range is widened to whole days in UTC. Requires the Analytics permission (analytics:read).\",\"url\":\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cassidyai.com/api-reference/analytics/get-metrics-breakdown#webpage\"},\"dateModified\":\"2026-11-23T20:33:09.955Z\",\"publisher\":{\"@id\":\"https://docs.cassidyai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cassidyai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cassidy\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cassidy\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/analytics/get-metrics-breakdown.md","siteName":"Cassidy","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Cassidy University","pages":[{"title":"Cassidy University","href":"/university"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/chatting-with-an-agent"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"API Reference","hidden":true,"menu":[{"item":"Admin API","icon":"chart-column","description":"Pull organization-wide usage and activity.","groups":[{"group":"Admin API","pages":[{"title":"Pull usage analytics with the Admin API","description":"Create an Admin API key and pull organization-wide usage, Workflow runs, Agent chats, meetings, members, and Audit Logs into your own reports and dashboards.","icon":"chart-column","href":"/reference/admin-api"},{"group":"Analytics","pages":[{"title":"Get metrics timeseries","description":"Charts one metric across your organization over time, with a value for each time bucket and a total for the range.\n\n**Metrics** (`metric`)\n- `credits`: credits used across your organization\n- `meetingHours`: hours of meetings recorded\n- `meetings`: meetings recorded\n- `chatMessages`: messages sent to Agents\n- `workflowRuns`: Workflow runs\n\nEach meeting is attributed to one member, the person who first added the notetaker, so a person filter counts the meetings attributed to them. Totals include meetings deleted since.\n\n**Buckets** (`unit`)\n- `hour`, `day`, `week`, or `month`, in UTC. `credits` is available per day or coarser.\n\nNarrow the results to a person, group, Workflow, source, plugin, or specific Agents or models with the filters below.\n\nBuckets are in UTC, so daily totals can differ slightly from the Analytics dashboard, which uses your local time zone.\n\nRequires the Analytics permission (`analytics:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /metrics/timeseries","href":"/api-reference/analytics/get-metrics-timeseries"},{"title":"Get metrics breakdown","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /metrics/breakdown","href":"/api-reference/analytics/get-metrics-breakdown"}]},{"group":"Workflow runs","pages":[{"title":"List Workflow runs","description":"Lists individual Workflow runs started in the range, newest first.\n\n**Each run includes**\n- The Workflow and the person who started it\n- Its status, such as `success`, `failed`, or `running`\n- Whether it was a test run\n- The credits it used\n\nFilter by Workflow or person, or leave out test runs. Page through results with `cursor`.\n\n`credits` is null while a run is in progress.\n\nRequires the Workflow runs permission (`workflow_runs:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /workflow-runs","href":"/api-reference/workflow-runs/list-workflow-runs"}]},{"group":"Chats","pages":[{"title":"List chats","description":"Lists Agent chats started in the range, newest first.\n\n**Each chat includes**\n- Its name and most recent Agent\n- The person who started it\n- Where it happened (`source`), such as `web`, `slack`, `teams`, or `embedded`\n- Whether it is an Agent test chat (`isTestChat`), started while editing an Agent\n- When it started and when it was last active\n- The credits it used\n\nLeaves out Agent test chats unless `includeTestChats` is `true`. Filter by person, Agent, model, or source. Agent and model filters match the chat's most recent Agent, so a chat that switched Agents is listed under the one it uses now. Page through results with `cursor`.\n\nExcludes chats run by Workflows. Messages are not included.\n\nRequires the Chats permission (`chats:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /chats","href":"/api-reference/chats/list-chats"}]},{"group":"Meetings","pages":[{"title":"List meetings","description":"Lists recorded meetings whose recording ended in the range, newest first.\n\n**Each meeting includes**\n- Its title and meeting platform\n- When recording started and ended, and the hours recorded\n- The members who added the notetaker\n- The members who joined, and how many other people joined\n\nFilter by a person to list the meetings they joined. Page through results with `cursor`.\n\nRequires the Meetings permission (`meetings:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /meetings","href":"/api-reference/meetings/list-meetings"}]},{"group":"Knowledge Base","pages":[{"title":"List Knowledge Base collections","description":"Lists your organization's Knowledge Base collections, oldest first.\n\nThe first page starts with General Knowledge, with the ID `general`. Pass a collection's ID as `collectionId` to `/knowledge-base/files` or `/knowledge-base/folders`.\n\nPage through results with `cursor`.\n\nRequires the Knowledge Base permission (`knowledge_base:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /knowledge-base/collections","href":"/api-reference/knowledge-base/list-knowledge-base-collections"},{"title":"List Knowledge Base files","description":"Lists your organization's Knowledge Base files, oldest first.\n\n**Each file includes**\n- Its name and type\n- Its collection, and the path of folders it's in\n- Who added it and when\n- Its size in Knowledge Base pages\n\nFilter by collection, folder, file type, or the person who added the file. Page through results with `cursor`.\n\nRequires the Knowledge Base permission (`knowledge_base:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /knowledge-base/files","href":"/api-reference/knowledge-base/list-knowledge-base-files"},{"title":"List Knowledge Base folders","description":"Lists your organization's Knowledge Base folders, including folders synced from integrations, oldest first.\n\n**Each folder includes**\n- Its name and type\n- Its collection, and its path of folders\n- Who created it and when\n- For synced folders, the sync's status and last successful sync\n\nFilter by collection, parent folder, folder type, or the person who created the folder. Page through results with `cursor`. List a folder's files with `/knowledge-base/files?folderId=`.\n\nRequires the Knowledge Base permission (`knowledge_base:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /knowledge-base/folders","href":"/api-reference/knowledge-base/list-knowledge-base-folders"}]},{"group":"Users","pages":[{"title":"List users","description":"Lists your organization's current members, in the order they joined.\n\n**Each member includes**\n- Their name and email, with the same ID as the `user` analytics breakdown, `/chats`, and `/workflow-runs`\n- When they joined your organization\n- Their roles and groups\n\nFilter by user ID, email, group, or role. Page through results with `cursor`.\n\nPeople who have left your organization aren't listed, so older analytics and records can name users that this list doesn't return.\n\nRequires the Members permission (`members:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /users","href":"/api-reference/users/list-users"}]},{"group":"Groups","pages":[{"title":"List groups","description":"Lists your organization's groups, oldest first.\n\n**Each group includes**\n- Its name, with the same ID as the `group` analytics breakdown\n- How many members it has\n- Whether new members join it by default, and whether SSO adds members to it\n\nTo list a group's members, pass its ID as `groupId` to `/users`. Page through results with `cursor`.\n\nRequires the Members permission (`members:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /groups","href":"/api-reference/groups/list-groups"}]},{"group":"Audit logs","pages":[{"title":"List audit logs","description":"Lists your organization's audit log events in the range, newest first by default. These are the same events as the [Audit Logs](https://docs.cassidyai.com/settings/audit-logs) page.\n\n**Each event includes**\n- What happened: its category, action, and operation type, such as `read` or `update`\n- Who did it: a user, an external user, an Admin API key, or the system\n- The resource it was about, and a related resource if there is one\n- When it happened, the IP address, and event-specific details\n\nFilter by category, actor, resource type and action, resource, or operation type. Page through results with `cursor`.\n\n**Polling mode**\n\nTo send events to your SIEM or another system, use polling mode: pass `order=asc` and `from` without `to`, then poll with each response's `nextCursor`. The cursor is always returned, even when there are no new events. Request the next page right away while `hasMore` is true, and wait for your next poll once it is false.\n\nEvents can take up to 2 minutes to appear, so polling never skips an event that is still being recorded.\n\nEach call to this endpoint records an audit log export event. Those events are filtered out of results for the Admin key that made the call. Other keys and the Audit Logs page still show them.\n\nRequires the Audit logs permission (`audit_logs:read`).","deprecated":null,"version":null,"openapi":"/admin-api-openapi.json get /audit-logs","href":"/api-reference/audit-logs/list-audit-logs"}]}]}]},{"item":"Agents API","icon":"robot","description":"Chat with your Agents from your own apps.","pages":[{"title":"Agents API","href":"/reference/agents-api"}]}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/use-cases"}]}]},"basePath":"","title":"Get metrics breakdown - Cassidy","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}