Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.
Requires an API key (orwel_sk_) with all three scopes: leads:read, visitors:read and conversions:read.
The report always covers the workspace that owns the key. It takes a few seconds because Orwel also writes the analysis (summary, insights and action plan) from the numbers. If the analysis cannot be generated, the response still returns the data with a shorter summary built from it.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Orwel","colors":{"primary":"#2853ff","light":"#6d8bff","dark":"#1d3fd6"},"logo":{"light":"https://mintcdn.com/orwel-docs/oZX7rBe1PSAnJ1a6/logo/light.svg?fit=max\u0026auto=format\u0026n=oZX7rBe1PSAnJ1a6\u0026q=85\u0026s=80bb317ac5f334005787239fe5fc49d8","dark":"https://mintcdn.com/orwel-docs/oZX7rBe1PSAnJ1a6/logo/dark.svg?fit=max\u0026auto=format\u0026n=oZX7rBe1PSAnJ1a6\u0026q=85\u0026s=6d76aa96f7e17fbaf27a1965e19e13b7"},"favicon":"https://mintcdn.com/orwel-docs/oZX7rBe1PSAnJ1a6/favicon.png?fit=max\u0026auto=format\u0026n=oZX7rBe1PSAnJ1a6\u0026q=85\u0026s=bb9b2e48b160f267f566e420743e9699","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://api.orwel.io"}},"background":{"color":{"light":"#ffffff","dark":"#111214"}},"navbar":{"links":[{"href":"/support","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://www.orwel.io/dashboard"}},"footer":{"socials":{"github":"https://github.com/hyperlabs-ai/orwel","linkedin":"https://www.linkedin.com/company/orwel"}},"seo":{"metatags":{"canonical":"https://www.orwel.io/docs"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"orwel-docs","hasAudioNarration":false,"actualSubdomain":"orwel-docs","customDomains":["www.orwel.io"],"gitSource":{"type":"github","owner":"hyperlabs-ai","repo":"orwel-api","deployBranch":"master","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6ad82e72e51e6a3f317fe704"},"chroma":{"latestBuiltDeploymentHistoryId":"6adfad2f55383828dd0cd8a2","collectionId":"50cdbe54-07c1-4ee1-807c-20e10ff88cfb","liveDeploymentHistoryId":"6adfad2f55383828dd0cd8a2","schemaVersion":"v3"},"entitlements":{},"buildId":"6aeb617f245c712a705b2225","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"Documentation","count":37},{"language":"default","tag":"API Reference","count":17},{"language":"default","tag":"Core Concepts","count":17},{"language":"default","tag":"Intent signals","count":13},{"language":"default","tag":"SDK","count":8},{"language":"default","tag":"Identities","count":6},{"language":"default","tag":"Get Started","count":5},{"language":"default","tag":"Leads","count":4},{"language":"default","tag":"Developers","count":3},{"language":"default","tag":"Integrations","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar .max-w-8xl,div:has(>#sidebar){max-width:104rem!important}@media (min-width:1024px){#content-area{padding-left:6.5rem}}@media (min-width:1280px){#content-area{width:calc(100% - 24rem)!important;max-width:none!important;padding-left:7.5rem;padding-right:2.5rem}#table-of-contents-layout{width:20rem;padding-left:4rem}#table-of-contents{width:16rem}}#header{padding-bottom:.5rem}#header>div>div.mt-2{margin-top:.875rem;max-width:44rem;color:rgb(75 85 99)}.dark #header>div>div.mt-2{color:rgb(176 180 190)}#page-context-menu{align-self:flex-start;margin-top:-2.5rem}.dark .card{background-color:#17181b!important;border-color:rgb(255 255 255/.08)!important}.dark .card:hover{background-color:#1b1c20!important}.card [data-component-part=card-content]{font-size:.875rem;line-height:1.5rem}.card-group{gap:.875rem!important;row-gap:.875rem!important}.card-group>.card{margin-top:0;margin-bottom:0}.card{position:relative;overflow:hidden;transition:border-color .2s ease,transform .2s ease}.card:hover{transform:translateY(-2px)}.card [data-component-part=card-content-container]{padding:1.25rem 1.375rem 1.375rem;min-height:9.5rem}.card [data-component-part=card-icon]{display:flex;align-items:center;justify-content:center;width:2.5rem!important;height:2.5rem!important;border-radius:11px;background:rgb(40 83 255/.08);border:1px solid rgb(40 83 255/.16)}.dark .card [data-component-part=card-icon]{background:rgb(109 139 255/.12);border-color:rgb(109 139 255/.22)}.card [data-component-part=card-icon] svg{width:1.15rem!important;height:1.15rem!important}.card [data-component-part=card-title]{margin-top:1rem;font-size:1rem}.card[role=link]::after{content:'';position:absolute;top:1.4rem;right:1.4rem;width:1rem;height:1rem;background-color:rgb(107 114 128);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E\") center/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E\") center/contain no-repeat;transition:transform .2s ease,background-color .2s ease}.card[role=link]:hover::after{background-color:#2853ff;transform:translate(2px,-2px)}.dark .card[role=link]:hover::after{background-color:#6d8bff}.code-block:not(:has([data-component-part=code-block-header])){padding:2px!important;background-color:rgb(249 250 251)!important}.dark .code-block:not(:has([data-component-part=code-block-header])){background-color:rgb(255 255 255/.05)!important}.code-block:not(:has([data-component-part=code-block-header]))::before{content:attr(language);display:block;width:fit-content;margin:0 0 0 .9rem;padding:.55rem .1rem .5rem;font-size:.8125rem;font-weight:500;line-height:1.25rem;color:#2853ff;border-bottom:1.5px solid #2853ff}.dark .code-block:not(:has([data-component-part=code-block-header]))::before{color:#6d8bff;border-color:#6d8bff}.code-block:not(:has([data-component-part=code-block-header])) .code-block-background{border-radius:14px!important}.code-block:not(:has([data-component-part=code-block-header])) .code-block-fade-overlay{display:none!important}.code-block:not(:has([data-component-part=code-block-header])) [data-floating-buttons]{top:.3rem!important}.code-block:not(:has([data-component-part=code-block-header]))[language=bash]::before,.code-block:not(:has([data-component-part=code-block-header]))[language=sh]::before,.code-block:not(:has([data-component-part=code-block-header]))[language=shell]::before,.code-block:not(:has([data-component-part=code-block-header]))[language=shellscript]::before{content:'Terminal'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=json]::before{content:'JSON'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=javascript]::before,.code-block:not(:has([data-component-part=code-block-header]))[language=js]::before{content:'JavaScript'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=ts]::before,.code-block:not(:has([data-component-part=code-block-header]))[language=typescript]::before{content:'TypeScript'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=tsx]::before{content:'TSX'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=jsx]::before{content:'JSX'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=python]::before{content:'Python'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=html]::before{content:'HTML'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=svelte]::before{content:'Svelte'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=astro]::before{content:'Astro'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=yaml]::before{content:'YAML'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=http]::before{content:'HTTP'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=php]::before{content:'PHP'!important}.code-block:not(:has([data-component-part=code-block-header]))[language=plaintext]::before,.code-block:not(:has([data-component-part=code-block-header]))[language=text]::before{content:'Text'!important}"}],"page":{"pagePath":"api-reference/reports/create","slug":"/api-reference/reports/create","pageMetadata":{"title":"Generate Report","api":"POST https://api.orwel.io/api/v1/reports","description":"Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.","href":"/api-reference/reports/create"},"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: \"Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,Info,ParamField,ResponseField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[`Requires an `,_jsx(_components.a,{href:`/authentication`,children:`API key`}),` (`,_jsx(_components.code,{children:`orwel_sk_`}),`) with all three scopes: `,_jsx(_components.code,{children:`leads:read`}),`, `,_jsx(_components.code,{children:`visitors:read`}),` and `,_jsx(_components.code,{children:`conversions:read`}),`.`]})}),`\n`,_jsx(_components.p,{children:`The report always covers the workspace that owns the key. It takes a few seconds because Orwel also writes the analysis (summary, insights and action plan) from the numbers. If the analysis cannot be generated, the response still returns the data with a shorter summary built from it.`}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`dateFrom`,type:`string`,required:true,id:`param-date-from`,children:_jsxs(_components.p,{children:[`Start of the range, ISO 8601 (`,_jsx(_components.code,{children:`2026-10-01`}),`)`]})}),`\n`,_jsx(ParamField,{body:`dateTo`,type:`string`,required:true,id:`param-date-to`,children:_jsxs(_components.p,{children:[`End of the range, ISO 8601 (`,_jsx(_components.code,{children:`2026-10-31`}),`)`]})}),`\n`,_jsx(ParamField,{body:`workspaceId`,type:`string`,id:`param-workspace-id`,children:_jsxs(_components.p,{children:[`Optional. When sent it must be the key’s own workspace; any other value returns `,_jsx(_components.code,{children:`403 forbidden`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`Report`,children:[_jsx(ResponseField,{name:`metrics`,type:`object`,id:`param-metrics`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`totalVisitors`}),`, `,_jsx(_components.code,{children:`totalLeads`}),`, `,_jsx(_components.code,{children:`conversionRate`}),` and `,_jsx(_components.code,{children:`avgLeadScore`}),` for the range`]})}),_jsx(ResponseField,{name:`leadQualityDistribution`,type:`object`,id:`param-lead-quality-distribution`,children:_jsxs(_components.p,{children:[`Leads by quality: `,_jsx(_components.code,{children:`high`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`unknown`})]})}),_jsx(ResponseField,{name:`leadScoreDistribution`,type:`object`,id:`param-lead-score-distribution`,children:_jsxs(_components.p,{children:[`Leads by score: `,_jsx(_components.code,{children:`high`}),` (70 to 100), `,_jsx(_components.code,{children:`medium`}),` (40 to 69), `,_jsx(_components.code,{children:`low`}),` (0 to 39), `,_jsx(_components.code,{children:`unscored`})]})}),_jsx(ResponseField,{name:`conversionsByCode`,type:`object`,id:`param-conversions-by-code`,children:_jsx(_components.p,{children:`Number of conversions per conversion code`})}),_jsx(ResponseField,{name:`topLeads`,type:`array`,id:`param-top-leads`,children:_jsx(_components.p,{children:`Best leads of the range with name, email, quality, score, source, location and lifecycle stage`})}),_jsx(ResponseField,{name:`trafficByCountry`,type:`object`,id:`param-traffic-by-country`,children:_jsx(_components.p,{children:`Visitors per country`})}),_jsx(ResponseField,{name:`lifecycleDistribution`,type:`object`,id:`param-lifecycle-distribution`,children:_jsxs(_components.p,{children:[`Identities by stage: `,_jsx(_components.code,{children:`anonymous`}),`, `,_jsx(_components.code,{children:`lead`}),`, `,_jsx(_components.code,{children:`customer`}),`, `,_jsx(_components.code,{children:`churned`}),`, `,_jsx(_components.code,{children:`other`})]})}),_jsx(ResponseField,{name:`analysis`,type:`object`,id:`param-analysis`,children:_jsxs(_components.p,{children:[`Written analysis: `,_jsx(_components.code,{children:`executiveSummary`}),`, `,_jsx(_components.code,{children:`keyInsights`}),` (array), `,_jsx(_components.code,{children:`actionPlan`}),` (array), `,_jsx(_components.code,{children:`funnelAnalysis`}),`, `,_jsx(_components.code,{children:`prospectHighlights`})]})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bad_request`})}),_jsxs(_components.td,{children:[`The body is not JSON, `,_jsx(_components.code,{children:`dateFrom`}),` or `,_jsx(_components.code,{children:`dateTo`}),` is missing, or a date is not ISO 8601.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_scope`})}),_jsx(_components.td,{children:`The key is missing one of the three scopes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`forbidden`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`workspaceId`}),` is not the key’s workspace.`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Generate Report","api":"POST https://api.orwel.io/api/v1/reports","description":"Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.","href":"/api-reference/reports/create"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[`Requires an `,_jsx(_components.a,{href:`/authentication`,children:`API key`}),` (`,_jsx(_components.code,{children:`orwel_sk_`}),`) with all three scopes: `,_jsx(_components.code,{children:`leads:read`}),`, `,_jsx(_components.code,{children:`visitors:read`}),` and `,_jsx(_components.code,{children:`conversions:read`}),`.`]})}),`\n`,_jsx(_components.p,{children:`The report always covers the workspace that owns the key. It takes a few seconds because Orwel also writes the analysis (summary, insights and action plan) from the numbers. If the analysis cannot be generated, the response still returns the data with a shorter summary built from it.`}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`dateFrom`,type:`string`,required:true,id:`param-date-from`,children:_jsxs(_components.p,{children:[`Start of the range, ISO 8601 (`,_jsx(_components.code,{children:`2026-10-01`}),`)`]})}),`\n`,_jsx(ParamField,{body:`dateTo`,type:`string`,required:true,id:`param-date-to`,children:_jsxs(_components.p,{children:[`End of the range, ISO 8601 (`,_jsx(_components.code,{children:`2026-10-31`}),`)`]})}),`\n`,_jsx(ParamField,{body:`workspaceId`,type:`string`,id:`param-workspace-id`,children:_jsxs(_components.p,{children:[`Optional. When sent it must be the key’s own workspace; any other value returns `,_jsx(_components.code,{children:`403 forbidden`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`Report`,children:[_jsx(ResponseField,{name:`metrics`,type:`object`,id:`param-metrics`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`totalVisitors`}),`, `,_jsx(_components.code,{children:`totalLeads`}),`, `,_jsx(_components.code,{children:`conversionRate`}),` and `,_jsx(_components.code,{children:`avgLeadScore`}),` for the range`]})}),_jsx(ResponseField,{name:`leadQualityDistribution`,type:`object`,id:`param-lead-quality-distribution`,children:_jsxs(_components.p,{children:[`Leads by quality: `,_jsx(_components.code,{children:`high`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`unknown`})]})}),_jsx(ResponseField,{name:`leadScoreDistribution`,type:`object`,id:`param-lead-score-distribution`,children:_jsxs(_components.p,{children:[`Leads by score: `,_jsx(_components.code,{children:`high`}),` (70 to 100), `,_jsx(_components.code,{children:`medium`}),` (40 to 69), `,_jsx(_components.code,{children:`low`}),` (0 to 39), `,_jsx(_components.code,{children:`unscored`})]})}),_jsx(ResponseField,{name:`conversionsByCode`,type:`object`,id:`param-conversions-by-code`,children:_jsx(_components.p,{children:`Number of conversions per conversion code`})}),_jsx(ResponseField,{name:`topLeads`,type:`array`,id:`param-top-leads`,children:_jsx(_components.p,{children:`Best leads of the range with name, email, quality, score, source, location and lifecycle stage`})}),_jsx(ResponseField,{name:`trafficByCountry`,type:`object`,id:`param-traffic-by-country`,children:_jsx(_components.p,{children:`Visitors per country`})}),_jsx(ResponseField,{name:`lifecycleDistribution`,type:`object`,id:`param-lifecycle-distribution`,children:_jsxs(_components.p,{children:[`Identities by stage: `,_jsx(_components.code,{children:`anonymous`}),`, `,_jsx(_components.code,{children:`lead`}),`, `,_jsx(_components.code,{children:`customer`}),`, `,_jsx(_components.code,{children:`churned`}),`, `,_jsx(_components.code,{children:`other`})]})}),_jsx(ResponseField,{name:`analysis`,type:`object`,id:`param-analysis`,children:_jsxs(_components.p,{children:[`Written analysis: `,_jsx(_components.code,{children:`executiveSummary`}),`, `,_jsx(_components.code,{children:`keyInsights`}),` (array), `,_jsx(_components.code,{children:`actionPlan`}),` (array), `,_jsx(_components.code,{children:`funnelAnalysis`}),`, `,_jsx(_components.code,{children:`prospectHighlights`})]})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bad_request`})}),_jsxs(_components.td,{children:[`The body is not JSON, `,_jsx(_components.code,{children:`dateFrom`}),` or `,_jsx(_components.code,{children:`dateTo`}),` is missing, or a date is not ISO 8601.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_scope`})}),_jsx(_components.td,{children:`The key is missing one of the three scopes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`forbidden`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`workspaceId`}),` is not the key’s workspace.`]})]})]})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.orwel.io/api/v1/reports\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer orwel_sk_YOUR_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"dateFrom\": \"2026-10-01\", \"dateTo\": \"2026-10-31\"}'`})]}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`27`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`27`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"workspaceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"770e8400-e29b-41d4-a716-446655440002\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dateFrom\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-01\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dateTo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-31\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"generatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-04T16:18:37.149Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metrics\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalVisitors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2140`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalLeads\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`63`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversionRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2.94`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"avgLeadScore\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`58`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"leadQualityDistribution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"high\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"medium\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"low\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`15`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"unknown\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"leadScoreDistribution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"high\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`14`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"medium\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`29`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"low\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"unscored\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversionsByCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"generate_lead\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`51`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"book_demo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"topLeads\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trafficByCountry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"MX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1320`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`610`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lifecycleDistribution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"anonymous\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1890`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"lead\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`63`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"churned\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"other\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"analysis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"executiveSummary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"October brought 63 leads from 2,140 visitors...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"keyInsights\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Most high score leads came from organic search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actionPlan\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Follow up the 12 high quality leads this week\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"funnelAnalysis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prospectHighlights\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Generate Report","api":"POST https://api.orwel.io/api/v1/reports","description":"Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.","href":"/api-reference/reports/create"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.orwel.io/api/v1/reports\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer orwel_sk_YOUR_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\"dateFrom\": \"2026-10-01\", \"dateTo\": \"2026-10-31\"}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"27\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"workspaceId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"770e8400-e29b-41d4-a716-446655440002\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"dateFrom\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-01\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"dateTo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-31\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"generatedAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-04T16:18:37.149Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metrics\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"totalVisitors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2140\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"totalLeads\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">63\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"conversionRate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2.94\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"avgLeadScore\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">58\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"leadQualityDistribution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"high\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">12\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"medium\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">30\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"low\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">15\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"unknown\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">6\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"leadScoreDistribution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"high\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">14\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"medium\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">29\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"low\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">12\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"unscored\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">8\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"conversionsByCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"generate_lead\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">51\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"book_demo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">12\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"topLeads\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"trafficByCountry\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"MX\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1320\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"US\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">610\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lifecycleDistribution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"anonymous\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1890\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"lead\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">63\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"customer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">9\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"churned\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"other\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"analysis\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"executiveSummary\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"October brought 63 leads from 2,140 visitors...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"keyInsights\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Most high score leads came from organic search\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"actionPlan\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Follow up the 12 high quality leads this week\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"funnelAnalysis\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prospectHighlights\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"...\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Generate Report","path":"/api/v1/reports","servers":[{"url":"https://api.orwel.io"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"dateFrom":[{"type":"string","description":"Start of the range, ISO 8601 ( `2026-10-01` )","required":true}],"dateTo":[{"type":"string","description":"End of the range, ISO 8601 ( `2026-10-31` )","required":true}],"workspaceId":[{"type":"string","description":"Optional. When sent it must be the key’s own workspace; any other value returns `403 forbidden` ."}]}}],"examples":{"example":{"value":{"dateFrom":"\u003cstring>","dateTo":"\u003cstring>","workspaceId":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"data":[{"type":"object","properties":{"metrics":[{"type":"object","properties":{},"description":"`totalVisitors` , `totalLeads` , `conversionRate` and `avgLeadScore` for the range"}],"leadQualityDistribution":[{"type":"object","properties":{},"description":"Leads by quality: `high` , `medium` , `low` , `unknown`"}],"leadScoreDistribution":[{"type":"object","properties":{},"description":"Leads by score: `high` (70 to 100), `medium` (40 to 69), `low` (0 to 39), `unscored`"}],"conversionsByCode":[{"type":"object","properties":{},"description":"Number of conversions per conversion code"}],"topLeads":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Best leads of the range with name, email, quality, score, source, location and lifecycle stage"}],"trafficByCountry":[{"type":"object","properties":{},"description":"Visitors per country"}],"lifecycleDistribution":[{"type":"object","properties":{},"description":"Identities by stage: `anonymous` , `lead` , `customer` , `churned` , `other`"}],"analysis":[{"type":"object","properties":{},"description":"Written analysis: `executiveSummary` , `keyInsights` (array), `actionPlan` (array), `funnelAnalysis` , `prospectHighlights`"}]}}]}}],"examples":{"example":{"value":{"data":{"metrics":{},"leadQualityDistribution":{},"leadScoreDistribution":{},"conversionsByCode":{},"topLeads":[{}],"trafficByCountry":{},"lifecycleDistribution":{},"analysis":{}}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"orwel-docs","siteName":"Orwel","title":"Generate Report - Orwel","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T16:47:02.045Z","originalFileLocation":"api-reference/reports/create.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=\"Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Orwel\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_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=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generate Report - Orwel\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Orwel\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.orwel.io/docs/api-reference/reports/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://orwel-docs.mintlify.app/_mintlify/api/og/v2?division=Reports\u0026amp;title=Generate+Report\u0026amp;description=Build+a+report+for+a+date+range%3A+visitors%2C+leads%2C+conversion+rate%2C+lead+quality%2C+top+leads%2C+traffic+by+country%2C+plus+a+written+summary+and+action+plan.\u0026amp;theme=c069ada5c2f261fd9ddbf68b\u0026amp;signature=8eb8c3515e1086002ec4d383b190a7e02cdf40cdcb655eb0680bfb7906871bea\">\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=\"Generate Report - Orwel\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orwel-docs.mintlify.app/_mintlify/api/og/v2?division=Reports\u0026amp;title=Generate+Report\u0026amp;description=Build+a+report+for+a+date+range%3A+visitors%2C+leads%2C+conversion+rate%2C+lead+quality%2C+top+leads%2C+traffic+by+country%2C+plus+a+written+summary+and+action+plan.\u0026amp;theme=c069ada5c2f261fd9ddbf68b\u0026amp;signature=8eb8c3515e1086002ec4d383b190a7e02cdf40cdcb655eb0680bfb7906871bea\">\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=\"/docs/mintlify-assets/_mintlify/favicons/orwel-docs/hIdAacvI_SxZwyo6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Orwel\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2853ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.orwel.io/docs/api-reference/reports/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/reports/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.orwel.io/#organization\",\"name\":\"Orwel\",\"url\":\"https://www.orwel.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/orwel-docs/oZX7rBe1PSAnJ1a6/logo/light.svg?fit=max\u0026auto=format\u0026n=oZX7rBe1PSAnJ1a6\u0026q=85\u0026s=80bb317ac5f334005787239fe5fc49d8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.orwel.io/docs#website\",\"name\":\"Orwel\",\"url\":\"https://www.orwel.io/docs\",\"publisher\":{\"@id\":\"https://www.orwel.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.orwel.io/docs/api-reference/reports/create#webpage\",\"url\":\"https://www.orwel.io/docs/api-reference/reports/create\",\"name\":\"Generate Report\",\"description\":\"Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.\",\"dateModified\":\"2026-11-04T16:47:02.045Z\",\"isPartOf\":{\"@id\":\"https://www.orwel.io/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.orwel.io/docs/api-reference/reports/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.orwel.io/docs/api-reference/reports/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orwel\",\"item\":\"https://www.orwel.io/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate Report\",\"item\":\"https://www.orwel.io/docs/api-reference/reports/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.orwel.io/docs/api-reference/reports/create#apireference\",\"headline\":\"Generate Report\",\"name\":\"Generate Report\",\"description\":\"Build a report for a date range: visitors, leads, conversion rate, lead quality, top leads, traffic by country, plus a written summary and action plan.\",\"url\":\"https://www.orwel.io/docs/api-reference/reports/create\",\"mainEntityOfPage\":{\"@id\":\"https://www.orwel.io/docs/api-reference/reports/create#webpage\"},\"dateModified\":\"2026-11-04T16:47:02.045Z\",\"publisher\":{\"@id\":\"https://www.orwel.io/#organization\"},\"isPartOf\":{\"@id\":\"https://www.orwel.io/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Orwel\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Orwel","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"Leads","pages":[{"title":"List Leads","api":"GET https://api.orwel.io/api/v1/leads","href":"/api-reference/leads/list"},{"title":"Get Lead","api":"GET https://api.orwel.io/api/v1/leads/{id}","href":"/api-reference/leads/get"},{"title":"Create Lead","api":"POST https://api.orwel.io/api/v1/leads","href":"/api-reference/leads/create"},{"title":"Update Lead","api":"PATCH https://api.orwel.io/api/v1/leads/{id}","href":"/api-reference/leads/update"}]},{"group":"Users","pages":[{"title":"List Users","api":"GET https://api.orwel.io/api/v1/users","href":"/api-reference/users/list"},{"title":"Get User","api":"GET https://api.orwel.io/api/v1/users/{id}","href":"/api-reference/users/get"}]},{"group":"Identities","pages":[{"title":"List Identities","api":"GET https://api.orwel.io/api/v1/identities","href":"/api-reference/identities/list"},{"title":"Get Identity","api":"GET https://api.orwel.io/api/v1/identities/{id}","href":"/api-reference/identities/get"},{"title":"Create Identity","api":"POST https://api.orwel.io/api/v1/identities","href":"/api-reference/identities/create"},{"title":"Update Identity","api":"PATCH https://api.orwel.io/api/v1/identities/{id}","href":"/api-reference/identities/update"},{"title":"Get Personalities","api":"GET https://api.orwel.io/api/v1/identities/{id}/personalities","href":"/api-reference/identities/personalities"},{"title":"Get Activity","api":"GET https://api.orwel.io/api/v1/identities/{id}/activity","href":"/api-reference/identities/activity"}]},{"group":"Companies","pages":[{"title":"List Companies","api":"GET https://api.orwel.io/api/v1/companies","href":"/api-reference/companies/list"},{"title":"Get Company","api":"GET https://api.orwel.io/api/v1/companies/{id}","href":"/api-reference/companies/get"}]},{"group":"Visitor Lists","pages":[{"title":"List Visitor Lists","api":"GET https://api.orwel.io/api/v1/lists","href":"/api-reference/lists/list"}]},{"group":"Campaigns","pages":[{"title":"List Campaigns","api":"GET https://api.orwel.io/api/v1/campaigns","href":"/api-reference/campaigns/list"}]},{"group":"Conversions","pages":[{"title":"List Conversions","api":"GET https://api.orwel.io/api/v1/conversions","href":"/api-reference/conversions/list"},{"title":"Get Conversion","api":"GET https://api.orwel.io/api/v1/conversions/{id}","description":"One conversion by id, with its lead, identity, session, properties and page.","href":"/api-reference/conversions/get"}]},{"group":"Reports","pages":[{"title":"Generate Report","api":"POST https://api.orwel.io/api/v1/reports","href":"/api-reference/reports/create"}]}]}]},"basePath":"","title":"Generate Report - Orwel","buildId":"dpl_GWQzn6k13MqphA3qck3hQKoQXDzM","deploymentId":"dpl_GWQzn6k13MqphA3qck3hQKoQXDzM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-vlKR2tYY.js","utils-DBDPZSWe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CxHK4zz2.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-27b98BOz.js","snippetPresets-DNnui32z.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-cDVS2zyo.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BEE-OyDQ.js","shallow-fqEMZOYR.js","getApiPlaygroundDisplay-BPut1_OB.js","CodeSnippet-h9vp8UTG.js","CodeSnippets-DoMjCW5Q.js","Page-BOWGOUSK.js","getPastedJson-C4r-hmQ_.js","icon-CCDahfhO.js","MethodPill-Dpq0JSrS.js","DuplicateIcon-BGPwFt-j.js","createIcon-DBULrQp7.js","DynamicMarkdown-B74atANy.js","SectionHeading-DZCpbSmT.js","axios-vUo_bRtp.js"]}