Get the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.
The project to act on, by ID or name. Required with an organization key unless the key reaches only one project; list projects with GET /projects. A project key acts on its own project and needs no value: naming another one is an error.
Items in the default review queue that nobody has reviewed yet, counted as the queue counts them (repeats count once). The queue looks back 30 days, so older items are not included. The range does not change it.
Set when the flag rate of the last 2 days is at least 2 times the rate of the 30 days before, with at least 50 flagged requests. Null when there is no spike. Always for the full project: the range and channel do not change it.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Moderation API","colors":{"primary":"#2563EB","light":"#3b82f6","dark":"#2563EB"},"logo":{"light":"https://mintcdn.com/moderationapi/rWTs3Lpls7ie5CqF/logo/dark.svg?fit=max\u0026auto=format\u0026n=rWTs3Lpls7ie5CqF\u0026q=85\u0026s=ec821de8afaf14ccd604f3ee5778ffde","dark":"https://mintcdn.com/moderationapi/rWTs3Lpls7ie5CqF/logo/light.svg?fit=max\u0026auto=format\u0026n=rWTs3Lpls7ie5CqF\u0026q=85\u0026s=88b0c645ccbe3291663f9cfd6ca3e458","href":"https://moderationapi.com"},"favicon":"https://mintcdn.com/moderationapi/rWTs3Lpls7ie5CqF/favicon.svg?fit=max\u0026auto=format\u0026n=rWTs3Lpls7ie5CqF\u0026q=85\u0026s=7d5a34e9f0e22b58990a738b243814c8","api":{"openapi":"https://api.moderationapi.com/v1/openapi.json","playground":{"display":"none"},"mdx":{"auth":{"method":"bearer"}}},"appearance":{"default":"system","strict":false},"navbar":{"links":[{"href":"https://dash.moderationapi.com","label":"Sign up"}],"primary":{"type":"button","label":"Dashboard","href":"https://dash.moderationapi.com"}},"seo":{"indexing":"all"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":"nord"},"latex":false},"integrations":{"mixpanel":{"projectToken":"b1f544f1321ffbf049e18aeb65c77391"}},"contextual":{"options":["copy","view","claude","chatgpt","mcp","vscode","cursor"],"display":"header"},"interaction":{"drilldown":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"moderationapi","hasAudioNarration":false,"actualSubdomain":"moderationapi","customDomains":["docs.moderationapi.com"],"gitSource":{"type":"github","owner":"moderation-api","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adf5ae7e705fd92bf16d4b1","collectionId":"a0a15f31-6c95-463a-bafb-2b58e05f0dd5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adf5ae7e705fd92bf16d4b1"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"REMOVE_BRANDING":{"status":"ENABLED"}},"buildId":"6adf6395737ceb5e710919cc","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Documentation","count":86},{"language":"default","tag":"API References","count":70},{"language":"default","tag":"Learn","count":59},{"language":"default","tag":"Review","count":21},{"language":"default","tag":"Webhooks","count":16},{"language":"default","tag":"Recipes","count":12},{"language":"default","tag":"Policies","count":11},{"language":"default","tag":"Actions","count":10},{"language":"default","tag":"Events","count":10},{"language":"default","tag":"Quickstart","count":8}],"searchSettings":{"maxResults":10}},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#sidebar{border-right:1px solid rgb(var(--gray-200)/.5)}.dark #sidebar{border-right:1px solid rgb(255 255 255/.07)}#sidebar-content,#sidebar>ul{background:0 0}body,html{scroll-behavior:smooth}"}],"page":{"pagePath":"api-reference/analytics/summary","slug":"/api-reference/analytics/summary","pageMetadata":{"openapi":"get /analytics/summary","title":"Get the analytics summary","description":"Get the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.","href":"/api-reference/analytics/summary"},"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 the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.\"\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":{"codeStyling":{"theme":"nord"},"config":{},"pageMetadata":{"openapi":"get /analytics/summary","title":"Get the analytics summary","description":"Get the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.","href":"/api-reference/analytics/summary"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/moderationapi/180b3125cc5d8d2f/main.js"],"openApiReferenceData":{"operation":{"operationId":"getAnalyticsSummary","summary":"Get the analytics summary","description":"Get the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.","tags":["Analytics"],"security":["bd92813a-2e4a-42d3-b5a4-dd2caa59436e"],"parameters":["047ad09e-8a9e-4d49-8960-02fc18f7c8ae","97dc8eee-b745-4051-8069-860da09aa45e","17128c1d-07e3-46ee-a179-8a482c6da0dc"],"responses":{"200":"5bec5e98-dfc6-4da5-b9fa-ccc2057b4938","400":"7e309e18-4cfe-4d33-868c-53c97f22854c","401":"90aaac58-99a2-497d-b896-cf0771a7212f","403":"f9963c4e-dfd0-4827-b945-2f1aa4d6c529","404":"98116c83-f1ef-4e2e-b20d-f23e96e05a8c","429":"ac95b9f2-5392-4233-9982-68e08d969daa","500":"e06b87a8-514a-4647-9618-809b3f4d55aa"},"x-speakeasy-group":"analytics","x-speakeasy-name-override":"summary","x-speakeasy-mcp":{"title":"Get the analytics summary","scopes":["read"],"readOnlyHint":true,"destructiveHint":false},"method":"get","type":"path","servers":["8ab59056-e8af-4777-836a-8cfe46c57d30"],"path":"/analytics/summary","baseUrlOptions":["https://api.moderationapi.com/v1"],"title":"Get the analytics summary","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"047ad09e-8a9e-4d49-8960-02fc18f7c8ae":{"in":"query","name":"range","schema":{"default":"30d","description":"The time window. `24h` is the last 24 hours, in hourly buckets. `7d`, `30d` and `90d` are whole UTC days that end with today, in daily buckets.","type":"string","enum":["24h","7d","30d","90d"],"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"97dc8eee-b745-4051-8069-860da09aa45e":{"in":"query","name":"channel","schema":{"type":"string","description":"A channel ID or key. Only count content from this channel. Leave out to count all channels.","uniqueKey":"","typeLabel":"string"}},"17128c1d-07e3-46ee-a179-8a482c6da0dc":{"in":"header","name":"Project-Id","required":false,"schema":{"type":"string","isRequired":false,"description":"The project to act on, by ID or name. Required with an organization key unless the key reaches only one project; list projects with GET /projects. A project key acts on its own project and needs no value: naming another one is an error.","uniqueKey":"","typeLabel":"string"},"description":"The project to act on, by ID or name. Required with an organization key unless the key reaches only one project; list projects with GET /projects. A project key acts on its own project and needs no value: naming another one is an error.","x-speakeasy-name-override":"projectId"}},"responses":{"5bec5e98-dfc6-4da5-b9fa-ccc2057b4938":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"range":{"type":"string","enum":["24h","7d","30d","90d"],"description":"The time window of the numbers.","isRequired":true,"uniqueKey":"range","typeLabel":"enum\u003cstring>"},"channelId":{"oneOf":[{"description":"The channel the numbers are for. Null when they are for all channels.","type":"string","isRequired":true,"uniqueKey":"channelId.oneOf.0","typeLabel":"string"},{"description":"The channel the numbers are for. Null when they are for all channels.","type":"null","isRequired":true,"uniqueKey":"channelId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"channelId","typeLabel":"string | null"},"totals":{"type":"object","properties":{"requests":{"type":"integer","minimum":0,"description":"Requests received. Every request counts, also repeats and edits of the same content.","isRequired":true,"uniqueKey":"totals.requests","typeLabel":"integer"},"flagged":{"type":"integer","minimum":0,"description":"Requests that were flagged.","isRequired":true,"uniqueKey":"totals.flagged","typeLabel":"integer"},"flagRate":{"type":"number","minimum":0,"maximum":1,"description":"The share of requests that were flagged: flagged / requests. 0 when there were no requests.","isRequired":true,"uniqueKey":"totals.flagRate","typeLabel":"number"},"allowed":{"type":"integer","minimum":0,"description":"Requests with the recommendation \"allow\". Includes content that was not flagged.","isRequired":true,"uniqueKey":"totals.allowed","typeLabel":"integer"},"rejected":{"type":"integer","minimum":0,"description":"Requests with the recommendation \"reject\". All of them were flagged.","isRequired":true,"uniqueKey":"totals.rejected","typeLabel":"integer"},"sentToReview":{"type":"integer","minimum":0,"description":"Requests with the recommendation \"review\". This counts requests, not the deduplicated items in the review queue.","isRequired":true,"uniqueKey":"totals.sentToReview","typeLabel":"integer"},"handledAutomatically":{"type":"integer","minimum":0,"description":"Flagged requests that were settled without human review: rejected plus flaggedButAllowed.","isRequired":true,"uniqueKey":"totals.handledAutomatically","typeLabel":"integer"},"flaggedButAllowed":{"type":"integer","minimum":0,"description":"Flagged requests that were allowed without human review.","isRequired":true,"uniqueKey":"totals.flaggedButAllowed","typeLabel":"integer"},"distinctAuthors":{"type":"integer","minimum":0,"description":"Distinct authors that sent content in the window. Approximate.","isRequired":true,"uniqueKey":"totals.distinctAuthors","typeLabel":"integer"}},"required":["requests","flagged","flagRate","allowed","rejected","sentToReview","handledAutomatically","flaggedButAllowed","distinctAuthors"],"additionalProperties":false,"description":"Request counts for the window. A flagged request has one recommendation: allow, reject or review.","isRequired":true,"uniqueKey":"totals","typeLabel":"object"},"previousPeriod":{"type":"object","properties":{"requests":{"type":"integer","minimum":0,"description":"Requests received. Every request counts, also repeats and edits of the same content.","isRequired":true,"uniqueKey":"previousPeriod.requests","typeLabel":"integer"},"flagged":{"type":"integer","minimum":0,"description":"Requests that were flagged.","isRequired":true,"uniqueKey":"previousPeriod.flagged","typeLabel":"integer"},"flagRate":{"type":"number","minimum":0,"maximum":1,"description":"The share of requests that were flagged: flagged / requests. 0 when there were no requests.","isRequired":true,"uniqueKey":"previousPeriod.flagRate","typeLabel":"number"},"allowed":{"type":"integer","minimum":0,"description":"Requests with the recommendation \"allow\". Includes content that was not flagged.","isRequired":true,"uniqueKey":"previousPeriod.allowed","typeLabel":"integer"},"rejected":{"type":"integer","minimum":0,"description":"Requests with the recommendation \"reject\". All of them were flagged.","isRequired":true,"uniqueKey":"previousPeriod.rejected","typeLabel":"integer"},"sentToReview":{"type":"integer","minimum":0,"description":"Requests with the recommendation \"review\". This counts requests, not the deduplicated items in the review queue.","isRequired":true,"uniqueKey":"previousPeriod.sentToReview","typeLabel":"integer"},"handledAutomatically":{"type":"integer","minimum":0,"description":"Flagged requests that were settled without human review: rejected plus flaggedButAllowed.","isRequired":true,"uniqueKey":"previousPeriod.handledAutomatically","typeLabel":"integer"},"flaggedButAllowed":{"type":"integer","minimum":0,"description":"Flagged requests that were allowed without human review.","isRequired":true,"uniqueKey":"previousPeriod.flaggedButAllowed","typeLabel":"integer"}},"required":["requests","flagged","flagRate","allowed","rejected","sentToReview","handledAutomatically","flaggedButAllowed"],"additionalProperties":false,"description":"The same counts for the window of equal length just before this one. Compare with `totals` to see the trend.","isRequired":true,"uniqueKey":"previousPeriod","typeLabel":"object"},"pendingReview":{"type":"integer","minimum":0,"description":"Items in the default review queue that nobody has reviewed yet, counted as the queue counts them (repeats count once). The queue looks back 30 days, so older items are not included. The range does not change it.","isRequired":true,"uniqueKey":"pendingReview","typeLabel":"integer"},"flagRateSpike":{"oneOf":[{"type":"object","description":"Set when the flag rate of the last 2 days is at least 2 times the rate of the 30 days before, with at least 50 flagged requests. Null when there is no spike. Always for the full project: the range and channel do not change it.","required":["multiple","recentFlagRate","baselineFlagRate","recentFlagged","recentRequests"],"properties":{"multiple":{"type":"number","description":"How many times higher the recent flag rate is than the baseline, for example 2.4.","isRequired":true,"uniqueKey":"flagRateSpike.oneOf.0.multiple","typeLabel":"number"},"recentFlagRate":{"type":"number","minimum":0,"maximum":1,"description":"The flag rate in the last 2 days.","isRequired":true,"uniqueKey":"flagRateSpike.oneOf.0.recentFlagRate","typeLabel":"number"},"baselineFlagRate":{"type":"number","minimum":0,"maximum":1,"description":"The flag rate in the 30 days before that.","isRequired":true,"uniqueKey":"flagRateSpike.oneOf.0.baselineFlagRate","typeLabel":"number"},"recentFlagged":{"type":"integer","minimum":0,"description":"Flagged requests in the last 2 days.","isRequired":true,"uniqueKey":"flagRateSpike.oneOf.0.recentFlagged","typeLabel":"integer"},"recentRequests":{"type":"integer","minimum":0,"description":"Requests in the last 2 days.","isRequired":true,"uniqueKey":"flagRateSpike.oneOf.0.recentRequests","typeLabel":"integer"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"flagRateSpike.oneOf.0","typeLabel":"object"},{"type":"null","description":"Set when the flag rate of the last 2 days is at least 2 times the rate of the 30 days before, with at least 50 flagged requests. Null when there is no spike. Always for the full project: the range and channel do not change it.","isRequired":true,"uniqueKey":"flagRateSpike.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"flagRateSpike","typeLabel":"object | null"}},"required":["range","channelId","totals","previousPeriod","pendingReview","flagRateSpike"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"range":"24h","channelId":"\u003cstring>","totals":{"requests":1,"flagged":1,"flagRate":0.5,"allowed":1,"rejected":1,"sentToReview":1,"handledAutomatically":1,"flaggedButAllowed":1,"distinctAuthors":1},"previousPeriod":{"requests":1,"flagged":1,"flagRate":0.5,"allowed":1,"rejected":1,"sentToReview":1,"handledAutomatically":1,"flaggedButAllowed":1},"pendingReview":1,"flagRateSpike":{"multiple":123,"recentFlagRate":0.5,"baselineFlagRate":0.5,"recentFlagged":1,"recentRequests":1}}}},"exampleType":"generated"}},"exampleType":"generated"},"7e309e18-4cfe-4d33-868c-53c97f22854c":{"description":"Invalid input data","content":{"application/json":{"schema":{"type":"object","description":"The request is malformed or a parameter is invalid.","properties":{"type":{"type":"string","const":"invalid_request_error","description":"Broad error category. Stable; safe to switch on.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","enum":["invalid_request","project_id_required","project_name_ambiguous","validation_failed"],"x-speakeasy-unknown-values":"allow","description":"Exactly what went wrong. Stable; safe to branch on. New codes may be added.\n\n- `invalid_request`: A parameter is invalid. `message` says which one.\n- `project_id_required`: An organization key called a project endpoint without naming the project in `Project-Id`, and the key reaches more than one project. `message` lists the projects it reaches.\n- `project_name_ambiguous`: The name in `Project-Id` fits more than one project the key reaches. `message` lists them; name the project by ID instead.\n- `validation_failed`: The request body does not match the schema. `issues` lists each problem with its `path`.","example":"invalid_request","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation.","example":"Invalid input data","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request. Include it when you contact support.","example":"h8fkz6kkzoa446ffve37atys","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","description":"Documentation for this `code`.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"issues":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"What is wrong.","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Location of the invalid field in the request body.","uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"},"code":{"type":"string","description":"Validation rule that failed.","uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"Validation problems, when the request body is invalid.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["type","code","message","request_id","doc_url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"invalid_request_error","code":"invalid_request","message":"Invalid input data","request_id":"h8fkz6kkzoa446ffve37atys","doc_url":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"],"code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"90aaac58-99a2-497d-b896-cf0771a7212f":{"description":"Authorization not provided","content":{"application/json":{"schema":{"type":"object","description":"The API key is missing, invalid or revoked.","properties":{"type":{"type":"string","const":"authentication_error","description":"Broad error category. Stable; safe to switch on.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","enum":["unauthorized","missing_api_key","malformed_api_key","invalid_api_key"],"x-speakeasy-unknown-values":"allow","description":"Exactly what went wrong. Stable; safe to branch on. New codes may be added.\n\n- `unauthorized`: Authentication failed.\n- `missing_api_key`: No API key in the `Authorization` header.\n- `malformed_api_key`: The `Authorization` header does not contain a valid key format.\n- `invalid_api_key`: The API key does not exist or was revoked.","example":"unauthorized","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation.","example":"Authorization not provided","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request. Include it when you contact support.","example":"h8fkz6kkzoa446ffve37atys","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","description":"Documentation for this `code`.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"issues":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"What is wrong.","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Location of the invalid field in the request body.","uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"},"code":{"type":"string","description":"Validation rule that failed.","uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"Validation problems, when the request body is invalid.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["type","code","message","request_id","doc_url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"authentication_error","code":"unauthorized","message":"Authorization not provided","request_id":"h8fkz6kkzoa446ffve37atys","doc_url":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"],"code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"f9963c4e-dfd0-4827-b945-2f1aa4d6c529":{"description":"Insufficient access","content":{"application/json":{"schema":{"type":"object","description":"The API key cannot do this, or the plan limit for this resource is reached.","properties":{"type":{"type":"string","const":"permission_error","description":"Broad error category. Stable; safe to switch on.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","enum":["permission_denied","account_disabled","quota_exceeded","plan_feature_unavailable","plan_limit_exceeded","organization_key_required","missing_key_permission","project_not_reachable"],"x-speakeasy-unknown-values":"allow","description":"Exactly what went wrong. Stable; safe to branch on. New codes may be added.\n\n- `permission_denied`: The API key cannot perform this request.\n- `account_disabled`: The organization account is disabled.\n- `quota_exceeded`: The organization has used all API requests on its plan.\n- `plan_feature_unavailable`: The current plan does not include this feature.\n- `plan_limit_exceeded`: The request goes over a limit of the current plan.\n- `organization_key_required`: This endpoint needs an organization API key, but a project key was used.\n- `missing_key_permission`: The organization key does not have the permission this endpoint needs.\n- `project_not_reachable`: The organization key is limited to other projects.","example":"permission_denied","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation.","example":"Insufficient access","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request. Include it when you contact support.","example":"h8fkz6kkzoa446ffve37atys","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","description":"Documentation for this `code`.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"issues":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"What is wrong.","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Location of the invalid field in the request body.","uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"},"code":{"type":"string","description":"Validation rule that failed.","uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"Validation problems, when the request body is invalid.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["type","code","message","request_id","doc_url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"permission_error","code":"permission_denied","message":"Insufficient access","request_id":"h8fkz6kkzoa446ffve37atys","doc_url":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"],"code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"98116c83-f1ef-4e2e-b20d-f23e96e05a8c":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","description":"The resource does not exist or the key cannot see it.","properties":{"type":{"type":"string","const":"not_found_error","description":"Broad error category. Stable; safe to switch on.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","enum":["resource_not_found","action_not_found","author_not_found","queue_not_found","queue_item_not_found","wordlist_not_found","webhook_not_found","project_not_found","channel_not_found"],"x-speakeasy-unknown-values":"allow","description":"Exactly what went wrong. Stable; safe to branch on. New codes may be added.\n\n- `resource_not_found`: The resource does not exist.\n- `action_not_found`: The action does not exist.\n- `author_not_found`: The author does not exist.\n- `queue_not_found`: The review queue does not exist.\n- `queue_item_not_found`: The queue item does not exist in the project.\n- `wordlist_not_found`: The wordlist does not exist.\n- `webhook_not_found`: The webhook does not exist.\n- `project_not_found`: The project does not exist.\n- `channel_not_found`: The channel does not exist.","example":"resource_not_found","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation.","example":"Not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request. Include it when you contact support.","example":"h8fkz6kkzoa446ffve37atys","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","description":"Documentation for this `code`.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"issues":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"What is wrong.","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Location of the invalid field in the request body.","uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"},"code":{"type":"string","description":"Validation rule that failed.","uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"Validation problems, when the request body is invalid.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["type","code","message","request_id","doc_url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"not_found_error","code":"resource_not_found","message":"Not found","request_id":"h8fkz6kkzoa446ffve37atys","doc_url":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"],"code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"ac95b9f2-5392-4233-9982-68e08d969daa":{"description":"Too many requests. Retry after the number of seconds in the `Retry-After` header.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","description":"Too many requests. Retry after the number of seconds in the `Retry-After` header.","properties":{"type":{"type":"string","const":"rate_limit_error","description":"Broad error category. Stable; safe to switch on.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","enum":["rate_limit_exceeded"],"x-speakeasy-unknown-values":"allow","description":"Exactly what went wrong. Stable; safe to branch on. New codes may be added.\n\n- `rate_limit_exceeded`: Too many requests. Wait for the `Retry-After` seconds.","example":"rate_limit_exceeded","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation.","example":"Rate limit exceeded","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request. Include it when you contact support.","example":"h8fkz6kkzoa446ffve37atys","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","description":"Documentation for this `code`.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"issues":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"What is wrong.","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Location of the invalid field in the request body.","uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"},"code":{"type":"string","description":"Validation rule that failed.","uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"Validation problems, when the request body is invalid.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["type","code","message","request_id","doc_url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Rate limit exceeded","request_id":"h8fkz6kkzoa446ffve37atys","doc_url":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"],"code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"e06b87a8-514a-4647-9618-809b3f4d55aa":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","description":"Something went wrong on our side. Retry with backoff.","properties":{"type":{"type":"string","const":"api_error","description":"Broad error category. Stable; safe to switch on.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","enum":["internal_error"],"x-speakeasy-unknown-values":"allow","description":"Exactly what went wrong. Stable; safe to branch on. New codes may be added.\n\n- `internal_error`: Something went wrong on our side. Retry with backoff.","example":"internal_error","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation.","example":"Internal server error","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request. Include it when you contact support.","example":"h8fkz6kkzoa446ffve37atys","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","description":"Documentation for this `code`.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"issues":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"What is wrong.","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Location of the invalid field in the request body.","uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"},"code":{"type":"string","description":"Validation rule that failed.","uniqueKey":"issues.items.[INDEX].code","typeLabel":"string"}},"required":["message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"Validation problems, when the request body is invalid.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["type","code","message","request_id","doc_url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"api_error","code":"internal_error","message":"Internal server error","request_id":"h8fkz6kkzoa446ffve37atys","doc_url":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"],"code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"bd92813a-2e4a-42d3-b5a4-dd2caa59436e":{"Authorization":{"type":"http","scheme":"bearer","x-speakeasy-name-override":"secretKey","scopes":[],"schemeName":"Authorization"}}},"servers":{"8ab59056-e8af-4777-836a-8cfe46c57d30":{"url":"https://api.moderationapi.com/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","x-speakeasy-name-override":"secretKey","scopes":[],"schemeName":"Authorization"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"Authorization","name":"Authorization"}],"title":"Authorization"}]},"originalFileLocation":"https://api.moderationapi.com/v1/openapi.json"},"subdomain":"moderationapi","siteName":"Moderation API","title":"Get the analytics summary - Moderation API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-26T13:51:44.302Z","originalFileLocation":"api-reference/analytics/summary.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 the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Moderation API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/moderationapi/btfa7NMdSPkX5ZGP/_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/moderationapi/btfa7NMdSPkX5ZGP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/moderationapi/btfa7NMdSPkX5ZGP/_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/moderationapi/btfa7NMdSPkX5ZGP/_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/moderationapi/btfa7NMdSPkX5ZGP/_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/moderationapi/btfa7NMdSPkX5ZGP/_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/moderationapi/btfa7NMdSPkX5ZGP/_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/moderationapi/btfa7NMdSPkX5ZGP/_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/moderationapi/btfa7NMdSPkX5ZGP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get the analytics summary - Moderation API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Moderation API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.moderationapi.com/api-reference/analytics/summary\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://moderationapi.mintlify.app/_mintlify/api/og/v2?division=Analytics\u0026amp;title=Get+the+analytics+summary\u0026amp;description=Get+the+totals+of+the+project+for+a+time+window%3A+requests%2C+flags%2C+flag+rate%2C+allowed%2C+rejected+and+sent+to+review%2C+with+the+window+before+for+the+trend.+Also+th\u0026amp;theme=74a66089d28e4556cd5bc9ac\u0026amp;signature=9176e9e360b20cb63061c8a388b915bb2a95265d710ebdc4364b7d7190f5408b\">\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 the analytics summary - Moderation API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://moderationapi.mintlify.app/_mintlify/api/og/v2?division=Analytics\u0026amp;title=Get+the+analytics+summary\u0026amp;description=Get+the+totals+of+the+project+for+a+time+window%3A+requests%2C+flags%2C+flag+rate%2C+allowed%2C+rejected+and+sent+to+review%2C+with+the+window+before+for+the+trend.+Also+th\u0026amp;theme=74a66089d28e4556cd5bc9ac\u0026amp;signature=9176e9e360b20cb63061c8a388b915bb2a95265d710ebdc4364b7d7190f5408b\">\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/moderationapi/btfa7NMdSPkX5ZGP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Moderation API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.moderationapi.com/api-reference/analytics/summary\">\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/summary.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.moderationapi.com/#organization\",\"name\":\"Moderation API\",\"url\":\"https://docs.moderationapi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/moderationapi/rWTs3Lpls7ie5CqF/logo/dark.svg?fit=max\u0026auto=format\u0026n=rWTs3Lpls7ie5CqF\u0026q=85\u0026s=ec821de8afaf14ccd604f3ee5778ffde\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.moderationapi.com#website\",\"name\":\"Moderation API\",\"url\":\"https://docs.moderationapi.com\",\"publisher\":{\"@id\":\"https://docs.moderationapi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.moderationapi.com/api-reference/analytics/summary#webpage\",\"url\":\"https://docs.moderationapi.com/api-reference/analytics/summary\",\"name\":\"Get the analytics summary\",\"description\":\"Get the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.\",\"dateModified\":\"2026-10-26T13:51:44.302Z\",\"isPartOf\":{\"@id\":\"https://docs.moderationapi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.moderationapi.com/api-reference/analytics/summary#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.moderationapi.com/api-reference/analytics/summary#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Moderation API\",\"item\":\"https://docs.moderationapi.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get the analytics summary\",\"item\":\"https://docs.moderationapi.com/api-reference/analytics/summary\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.moderationapi.com/api-reference/analytics/summary#apireference\",\"headline\":\"Get the analytics summary\",\"name\":\"Get the analytics summary\",\"description\":\"Get the totals of the project for a time window: requests, flags, flag rate, allowed, rejected and sent to review, with the window before for the trend. Also the review queue backlog and a flag-rate spike, if there is one.\",\"url\":\"https://docs.moderationapi.com/api-reference/analytics/summary\",\"mainEntityOfPage\":{\"@id\":\"https://docs.moderationapi.com/api-reference/analytics/summary#webpage\"},\"dateModified\":\"2026-10-26T13:51:44.302Z\",\"publisher\":{\"@id\":\"https://docs.moderationapi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.moderationapi.com#website\"}}]}\u003c/script>","siteName":"Moderation API","nav":{"global":null,"dropdowns":[{"dropdown":"Documentation","icon":{"style":"solid","name":"book"},"groups":[{"group":"Documentation","pages":[{"title":"Get started","icon":"book-open","href":"/get-started/introduction"},{"title":"Concepts","icon":"cubes","href":"/get-started/concepts"},{"group":"SDK quickstarts","icon":"rocket","pages":[{"title":"Content moderation with TypeScript","sidebarTitle":"TypeScript","icon":"node-js","href":"/quickstart/typescript"},{"title":"Content moderation with Ruby","sidebarTitle":"Ruby","icon":"gem","href":"/quickstart/ruby"},{"title":"Content moderation with Python","sidebarTitle":"Python","icon":"python","href":"/quickstart/python"},{"title":"Content moderation with PHP","sidebarTitle":"PHP","icon":"php","href":"/quickstart/php"},{"title":"Content moderation with the CLI","sidebarTitle":"CLI","icon":"terminal","href":"/quickstart/cli"},{"title":"Content moderation with Go","sidebarTitle":"Go","icon":"golang","href":"/quickstart/go"},{"title":"Content moderation with Java","sidebarTitle":"Java","icon":"java","href":"/quickstart/java"},{"title":"Content moderation with .NET","sidebarTitle":".NET","icon":"microsoft","href":"/quickstart/dotnet"}]}]},{"group":"AI agents","pages":[{"title":"Build with AI agents","sidebarTitle":"Overview","icon":"robot","href":"/ai/overview"},{"title":"Setup skill","sidebarTitle":"Setup skill","icon":"wrench","href":"/ai/skill"},{"title":"MCP server","sidebarTitle":"MCP server","icon":"plug","href":"/ai/mcp"},{"title":"What your agent can do","sidebarTitle":"Examples","icon":"wand-magic-sparkles","href":"/ai/examples"}]},{"group":"Learn","pages":[{"group":"Automate Moderation","icon":"shield","pages":[{"title":"Automated content moderation","sidebarTitle":"Overview","href":"/content-moderation/overview"},{"group":"Analyzing content","pages":[{"title":"Submitting content to Moderation API","sidebarTitle":"Submit content","href":"/content-moderation/submit-content"},{"title":"Understand and act on API responses","sidebarTitle":"Understanding API responses","href":"/content-moderation/acting-on-responses"},{"title":"Real-time voice","href":"/content-moderation/real-time-voice"}]},{"title":"Content rules","sidebarTitle":"Content rules","href":"/content-moderation/rules"},{"title":"Thresholds","sidebarTitle":"Thresholds","href":"/content-moderation/thresholds"},{"title":"Optimizing accuracy","sidebarTitle":"Optimizing accuracy","href":"/content-moderation/optimizing-accuracy"}]},{"group":"Policies","icon":"scale-balanced","pages":[{"title":"Policies","sidebarTitle":"Overview","href":"/policies/overview"},{"title":"Guidelines","href":"/policies/guidelines"},{"title":"Wordlists","href":"/policies/wordlists"},{"title":"Privacy","href":"/policies/privacy"},{"title":"Toxicity \u0026 Hate","href":"/policies/toxicity"},{"title":"NSFW","href":"/policies/nsfw"},{"title":"Illicit \u0026 Regulated","href":"/policies/illicit"},{"title":"Spam \u0026 Security","href":"/policies/spam"},{"title":"URL Risk","href":"/policies/url-risk"},{"title":"Unicode spoofing detection","sidebarTitle":"Unicode spoofing","href":"/policies/unicode-spoofing"},{"title":"Topics","href":"/policies/topics"}]},{"group":"Managing Users","icon":"user","pages":[{"title":"User moderation","sidebarTitle":"Overview","href":"/users/overview"},{"title":"Trust Levels","href":"/users/trust-levels"},{"title":"Updating authors","sidebarTitle":"Updating authors","href":"/users/updating-authors"},{"title":"Custom data","sidebarTitle":"Custom data","href":"/users/custom-data"},{"title":"Fraud Detection","href":"/users/fraud-detection"}]},{"group":"Review","icon":"clipboard-list","pages":[{"title":"Review","sidebarTitle":"Overview","href":"/review/overview"},{"title":"Building content views","sidebarTitle":"Building views","href":"/review/content-views"},{"title":"View settings","sidebarTitle":"View settings","href":"/review/view-settings"},{"title":"Reviewing content","sidebarTitle":"Reviewing content","href":"/review/reviewing-content"},{"group":"Recipes","pages":[{"title":"Content view recipes","sidebarTitle":"Overview","href":"/review/recipes/overview"},{"title":"Escalations","sidebarTitle":"Escalations","href":"/review/recipes/escalations"},{"title":"Language views","sidebarTitle":"Language views","href":"/review/recipes/language-views"},{"title":"Channel views","sidebarTitle":"Channel views","href":"/review/recipes/channel-views"},{"title":"Content type views","sidebarTitle":"Content type views","href":"/review/recipes/content-type-views"},{"title":"Media review","sidebarTitle":"Media review","href":"/review/recipes/media-review"},{"title":"Severity triage","sidebarTitle":"Severity triage","href":"/review/recipes/severity-triage"},{"title":"New account review","sidebarTitle":"New account review","href":"/review/recipes/new-accounts"},{"title":"Spam waves","sidebarTitle":"Spam waves","href":"/review/recipes/spam-waves"},{"title":"Shadow flag QA","sidebarTitle":"Shadow flag QA","href":"/review/recipes/shadow-flag-qa"},{"title":"Wordlist monitoring","sidebarTitle":"Wordlist monitoring","href":"/review/recipes/wordlist-monitoring"},{"title":"Unflagged sampling","sidebarTitle":"Unflagged sampling","href":"/review/recipes/unflagged-sampling"}]},{"title":"Getting content into review","sidebarTitle":"Submitting content","href":"/review/submit-content"},{"title":"Reviewer wellness","sidebarTitle":"Reviewer wellness","href":"/review/wellness"},{"title":"Translating queue items","sidebarTitle":"Translation","href":"/review/translation"},{"title":"Integrating with your application","sidebarTitle":"Integrations","href":"/review/integrations"},{"title":"Inviting moderators","sidebarTitle":"Inviting moderators","href":"/review/inviting-moderators"}]},{"group":"Casebook","icon":"gavel","pages":[{"title":"Casebook","sidebarTitle":"Overview","href":"/casebook/overview"},{"title":"How the casebook rules","sidebarTitle":"How it rules","href":"/casebook/rulings"},{"title":"Casebook topics","sidebarTitle":"Topics","href":"/casebook/topics"},{"title":"Managing your casebook","sidebarTitle":"Managing cases","href":"/casebook/managing"}]},{"group":"Actions","icon":"bolt","pages":[{"title":"Actions","sidebarTitle":"Overview","href":"/actions/overview"},{"title":"Content actions","sidebarTitle":"Content actions","href":"/actions/content-actions"},{"title":"Author actions","sidebarTitle":"Author actions","href":"/actions/author-actions"},{"title":"Webhooks","sidebarTitle":"Webhooks","href":"/actions/webhooks"}]},{"group":"Model Studio","icon":"cube","pages":[{"title":"Model Studio","sidebarTitle":"Overview","href":"/model-studio/overview"},{"group":"Custom Models","pages":[{"title":"Custom models","sidebarTitle":"Overview","href":"/custom-models/overview"},{"title":"Using a custom model","sidebarTitle":"Using a model","href":"/custom-models/using"},{"title":"Adaptive model optimization","sidebarTitle":"Adaptive model optimization","href":"/custom-models/adaptive-model-optimization"}]}]},{"group":"Manage account","icon":"receipt","pages":[{"title":"Quota usage","href":"/account/quota-usage"},{"title":"Manage plan","href":"/account/upgrading"},{"title":"Manage team","href":"/account/adding-team-members"}]}]},{"group":"Migrations","pages":[{"title":"Migrate from Perspective API","sidebarTitle":"Perspective API","href":"/guides/migrate-from-perspective-api"}]},{"group":"Resources","pages":[{"title":"SDKs","icon":"code","href":"/resources/sdks"},{"title":"Integrations","icon":"cube","href":"/resources/integrations"}]}]},{"dropdown":"API References","icon":{"style":"solid","name":"code"},"groups":[{"group":"API","icon":"terminal","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Management API","href":"/api-reference/management-api"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Rate limits","href":"/api-reference/rate-limits"},{"title":"Pagination","href":"/api-reference/pagination"}]},{"group":"Account","pages":[{"openapi":"get /account","title":"Get account details","href":"/api-reference/account/get-account-details"}]},{"group":"Moderate","pages":[{"openapi":"POST /moderate","sidebarTitle":"Submit content","title":"Submit content","href":"/api-reference/moderate/submit-content"},{"openapi":"GET /stream","sidebarTitle":"Voice stream","title":"Real-time voice stream","href":"/api-reference/moderate/voice-stream"}]},{"group":"Authors","pages":[{"openapi":"get /authors","title":"List authors","href":"/api-reference/author/list-authors"},{"openapi":"post /authors","title":"Create a new author","href":"/api-reference/author/create-a-new-author"},{"openapi":"get /authors/{id}","title":"Get author details","href":"/api-reference/author/get-author-details"},{"openapi":"put /authors/{id}","title":"Update author details","href":"/api-reference/author/update-author-details"},{"openapi":"delete /authors/{id}","title":"Delete an author","href":"/api-reference/author/delete-an-author"}]},{"group":"Actions","pages":[{"openapi":"post /actions","title":"Create an action","href":"/api-reference/actions/create-an-action"},{"openapi":"get /actions/{id}","title":"Get an action","href":"/api-reference/actions/get-an-action"},{"openapi":"put /actions/{id}","title":"Update an action","href":"/api-reference/actions/update-an-action"},{"openapi":"delete /actions/{id}","title":"Delete an action","href":"/api-reference/actions/delete-an-action"},{"openapi":"post /actions/execute","title":"Execute moderation action","href":"/api-reference/actions/execute-moderation-action"},{"openapi":"get /actions","title":"List moderation actions","href":"/api-reference/actions/list-moderation-actions"}]},{"group":"Wordlist","pages":[{"openapi":"get /wordlist","title":"List wordlists","href":"/api-reference/wordlist/list-wordlists"},{"openapi":"post /wordlist","title":"Create wordlist","href":"/api-reference/wordlist/create-wordlist"},{"openapi":"get /wordlist/{id}","title":"Get wordlist","href":"/api-reference/wordlist/get-wordlist"},{"openapi":"put /wordlist/{id}","title":"Update wordlist","href":"/api-reference/wordlist/update-wordlist"},{"openapi":"get /wordlist/{id}/embedding-status","title":"Get embedding status","href":"/api-reference/wordlist/get-embedding-status"},{"openapi":"post /wordlist/{id}/words","title":"Add words to wordlist","href":"/api-reference/wordlist/add-words-to-wordlist"},{"openapi":"delete /wordlist/{id}/words","title":"Remove words from wordlist","href":"/api-reference/wordlist/remove-words-from-wordlist"}]},{"group":"Review Queue","pages":[{"openapi":"get /queue","title":"List queues","href":"/api-reference/review-queues/list-queues"},{"openapi":"get /queue/{id}","title":"Get a queue","href":"/api-reference/review-queues/get-a-queue"},{"openapi":"get /queue/{id}/stats","title":"Get queue statistics","href":"/api-reference/review-queues/get-queue-statistics"},{"openapi":"get /queue/{id}/items","title":"List queue items","href":"/api-reference/review-queues/get-queue-items"},{"openapi":"post /queue/{id}/items/{itemId}/resolve","title":"Resolve a queue item","href":"/api-reference/review-queues/resolve-a-queue-item"},{"openapi":"post /queue/{id}/items/resolve","title":"Resolve queue items","href":"/api-reference/review-queues/resolve-queue-items"},{"openapi":"post /queue/{id}/items/{itemId}/unresolve","title":"Unresolve a queue item","href":"/api-reference/review-queues/unresolve-a-queue-item"}]},{"group":"Projects","pages":[{"openapi":"get /projects","title":"List projects","href":"/api-reference/projects/list-projects"},{"openapi":"post /projects","title":"Create a project","href":"/api-reference/projects/create-a-project"},{"openapi":"get /projects/{id}","title":"Get a project","href":"/api-reference/projects/get-a-project"},{"openapi":"put /projects/{id}","title":"Update a project","href":"/api-reference/projects/update-a-project"},{"openapi":"delete /projects/{id}","title":"Delete a project","href":"/api-reference/projects/delete-a-project"},{"openapi":"post /projects/{id}/duplicate","title":"Duplicate a project","href":"/api-reference/projects/duplicate-a-project"},{"openapi":"post /projects/{id}/api-keys","title":"Create a project API key","href":"/api-reference/projects/create-a-project-api-key"}]},{"group":"Channels","pages":[{"openapi":"get /projects/{projectId}/channels","title":"List channels","href":"/api-reference/channels/list-channels"},{"openapi":"post /projects/{projectId}/channels","title":"Create a channel","href":"/api-reference/channels/create-a-channel"},{"openapi":"get /channels/{id}","title":"Get a channel","href":"/api-reference/channels/get-a-channel"},{"openapi":"put /channels/{id}","title":"Update a channel","href":"/api-reference/channels/update-a-channel"},{"openapi":"delete /channels/{id}","title":"Delete a channel","href":"/api-reference/channels/delete-a-channel"},{"openapi":"post /channels/{id}/duplicate","title":"Duplicate a channel","href":"/api-reference/channels/duplicate-a-channel"}]},{"group":"Webhooks","pages":[{"openapi":"get /webhooks","title":"List webhooks","href":"/api-reference/webhooks/list-webhooks"},{"openapi":"post /webhooks","title":"Create a webhook","href":"/api-reference/webhooks/create-a-webhook"},{"openapi":"get /webhooks/{id}","title":"Get a webhook","href":"/api-reference/webhooks/get-a-webhook"},{"openapi":"put /webhooks/{id}","title":"Update a webhook","href":"/api-reference/webhooks/update-a-webhook"},{"openapi":"delete /webhooks/{id}","title":"Delete a webhook","href":"/api-reference/webhooks/delete-a-webhook"},{"openapi":"get /webhook-secret","title":"Get the webhook signing secret","href":"/api-reference/webhooks/get-signing-secret"},{"group":"Events","pages":[{"title":"Author blocked","openapi":"https://api.moderationapi.com/v1/openapi.json webhook author.blocked","href":"/api-reference/webhooks/author-blocked"},{"title":"Author unblocked","openapi":"https://api.moderationapi.com/v1/openapi.json webhook author.unblocked","href":"/api-reference/webhooks/author-unblocked"},{"title":"Author suspended","openapi":"https://api.moderationapi.com/v1/openapi.json webhook author.suspended","href":"/api-reference/webhooks/author-suspended"},{"title":"Author updated","openapi":"https://api.moderationapi.com/v1/openapi.json webhook author.updated","href":"/api-reference/webhooks/author-updated"},{"title":"Author trust level changed","openapi":"https://api.moderationapi.com/v1/openapi.json webhook author.trust_level_changed","href":"/api-reference/webhooks/author-trust-level-changed"},{"title":"Author action","openapi":"https://api.moderationapi.com/v1/openapi.json webhook author.action","href":"/api-reference/webhooks/author-action"},{"title":"Queue item resolved","openapi":"https://api.moderationapi.com/v1/openapi.json webhook queue_item.resolved","href":"/api-reference/webhooks/queue-item-resolved"},{"title":"Queue item action","openapi":"https://api.moderationapi.com/v1/openapi.json webhook queue_item.action","href":"/api-reference/webhooks/queue-item-action"},{"title":"Queue item rejected","openapi":"https://api.moderationapi.com/v1/openapi.json webhook queue_item.rejected","href":"/api-reference/webhooks/queue-item-rejected"},{"title":"Queue item allowed","description":"Fired when a queue item is allowed.","openapi":"https://api.moderationapi.com/v1/openapi.json webhook queue_item.allowed","href":"/api-reference/webhooks/queue-item-allowed"}]}]},{"group":"Analytics","pages":[{"openapi":"get /analytics/summary","title":"Get the analytics summary","href":"/api-reference/analytics/summary"},{"openapi":"get /analytics/policies","title":"Get the most flagged policies","description":"Get the policy labels that flagged the most content in a time window, largest first, with the count in the window before.","href":"/api-reference/analytics/policies"},{"openapi":"get /analytics/authors","title":"Get the most flagged authors","href":"/api-reference/analytics/authors"},{"openapi":"get /analytics/channels","title":"Get analytics per channel","href":"/api-reference/analytics/channels"},{"openapi":"get /analytics/volumes","title":"Get volumes over time","href":"/api-reference/analytics/volumes"},{"openapi":"get /analytics/automation","title":"Get the automation breakdown","href":"/api-reference/analytics/automation"}]},{"group":"Feedback","pages":[{"openapi":"post /feedback","title":"Send feedback","href":"/api-reference/feedback/send-feedback"}]}]},{"dropdown":"Changelog","icon":"list","href":"https://product.moderationapi.com/changelog"},{"dropdown":"Email support","icon":{"style":"solid","name":"envelope"},"href":"mailto:support@moderationapi.com"}]},"title":"Get the analytics summary - Moderation API","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","clsx-CefdjKz2.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BaREnp3o.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-sgx_0XzF.js"]}