Returns the current state of a search: running (with partialStats, a pollUrl, and a Retry-After header), completed (with the full mentions array + stats), failed, or quota_exhausted.
Clerk API key. Create one in Settings → API Keys. Pass as Authorization: Bearer <key>. Keys carry a scope — read, write (implies read) or admin (implies write) — chosen when the key is minted. Each operation's security requirement (and its x-required-scope extension) names the minimum scope it needs; request the least-privileged key that covers the operations you call.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Octolens","colors":{"primary":"#7551B5","light":"#9266CC","dark":"#553788"},"logo":"https://mintcdn.com/octolens/WNDsqX0Zcsk1Nv6R/logo.png?fit=max\u0026auto=format\u0026n=WNDsqX0Zcsk1Nv6R\u0026q=85\u0026s=3b4eb4dc59ef232691d1bfb70bd366ef","favicon":"https://mintcdn.com/octolens/WNDsqX0Zcsk1Nv6R/favicon.png?fit=max\u0026auto=format\u0026n=WNDsqX0Zcsk1Nv6R\u0026q=85\u0026s=8d4d87d123e6614f6f2b19d5d6dbc931","navbar":{"links":[{"href":"mailto:hi@octolens.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.octolens.com"}},"footer":{"socials":{"x":"https://x.com/Octolens","website":"https://octolens.com"}},"integrations":{"plausible":{"domain":"octolens.com"}},"contextual":{"options":["copy","view","chatgpt","claude",{"title":"Copy all docs as Markdown","description":"Full documentation including every API endpoint, for pasting into AI tools","icon":"books","href":"/llms-full.txt"}],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"octolens","hasAudioNarration":false,"actualSubdomain":"octolens","customDomains":["octolens.com"],"gitSource":{"type":"github","owner":"octolens","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6aed7fafcf04481e86d79d59","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"API Reference","count":116},{"language":"default","tag":"API v2","count":115},{"language":"default","tag":"CLI","count":39},{"language":"default","tag":"Documentation","count":24},{"language":"default","tag":"Onboarding","count":18},{"language":"default","tag":"Analytics","count":12},{"language":"default","tag":"Integrations","count":11},{"language":"default","tag":"Keywords","count":11},{"language":"default","tag":"Concepts","count":10},{"language":"default","tag":"Commands","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width: 1024px){#navbar-transition-maple{width:calc(100vw - 19rem)!important;max-width:calc(100vw - 19rem)!important}.nav-tabs{flex:1 1 auto;justify-content:center;padding-right:8rem}#octolens-go-to-app{position:fixed;right:1.5rem;top:0.5rem;z-index:50;display:inline-flex;align-items:center;gap:0.375rem;background:#553788;color:#fff;padding:0.375rem 0.875rem;border-radius:9999px;font-size:0.8125rem;font-weight:500;text-decoration:none;transition:background-color 0.15s ease;white-space:nowrap}#octolens-go-to-app:hover{background:#7551B5;color:#fff}#octolens-go-to-app svg{width:0.75rem;height:0.75rem}}@media (max-width: 1023px){#octolens-go-to-app{display:none}}"}],"page":{"pagePath":"api-reference/search/get-an-on-demand-search","slug":"/api-reference/search/get-an-on-demand-search","pageMetadata":{"title":"Get an on-demand search","description":"Returns the current state of a search: `running` (with `partialStats`, a `pollUrl`, and a `Retry-After` header), `completed` (with the full `mentions` array + `stats`), `failed`, or `quota_exhausted`.","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/search/{searchId}","href":"/api-reference/search/get-an-on-demand-search","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Returns the current state of a search: \", _jsx(_components.code, {\n children: \"running\"\n }), \" (with \", _jsx(_components.code, {\n children: \"partialStats\"\n }), \", a \", _jsx(_components.code, {\n children: \"pollUrl\"\n }), \", and a \", _jsx(_components.code, {\n children: \"Retry-After\"\n }), \" header), \", _jsx(_components.code, {\n children: \"completed\"\n }), \" (with the full \", _jsx(_components.code, {\n children: \"mentions\"\n }), \" array + \", _jsx(_components.code, {\n children: \"stats\"\n }), \"), \", _jsx(_components.code, {\n children: \"failed\"\n }), \", or \", _jsx(_components.code, {\n children: \"quota_exhausted\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get an on-demand search","description":"Returns the current state of a search: `running` (with `partialStats`, a `pollUrl`, and a `Retry-After` header), `completed` (with the full `mentions` array + `stats`), `failed`, or `quota_exhausted`.","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/search/{searchId}","href":"/api-reference/search/get-an-on-demand-search","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/octolens/e456fc9c822f0ecf/scripts.js"],"openApiReferenceData":{"operation":{"operationId":"getSearch","summary":"Get an on-demand search","description":"Returns the current state of a search: `running` (with `partialStats`, a `pollUrl`, and a `Retry-After` header), `completed` (with the full `mentions` array + `stats`), `failed`, or `quota_exhausted`.","tags":["Search"],"x-required-scope":"read","security":["11b58e3e-d70b-4f48-ad8f-3e39a1acda2a"],"parameters":["c09005f8-8c19-4344-9b6f-fea79aa5ef08"],"responses":{"200":"2a0b0b25-b8a7-4ac6-90a8-40c07155d819","400":"94e31903-35c2-47a3-a41c-0e1166b5e4c4","401":"e3a7aa4f-336e-42ad-ac46-1c3cd189ba52","403":"7ae74d55-5b2d-4e6a-bef8-1dba73051b20","429":"76caf6f5-184c-4af6-bf6d-cc6bb55a7170","500":"d1f68b66-cef0-45bf-824a-94041730250f"},"method":"get","type":"path","servers":["95c85c73-69fc-4455-89ee-030232ddd6be","7edc9ee9-5b0a-4aa6-8470-691b1ed2a22a"],"path":"/api/v2/search/{searchId}","baseUrlOptions":["https://app.octolens.com","http://localhost:3000"],"title":"Get an on-demand search","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c09005f8-8c19-4344-9b6f-fea79aa5ef08":{"in":"path","name":"searchId","schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true}},"responses":{"2a0b0b25-b8a7-4ac6-90a8-40c07155d819":{"description":"200 response","headers":{"X-Octolens-Mentions-Remaining":{"description":"Mentions remaining in the workspace's monthly AI-scoring quota after this request. Present on every successful search response (all plans) unless the quota read failed, in which case the header is omitted — never wrong. Use it to self-throttle before hitting the quota wall (`UPGRADE_REQUIRED` / `QUOTA_EXCEEDED`).","schema":{"type":"integer"}},"X-Octolens-Searches-Remaining":{"description":"Lifetime on-demand searches remaining. Present only on plans with a lifetime search cap (the Agents plan); absent elsewhere and when the quota read failed. At 0 the next search answers 403 `UPGRADE_REQUIRED`, whose envelope carries `upgradeUrl` and `upgradeCommand`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"description":"State of a previously-started search.","type":"object","properties":{"searchId":{"type":"string","isRequired":true,"uniqueKey":"searchId","typeLabel":"string"},"status":{"type":"string","enum":["running","completed","failed","quota_exhausted"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"query":{"type":"string","isRequired":true,"uniqueKey":"query","typeLabel":"string"},"timeWindow":{"type":"string","enum":["1d","7d","30d"],"isRequired":true,"uniqueKey":"timeWindow","typeLabel":"enum\u003cstring>"},"sources":{"type":"array","items":{"type":"string","uniqueKey":"sources.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"sources","typeLabel":"string[]"},"startedAt":{"type":"string","isRequired":true,"uniqueKey":"startedAt","typeLabel":"string"},"completedAt":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"completedAt.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"completedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"completedAt","typeLabel":"string | null"},"stats":{"oneOf":[{"type":"object","properties":{"rawMatches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"uniqueKey":"stats.oneOf.0.rawMatches","typeLabel":"integer"},"afterDedup":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"uniqueKey":"stats.oneOf.0.afterDedup","typeLabel":"integer"},"afterRelevance":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"uniqueKey":"stats.oneOf.0.afterRelevance","typeLabel":"integer"},"mentionsConsumed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"uniqueKey":"stats.oneOf.0.mentionsConsumed","typeLabel":"integer"},"perSource":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"uniqueKey":"stats.oneOf.0.perSource.additionalProperties","typeLabel":"integer"},"uniqueKey":"stats.oneOf.0.perSource","typeLabel":"object"},"skippedSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","uniqueKey":"stats.oneOf.0.skippedSources.additionalProperties","typeLabel":"string"},"uniqueKey":"stats.oneOf.0.skippedSources","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"stats.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"stats.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stats","typeLabel":"object | null"},"mentions":{"type":"array","items":{"description":"An on-demand search result (canonical Mention + alreadyInWorkspace flag).","type":"object","properties":{"id":{"description":"Internal post id (numeric). Pass as `postId` to `PATCH /api/v2/mentions/{sourceId}`.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"mentions.items.[INDEX].id","typeLabel":"integer"},"sourceId":{"description":"Stable composite key for the mention across the collection pipeline (e.g. `reddit_t3_1abc234`). Use this as the path parameter for `PATCH /api/v2/mentions/{sourceId}` and as the `sourceId` field on `POST /api/v2/feedback`.","example":"reddit_t3_1abc234","type":"string","isRequired":true,"uniqueKey":"mentions.items.[INDEX].sourceId","typeLabel":"string"},"url":{"description":"Canonical URL to the original post.","example":"https://reddit.com/r/example/comments/abc123/...","type":"string","isRequired":true,"uniqueKey":"mentions.items.[INDEX].url","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Post title. `null` for platforms that don't have titles (tweets, etc.).","isRequired":true,"uniqueKey":"mentions.items.[INDEX].title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Post title. `null` for platforms that don't have titles (tweets, etc.).","isRequired":true,"uniqueKey":"mentions.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].title","typeLabel":"string | null"},"body":{"oneOf":[{"type":"string","description":"Post body / content. May be empty or `null` for posts with no text.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].body.oneOf.0","typeLabel":"string"},{"type":"null","description":"Post body / content. May be empty or `null` for posts with no text.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].body.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].body","typeLabel":"string | null"},"source":{"description":"Platform the mention was collected from. Lowercase values like `reddit`, `twitter`, `linkedin`. Historical rows may be uppercase.","example":"reddit","type":"string","isRequired":true,"uniqueKey":"mentions.items.[INDEX].source","typeLabel":"string"},"timestamp":{"description":"When the mention was posted. Tinybird-style datetime string (`YYYY-MM-DD HH:mm:ss.SSS`, UTC, no `Z` suffix).","example":"2026-05-06 13:35:37.000","type":"string","isRequired":true,"uniqueKey":"mentions.items.[INDEX].timestamp","typeLabel":"string"},"author":{"oneOf":[{"type":"string","description":"Handle/username of the mention's author. `null` if not captured.","example":"jane.doe","isRequired":true,"uniqueKey":"mentions.items.[INDEX].author.oneOf.0","typeLabel":"string"},{"type":"null","description":"Handle/username of the mention's author. `null` if not captured.","example":"jane.doe","isRequired":true,"uniqueKey":"mentions.items.[INDEX].author.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].author","typeLabel":"string | null"},"authorName":{"oneOf":[{"type":"string","description":"Display name of the author, when distinct from the handle.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name of the author, when distinct from the handle.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorName","typeLabel":"string | null"},"authorAvatar":{"oneOf":[{"type":"string","description":"URL to the author's avatar image. `null` if not captured.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorAvatar.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the author's avatar image. `null` if not captured.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorAvatar.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorAvatar","typeLabel":"string | null"},"authorUrl":{"oneOf":[{"type":"string","description":"URL to the author's profile page. `null` if not captured.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the author's profile page. `null` if not captured.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorUrl","typeLabel":"string | null"},"authorFollowers":{"oneOf":[{"type":"integer","description":"Author's follower count at collection time. `null` if not available.","maximum":9007199254740991,"minimum":-9007199254740991,"isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorFollowers.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Author's follower count at collection time. `null` if not available.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorFollowers.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].authorFollowers","typeLabel":"integer | null"},"relevance":{"description":"Relevance classification. Always one of `relevant` / `not_relevant` (unscored posts collapse to `not_relevant`).","example":"relevant","type":"string","enum":["relevant","not_relevant"],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].relevance","typeLabel":"enum\u003cstring>"},"relevanceComment":{"oneOf":[{"type":"string","description":"Free-text justification the AI produced for its relevance verdict, when available.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].relevanceComment.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text justification the AI produced for its relevance verdict, when available.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].relevanceComment.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].relevanceComment","typeLabel":"string | null"},"sentiment":{"oneOf":[{"type":"string","description":"Sentiment classification. `null` until the AI has scored this mention. Workspaces on the new relevance engine (gradual rollout) receive sentiment for the company: `Positive` = good news for your company, e.g. a competitor criticised.","enum":["Positive","Neutral","Negative"],"example":"Neutral","isRequired":true,"uniqueKey":"mentions.items.[INDEX].sentiment.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Sentiment classification. `null` until the AI has scored this mention. Workspaces on the new relevance engine (gradual rollout) receive sentiment for the company: `Positive` = good news for your company, e.g. a competitor criticised.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].sentiment.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].sentiment","typeLabel":"enum\u003cstring> | null"},"emotion":{"oneOf":[{"type":"string","description":"The author's emotion. `null` until the AI has scored this mention, for mentions scored before emotion detection existed, and for workspaces not yet on the new relevance engine (gradual rollout).","enum":["excited","satisfied","curious","confused","frustrated","angry","disappointed","concerned","neutral"],"example":"frustrated","isRequired":true,"uniqueKey":"mentions.items.[INDEX].emotion.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The author's emotion. `null` until the AI has scored this mention, for mentions scored before emotion detection existed, and for workspaces not yet on the new relevance engine (gradual rollout).","isRequired":true,"uniqueKey":"mentions.items.[INDEX].emotion.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].emotion","typeLabel":"enum\u003cstring> | null"},"language":{"oneOf":[{"type":"string","description":"Detected language as a full lowercase English name (`english`, `spanish`, …; `undetermined` when detection fails) — never an ISO 639-1 code.","example":"english","isRequired":true,"uniqueKey":"mentions.items.[INDEX].language.oneOf.0","typeLabel":"string"},{"type":"null","description":"Detected language as a full lowercase English name (`english`, `spanish`, …; `undetermined` when detection fails) — never an ISO 639-1 code.","example":"english","isRequired":true,"uniqueKey":"mentions.items.[INDEX].language.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].language","typeLabel":"string | null"},"tags":{"description":"AI-assigned topic tags applied to the mention.","example":["competitor_mention","pricing"],"type":"array","items":{"description":"AI-assigned topic tag. Applied by the relevance worker during scoring. A post can carry multiple tags.","example":"competitor_mention","type":"string","enum":["buy_intent","competitor_mention","customer_testimonial","promotional_post","own_brand_mention","industry_insights","hiring","event","product_question","pricing","churn_intent","launch_announcement","bug_report","user_feedback","ai_generated"],"uniqueKey":"mentions.items.[INDEX].tags.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"mentions.items.[INDEX].tags","typeLabel":"enum\u003cstring>[]"},"keywords":{"description":"Monitored keywords this mention matched, with id + display text.","example":[{"id":42,"keyword":"social listening"}],"type":"array","items":{"description":"Keyword the mention matched, with its display text.","type":"object","properties":{"id":{"description":"Tracked keyword id.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"mentions.items.[INDEX].keywords.items.[INDEX].id","typeLabel":"integer"},"keyword":{"description":"Keyword text.","type":"string","isRequired":true,"uniqueKey":"mentions.items.[INDEX].keywords.items.[INDEX].keyword","typeLabel":"string"},"keywordTag":{"description":"Keyword's classification tag (e.g. `own_brand`, `competitor`, `industry_term`). Internal; ignored by external consumers.","type":"string","uniqueKey":"mentions.items.[INDEX].keywords.items.[INDEX].keywordTag","typeLabel":"string"}},"required":["id","keyword"],"additionalProperties":false,"uniqueKey":"mentions.items.[INDEX].keywords.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"mentions.items.[INDEX].keywords","typeLabel":"object[]"},"engaged":{"description":"Whether a workspace member has marked this mention as engaged-with (replied, liked on-platform, etc.).","type":"boolean","isRequired":true,"uniqueKey":"mentions.items.[INDEX].engaged","typeLabel":"boolean"},"isReply":{"description":"`true` for a detected reply or comment on a supported threaded platform (X, Reddit, Bluesky, or Hacker News). Legacy mentions default to `false` because there was no backfill.","type":"boolean","isRequired":true,"uniqueKey":"mentions.items.[INDEX].isReply","typeLabel":"boolean"},"review":{"description":"Direct-review metadata. Omitted for ordinary social/web mentions and present for Trustpilot, Google Reviews, App Store, and Google Play reviews.","type":"object","properties":{"rating":{"description":"Rating left by the reviewer.","type":"number","minimum":0,"isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.rating","typeLabel":"number"},"ratingMax":{"description":"Maximum value of the provider's rating scale.","type":"number","exclusiveMinimum":0,"isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.ratingMax","typeLabel":"number"},"verified":{"oneOf":[{"type":"boolean","description":"Whether the provider marks the review as verified.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.verified.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the provider marks the review as verified.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.verified.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.verified","typeLabel":"boolean | null"},"response":{"oneOf":[{"type":"string","description":"Latest owner/developer response, when supplied by the provider.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.response.oneOf.0","typeLabel":"string"},{"type":"null","description":"Latest owner/developer response, when supplied by the provider.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.response.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.response","typeLabel":"string | null"},"responseAt":{"oneOf":[{"type":"string","description":"UTC timestamp of the latest owner/developer response.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.responseAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"UTC timestamp of the latest owner/developer response.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.responseAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.responseAt","typeLabel":"string | null"},"targetName":{"oneOf":[{"type":"string","description":"Configured business or app name this review belongs to.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.targetName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Configured business or app name this review belongs to.","isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.targetName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"mentions.items.[INDEX].review.targetName","typeLabel":"string | null"}},"required":["rating","ratingMax","verified","response","responseAt","targetName"],"additionalProperties":false,"uniqueKey":"mentions.items.[INDEX].review","typeLabel":"object"},"relevanceScore":{"oneOf":[{"type":"number","description":"Raw internal relevance score (0 = high, 1 = medium, 2 = low). The public `relevance` field is derived from this. Optional; not all consumers populate it.","uniqueKey":"mentions.items.[INDEX].relevanceScore.oneOf.0","typeLabel":"number"},{"type":"null","description":"Raw internal relevance score (0 = high, 1 = medium, 2 = low). The public `relevance` field is derived from this. Optional; not all consumers populate it.","uniqueKey":"mentions.items.[INDEX].relevanceScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"mentions.items.[INDEX].relevanceScore","typeLabel":"number | null"},"feedbackRelevant":{"description":"User feedback on this mention's relevance: `1` for thumbs up, `-1` for thumbs down, `0` for no feedback. Optional.","type":"number","uniqueKey":"mentions.items.[INDEX].feedbackRelevant","typeLabel":"number"},"imageUrl":{"oneOf":[{"type":"string","description":"URL to a preview image attached to the post, when present.","uniqueKey":"mentions.items.[INDEX].imageUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to a preview image attached to the post, when present.","uniqueKey":"mentions.items.[INDEX].imageUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"mentions.items.[INDEX].imageUrl","typeLabel":"string | null"},"keywordId":{"description":"Denormalized first-matched keyword id. Convenience for callers that need a single keyword reference without scanning `keywords[]`.","type":"number","uniqueKey":"mentions.items.[INDEX].keywordId","typeLabel":"number"},"engagementMetrics":{"description":"Latest public engagement counters for this platform. Metric names are source-specific; unavailable counters are omitted rather than reported as zero.","example":{"likes":120,"replies":8,"views":4200},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991,"uniqueKey":"mentions.items.[INDEX].engagementMetrics.additionalProperties","typeLabel":"integer"},"uniqueKey":"mentions.items.[INDEX].engagementMetrics","typeLabel":"object"},"engagementObservedAt":{"oneOf":[{"type":"string","description":"UTC time at which the public engagement counters were last observed.","uniqueKey":"mentions.items.[INDEX].engagementObservedAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"UTC time at which the public engagement counters were last observed.","uniqueKey":"mentions.items.[INDEX].engagementObservedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"mentions.items.[INDEX].engagementObservedAt","typeLabel":"string | null"},"alreadyInWorkspace":{"description":"True when this result was already collected by the workspace's monitored keywords (matched via contentHash). Flagged results do NOT count against the monthly mention quota.","type":"boolean","uniqueKey":"mentions.items.[INDEX].alreadyInWorkspace","typeLabel":"boolean"}},"required":["id","sourceId","url","title","body","source","timestamp","author","authorName","authorAvatar","authorUrl","authorFollowers","relevance","relevanceComment","sentiment","emotion","language","tags","keywords","engaged","isReply"],"additionalProperties":false,"uniqueKey":"mentions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"mentions","typeLabel":"object[]"},"pollUrl":{"type":"string","uniqueKey":"pollUrl","typeLabel":"string"},"error":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"string | null"}},"required":["searchId","status","query","timeWindow","sources","startedAt","completedAt","stats","mentions"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"searchId":"\u003cstring>","status":"running","query":"\u003cstring>","timeWindow":"1d","sources":["\u003cstring>"],"startedAt":"\u003cstring>","completedAt":"\u003cstring>","stats":{"rawMatches":0,"afterDedup":0,"afterRelevance":0,"mentionsConsumed":0,"perSource":{},"skippedSources":{}},"mentions":[{"id":0,"sourceId":"reddit_t3_1abc234","url":"https://reddit.com/r/example/comments/abc123/...","title":"\u003cstring>","body":"\u003cstring>","source":"reddit","timestamp":"2026-05-06 13:35:37.000","author":"jane.doe","authorName":"\u003cstring>","authorAvatar":"\u003cstring>","authorUrl":"\u003cstring>","authorFollowers":0,"relevance":"relevant","relevanceComment":"\u003cstring>","sentiment":"Neutral","emotion":"frustrated","language":"english","tags":["competitor_mention","pricing"],"keywords":[{"id":42,"keyword":"social listening"}],"engaged":true,"isReply":true,"review":{"rating":1,"ratingMax":123,"verified":true,"response":"\u003cstring>","responseAt":"\u003cstring>","targetName":"\u003cstring>"},"relevanceScore":123,"feedbackRelevant":123,"imageUrl":"\u003cstring>","keywordId":123,"engagementMetrics":{"likes":120,"replies":8,"views":4200},"engagementObservedAt":"\u003cstring>","alreadyInWorkspace":true}],"pollUrl":"\u003cstring>","error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"94e31903-35c2-47a3-a41c-0e1166b5e4c4":{"description":"Validation error","content":{"application/json":{"schema":{"description":"Standard error envelope returned for all non-2xx responses. The `code` field is stable — safe to branch on programmatically. `code`, `message` and `status` are always present; anything else is additive and per-code (`details` on `VALIDATION_ERROR`, `upgradeUrl`/`upgradeCommand` on `UPGRADE_REQUIRED`).","type":"object","properties":{"error":{"type":"object","properties":{"code":{"description":"Machine-readable error code. See `ApiErrorCode` for the full list.","type":"string","enum":["UNAUTHORIZED","FORBIDDEN","RATE_LIMITED","VALIDATION_ERROR","INTERNAL_ERROR","MEMBER_REQUIRED","BRIEF_DISABLED","INVALID_BRIEF_LINK","PREFERENCE_CHANGED","BRIEF_NOT_FOUND","INVALID_BRIEF_WINDOW","INVALID_RECIPIENT_COUNT","ORGANIZATION_REQUIRED","FORBIDDEN_ORGANIZATION","MASTER_KEY_REQUIRED","AGENCY_INACTIVE","NOT_AN_AGENCY_WORKSPACE","AGENCY_NOT_FOUND","WORKSPACE_NOT_IN_AGENCY","ANCHOR_WORKSPACE","AGENCY_WORKSPACE_LIMIT","INVITE_FANOUT_TOO_LARGE","SUPERADMIN_REMOVE_FORBIDDEN","USER_REQUIRED","FLEX_REQUIRES_CAP","FLEX_REQUIRES_BUDGET","AGENCY_BILLING_NOT_CONFIGURED","WORKSPACE_CREATE_FAILED","WORKSPACE_SETUP_FAILED","WORKSPACE_ACCESS_FAILED","UPGRADE_REQUIRED","QUOTA_EXCEEDED","WORKSPACE_PENDING_REVIEW","SETUP_DECISION_PENDING","MENTIONS_PREVIEW_NOT_READY","MENTIONS_NOT_VIEWED","KEYWORDS_STEP_INVALID","ONBOARDING_STEP_NOT_CURRENT","ONBOARDING_REVISION_CHANGED","ONBOARDING_IN_PROGRESS","SETUP_DRAFT_NOT_FOUND","PAYWALL","SANDBOX_WORKSPACE","SECOND_FREE_TRIAL_FORBIDDEN","AUTH_LOOKUP_UNAVAILABLE","NOT_IMPLEMENTED","FEED_NOT_ONBOARDING","NOT_FOUND","FEED_NOT_FOUND","KEYWORD_NOT_FOUND","KEYWORDS_NOT_FOUND","POST_NOT_FOUND","MENTION_NOT_FOUND","SUMMARY_NOT_FOUND","SEARCH_NOT_FOUND","SUGGESTION_NOT_FOUND","COMPANY_NOT_FOUND","ORG_NOT_FOUND","SETTINGS_NOT_FOUND","NOTIFICATION_NOT_FOUND","VIEW_NOT_FOUND","ALERT_NOT_FOUND","ATTENTION_ITEM_NOT_FOUND","FEATURE_DISABLED","MENTION_KEYWORD_UNKNOWN","EXPORT_LINK_UNAVAILABLE","INVALID_INPUT","KEYWORD_LIMIT_EXCEEDED","KEYWORD_OPERATOR_SYNTAX","LAST_ADMIN","ITEM_EXISTS","INVALID_DOMAIN","INVALID_TIMEZONE","SLACK_NOT_CONNECTED","SLACK_CHANNEL_NOT_FOUND","SLACK_CHANNEL_REQUIRED","WEBHOOK_URL_INVALID","NO_DESTINATIONS","NO_SAMPLE_MENTION","INVALID_DESTINATION","DESTINATION_INDEX_OUT_OF_RANGE","FILTER_LIMIT_EXCEEDED","FILTER_CONDITION_LIMIT_EXCEEDED","ENGAGEMENT_METRICS_DISABLED","ATTENTION_ACTION_NOT_APPLY","WEB_SOURCE_UNAVAILABLE","INSTAGRAM_SOURCE_UNAVAILABLE","FACEBOOK_SOURCE_UNAVAILABLE","DISCORD_SOURCE_UNAVAILABLE","DISCORD_ADMIN_ONLY","DISCORD_LINK_NOT_FOUND","DISCORD_MONITOR_NOT_FOUND","DISCORD_CHANNEL_INVALID","DISCORD_KEYWORD_NOT_TEXT","DISCORD_MONITOR_EXISTS","DISCORD_LINK_BUSY","DISCORD_MONITOR_BUSY","FEED_FILTER_WRITE_CONFLICT","ENGAGE_FAILED","RELEVANCE_UPDATE_FAILED"],"example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error message.","example":"Resource not found","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"status":{"description":"HTTP status code — always matches the response status.","example":404,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"details":{"description":"Present on `VALIDATION_ERROR` responses. Contains Zod issues describing each failing field (path, code, message).","type":"array","items":{"oneOf":[{}],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"any[]"},"upgradeUrl":{"description":"Present on `UPGRADE_REQUIRED` responses (additive — see `ApiErrorCode`): the URL of the upgrade page for this workspace.","example":"https://app.octolens.com/me/upgrade?src=agents","type":"string","uniqueKey":"error.upgradeUrl","typeLabel":"string"},"upgradeCommand":{"description":"Present on `UPGRADE_REQUIRED` responses (additive): the CLI command that mints a single-use, already-authenticated link into the upgrade page.","example":"octolens upgrade","type":"string","uniqueKey":"error.upgradeCommand","typeLabel":"string"}},"required":["code","message","status"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"Resource not found","status":404,"details":["\u003cunknown>"],"upgradeUrl":"https://app.octolens.com/me/upgrade?src=agents","upgradeCommand":"octolens upgrade"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e3a7aa4f-336e-42ad-ac46-1c3cd189ba52":{"description":"Missing or invalid authentication","content":{"application/json":{"schema":{"description":"Standard error envelope returned for all non-2xx responses. The `code` field is stable — safe to branch on programmatically. `code`, `message` and `status` are always present; anything else is additive and per-code (`details` on `VALIDATION_ERROR`, `upgradeUrl`/`upgradeCommand` on `UPGRADE_REQUIRED`).","type":"object","properties":{"error":{"type":"object","properties":{"code":{"description":"Machine-readable error code. See `ApiErrorCode` for the full list.","type":"string","enum":["UNAUTHORIZED","FORBIDDEN","RATE_LIMITED","VALIDATION_ERROR","INTERNAL_ERROR","MEMBER_REQUIRED","BRIEF_DISABLED","INVALID_BRIEF_LINK","PREFERENCE_CHANGED","BRIEF_NOT_FOUND","INVALID_BRIEF_WINDOW","INVALID_RECIPIENT_COUNT","ORGANIZATION_REQUIRED","FORBIDDEN_ORGANIZATION","MASTER_KEY_REQUIRED","AGENCY_INACTIVE","NOT_AN_AGENCY_WORKSPACE","AGENCY_NOT_FOUND","WORKSPACE_NOT_IN_AGENCY","ANCHOR_WORKSPACE","AGENCY_WORKSPACE_LIMIT","INVITE_FANOUT_TOO_LARGE","SUPERADMIN_REMOVE_FORBIDDEN","USER_REQUIRED","FLEX_REQUIRES_CAP","FLEX_REQUIRES_BUDGET","AGENCY_BILLING_NOT_CONFIGURED","WORKSPACE_CREATE_FAILED","WORKSPACE_SETUP_FAILED","WORKSPACE_ACCESS_FAILED","UPGRADE_REQUIRED","QUOTA_EXCEEDED","WORKSPACE_PENDING_REVIEW","SETUP_DECISION_PENDING","MENTIONS_PREVIEW_NOT_READY","MENTIONS_NOT_VIEWED","KEYWORDS_STEP_INVALID","ONBOARDING_STEP_NOT_CURRENT","ONBOARDING_REVISION_CHANGED","ONBOARDING_IN_PROGRESS","SETUP_DRAFT_NOT_FOUND","PAYWALL","SANDBOX_WORKSPACE","SECOND_FREE_TRIAL_FORBIDDEN","AUTH_LOOKUP_UNAVAILABLE","NOT_IMPLEMENTED","FEED_NOT_ONBOARDING","NOT_FOUND","FEED_NOT_FOUND","KEYWORD_NOT_FOUND","KEYWORDS_NOT_FOUND","POST_NOT_FOUND","MENTION_NOT_FOUND","SUMMARY_NOT_FOUND","SEARCH_NOT_FOUND","SUGGESTION_NOT_FOUND","COMPANY_NOT_FOUND","ORG_NOT_FOUND","SETTINGS_NOT_FOUND","NOTIFICATION_NOT_FOUND","VIEW_NOT_FOUND","ALERT_NOT_FOUND","ATTENTION_ITEM_NOT_FOUND","FEATURE_DISABLED","MENTION_KEYWORD_UNKNOWN","EXPORT_LINK_UNAVAILABLE","INVALID_INPUT","KEYWORD_LIMIT_EXCEEDED","KEYWORD_OPERATOR_SYNTAX","LAST_ADMIN","ITEM_EXISTS","INVALID_DOMAIN","INVALID_TIMEZONE","SLACK_NOT_CONNECTED","SLACK_CHANNEL_NOT_FOUND","SLACK_CHANNEL_REQUIRED","WEBHOOK_URL_INVALID","NO_DESTINATIONS","NO_SAMPLE_MENTION","INVALID_DESTINATION","DESTINATION_INDEX_OUT_OF_RANGE","FILTER_LIMIT_EXCEEDED","FILTER_CONDITION_LIMIT_EXCEEDED","ENGAGEMENT_METRICS_DISABLED","ATTENTION_ACTION_NOT_APPLY","WEB_SOURCE_UNAVAILABLE","INSTAGRAM_SOURCE_UNAVAILABLE","FACEBOOK_SOURCE_UNAVAILABLE","DISCORD_SOURCE_UNAVAILABLE","DISCORD_ADMIN_ONLY","DISCORD_LINK_NOT_FOUND","DISCORD_MONITOR_NOT_FOUND","DISCORD_CHANNEL_INVALID","DISCORD_KEYWORD_NOT_TEXT","DISCORD_MONITOR_EXISTS","DISCORD_LINK_BUSY","DISCORD_MONITOR_BUSY","FEED_FILTER_WRITE_CONFLICT","ENGAGE_FAILED","RELEVANCE_UPDATE_FAILED"],"example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error message.","example":"Resource not found","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"status":{"description":"HTTP status code — always matches the response status.","example":404,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"details":{"description":"Present on `VALIDATION_ERROR` responses. Contains Zod issues describing each failing field (path, code, message).","type":"array","items":{"oneOf":[{}],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"any[]"},"upgradeUrl":{"description":"Present on `UPGRADE_REQUIRED` responses (additive — see `ApiErrorCode`): the URL of the upgrade page for this workspace.","example":"https://app.octolens.com/me/upgrade?src=agents","type":"string","uniqueKey":"error.upgradeUrl","typeLabel":"string"},"upgradeCommand":{"description":"Present on `UPGRADE_REQUIRED` responses (additive): the CLI command that mints a single-use, already-authenticated link into the upgrade page.","example":"octolens upgrade","type":"string","uniqueKey":"error.upgradeCommand","typeLabel":"string"}},"required":["code","message","status"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"Resource not found","status":404,"details":["\u003cunknown>"],"upgradeUrl":"https://app.octolens.com/me/upgrade?src=agents","upgradeCommand":"octolens upgrade"}}}},"exampleType":"generated"}},"exampleType":"generated"},"7ae74d55-5b2d-4e6a-bef8-1dba73051b20":{"description":"Forbidden (insufficient plan or permissions)","content":{"application/json":{"schema":{"description":"Standard error envelope returned for all non-2xx responses. The `code` field is stable — safe to branch on programmatically. `code`, `message` and `status` are always present; anything else is additive and per-code (`details` on `VALIDATION_ERROR`, `upgradeUrl`/`upgradeCommand` on `UPGRADE_REQUIRED`).","type":"object","properties":{"error":{"type":"object","properties":{"code":{"description":"Machine-readable error code. See `ApiErrorCode` for the full list.","type":"string","enum":["UNAUTHORIZED","FORBIDDEN","RATE_LIMITED","VALIDATION_ERROR","INTERNAL_ERROR","MEMBER_REQUIRED","BRIEF_DISABLED","INVALID_BRIEF_LINK","PREFERENCE_CHANGED","BRIEF_NOT_FOUND","INVALID_BRIEF_WINDOW","INVALID_RECIPIENT_COUNT","ORGANIZATION_REQUIRED","FORBIDDEN_ORGANIZATION","MASTER_KEY_REQUIRED","AGENCY_INACTIVE","NOT_AN_AGENCY_WORKSPACE","AGENCY_NOT_FOUND","WORKSPACE_NOT_IN_AGENCY","ANCHOR_WORKSPACE","AGENCY_WORKSPACE_LIMIT","INVITE_FANOUT_TOO_LARGE","SUPERADMIN_REMOVE_FORBIDDEN","USER_REQUIRED","FLEX_REQUIRES_CAP","FLEX_REQUIRES_BUDGET","AGENCY_BILLING_NOT_CONFIGURED","WORKSPACE_CREATE_FAILED","WORKSPACE_SETUP_FAILED","WORKSPACE_ACCESS_FAILED","UPGRADE_REQUIRED","QUOTA_EXCEEDED","WORKSPACE_PENDING_REVIEW","SETUP_DECISION_PENDING","MENTIONS_PREVIEW_NOT_READY","MENTIONS_NOT_VIEWED","KEYWORDS_STEP_INVALID","ONBOARDING_STEP_NOT_CURRENT","ONBOARDING_REVISION_CHANGED","ONBOARDING_IN_PROGRESS","SETUP_DRAFT_NOT_FOUND","PAYWALL","SANDBOX_WORKSPACE","SECOND_FREE_TRIAL_FORBIDDEN","AUTH_LOOKUP_UNAVAILABLE","NOT_IMPLEMENTED","FEED_NOT_ONBOARDING","NOT_FOUND","FEED_NOT_FOUND","KEYWORD_NOT_FOUND","KEYWORDS_NOT_FOUND","POST_NOT_FOUND","MENTION_NOT_FOUND","SUMMARY_NOT_FOUND","SEARCH_NOT_FOUND","SUGGESTION_NOT_FOUND","COMPANY_NOT_FOUND","ORG_NOT_FOUND","SETTINGS_NOT_FOUND","NOTIFICATION_NOT_FOUND","VIEW_NOT_FOUND","ALERT_NOT_FOUND","ATTENTION_ITEM_NOT_FOUND","FEATURE_DISABLED","MENTION_KEYWORD_UNKNOWN","EXPORT_LINK_UNAVAILABLE","INVALID_INPUT","KEYWORD_LIMIT_EXCEEDED","KEYWORD_OPERATOR_SYNTAX","LAST_ADMIN","ITEM_EXISTS","INVALID_DOMAIN","INVALID_TIMEZONE","SLACK_NOT_CONNECTED","SLACK_CHANNEL_NOT_FOUND","SLACK_CHANNEL_REQUIRED","WEBHOOK_URL_INVALID","NO_DESTINATIONS","NO_SAMPLE_MENTION","INVALID_DESTINATION","DESTINATION_INDEX_OUT_OF_RANGE","FILTER_LIMIT_EXCEEDED","FILTER_CONDITION_LIMIT_EXCEEDED","ENGAGEMENT_METRICS_DISABLED","ATTENTION_ACTION_NOT_APPLY","WEB_SOURCE_UNAVAILABLE","INSTAGRAM_SOURCE_UNAVAILABLE","FACEBOOK_SOURCE_UNAVAILABLE","DISCORD_SOURCE_UNAVAILABLE","DISCORD_ADMIN_ONLY","DISCORD_LINK_NOT_FOUND","DISCORD_MONITOR_NOT_FOUND","DISCORD_CHANNEL_INVALID","DISCORD_KEYWORD_NOT_TEXT","DISCORD_MONITOR_EXISTS","DISCORD_LINK_BUSY","DISCORD_MONITOR_BUSY","FEED_FILTER_WRITE_CONFLICT","ENGAGE_FAILED","RELEVANCE_UPDATE_FAILED"],"example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error message.","example":"Resource not found","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"status":{"description":"HTTP status code — always matches the response status.","example":404,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"details":{"description":"Present on `VALIDATION_ERROR` responses. Contains Zod issues describing each failing field (path, code, message).","type":"array","items":{"oneOf":[{}],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"any[]"},"upgradeUrl":{"description":"Present on `UPGRADE_REQUIRED` responses (additive — see `ApiErrorCode`): the URL of the upgrade page for this workspace.","example":"https://app.octolens.com/me/upgrade?src=agents","type":"string","uniqueKey":"error.upgradeUrl","typeLabel":"string"},"upgradeCommand":{"description":"Present on `UPGRADE_REQUIRED` responses (additive): the CLI command that mints a single-use, already-authenticated link into the upgrade page.","example":"octolens upgrade","type":"string","uniqueKey":"error.upgradeCommand","typeLabel":"string"}},"required":["code","message","status"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"Resource not found","status":404,"details":["\u003cunknown>"],"upgradeUrl":"https://app.octolens.com/me/upgrade?src=agents","upgradeCommand":"octolens upgrade"}}}},"exampleType":"generated"}},"exampleType":"generated"},"76caf6f5-184c-4af6-bf6d-cc6bb55a7170":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"description":"Standard error envelope returned for all non-2xx responses. The `code` field is stable — safe to branch on programmatically. `code`, `message` and `status` are always present; anything else is additive and per-code (`details` on `VALIDATION_ERROR`, `upgradeUrl`/`upgradeCommand` on `UPGRADE_REQUIRED`).","type":"object","properties":{"error":{"type":"object","properties":{"code":{"description":"Machine-readable error code. See `ApiErrorCode` for the full list.","type":"string","enum":["UNAUTHORIZED","FORBIDDEN","RATE_LIMITED","VALIDATION_ERROR","INTERNAL_ERROR","MEMBER_REQUIRED","BRIEF_DISABLED","INVALID_BRIEF_LINK","PREFERENCE_CHANGED","BRIEF_NOT_FOUND","INVALID_BRIEF_WINDOW","INVALID_RECIPIENT_COUNT","ORGANIZATION_REQUIRED","FORBIDDEN_ORGANIZATION","MASTER_KEY_REQUIRED","AGENCY_INACTIVE","NOT_AN_AGENCY_WORKSPACE","AGENCY_NOT_FOUND","WORKSPACE_NOT_IN_AGENCY","ANCHOR_WORKSPACE","AGENCY_WORKSPACE_LIMIT","INVITE_FANOUT_TOO_LARGE","SUPERADMIN_REMOVE_FORBIDDEN","USER_REQUIRED","FLEX_REQUIRES_CAP","FLEX_REQUIRES_BUDGET","AGENCY_BILLING_NOT_CONFIGURED","WORKSPACE_CREATE_FAILED","WORKSPACE_SETUP_FAILED","WORKSPACE_ACCESS_FAILED","UPGRADE_REQUIRED","QUOTA_EXCEEDED","WORKSPACE_PENDING_REVIEW","SETUP_DECISION_PENDING","MENTIONS_PREVIEW_NOT_READY","MENTIONS_NOT_VIEWED","KEYWORDS_STEP_INVALID","ONBOARDING_STEP_NOT_CURRENT","ONBOARDING_REVISION_CHANGED","ONBOARDING_IN_PROGRESS","SETUP_DRAFT_NOT_FOUND","PAYWALL","SANDBOX_WORKSPACE","SECOND_FREE_TRIAL_FORBIDDEN","AUTH_LOOKUP_UNAVAILABLE","NOT_IMPLEMENTED","FEED_NOT_ONBOARDING","NOT_FOUND","FEED_NOT_FOUND","KEYWORD_NOT_FOUND","KEYWORDS_NOT_FOUND","POST_NOT_FOUND","MENTION_NOT_FOUND","SUMMARY_NOT_FOUND","SEARCH_NOT_FOUND","SUGGESTION_NOT_FOUND","COMPANY_NOT_FOUND","ORG_NOT_FOUND","SETTINGS_NOT_FOUND","NOTIFICATION_NOT_FOUND","VIEW_NOT_FOUND","ALERT_NOT_FOUND","ATTENTION_ITEM_NOT_FOUND","FEATURE_DISABLED","MENTION_KEYWORD_UNKNOWN","EXPORT_LINK_UNAVAILABLE","INVALID_INPUT","KEYWORD_LIMIT_EXCEEDED","KEYWORD_OPERATOR_SYNTAX","LAST_ADMIN","ITEM_EXISTS","INVALID_DOMAIN","INVALID_TIMEZONE","SLACK_NOT_CONNECTED","SLACK_CHANNEL_NOT_FOUND","SLACK_CHANNEL_REQUIRED","WEBHOOK_URL_INVALID","NO_DESTINATIONS","NO_SAMPLE_MENTION","INVALID_DESTINATION","DESTINATION_INDEX_OUT_OF_RANGE","FILTER_LIMIT_EXCEEDED","FILTER_CONDITION_LIMIT_EXCEEDED","ENGAGEMENT_METRICS_DISABLED","ATTENTION_ACTION_NOT_APPLY","WEB_SOURCE_UNAVAILABLE","INSTAGRAM_SOURCE_UNAVAILABLE","FACEBOOK_SOURCE_UNAVAILABLE","DISCORD_SOURCE_UNAVAILABLE","DISCORD_ADMIN_ONLY","DISCORD_LINK_NOT_FOUND","DISCORD_MONITOR_NOT_FOUND","DISCORD_CHANNEL_INVALID","DISCORD_KEYWORD_NOT_TEXT","DISCORD_MONITOR_EXISTS","DISCORD_LINK_BUSY","DISCORD_MONITOR_BUSY","FEED_FILTER_WRITE_CONFLICT","ENGAGE_FAILED","RELEVANCE_UPDATE_FAILED"],"example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error message.","example":"Resource not found","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"status":{"description":"HTTP status code — always matches the response status.","example":404,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"details":{"description":"Present on `VALIDATION_ERROR` responses. Contains Zod issues describing each failing field (path, code, message).","type":"array","items":{"oneOf":[{}],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"any[]"},"upgradeUrl":{"description":"Present on `UPGRADE_REQUIRED` responses (additive — see `ApiErrorCode`): the URL of the upgrade page for this workspace.","example":"https://app.octolens.com/me/upgrade?src=agents","type":"string","uniqueKey":"error.upgradeUrl","typeLabel":"string"},"upgradeCommand":{"description":"Present on `UPGRADE_REQUIRED` responses (additive): the CLI command that mints a single-use, already-authenticated link into the upgrade page.","example":"octolens upgrade","type":"string","uniqueKey":"error.upgradeCommand","typeLabel":"string"}},"required":["code","message","status"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"Resource not found","status":404,"details":["\u003cunknown>"],"upgradeUrl":"https://app.octolens.com/me/upgrade?src=agents","upgradeCommand":"octolens upgrade"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d1f68b66-cef0-45bf-824a-94041730250f":{"description":"Internal server error","content":{"application/json":{"schema":{"description":"Standard error envelope returned for all non-2xx responses. The `code` field is stable — safe to branch on programmatically. `code`, `message` and `status` are always present; anything else is additive and per-code (`details` on `VALIDATION_ERROR`, `upgradeUrl`/`upgradeCommand` on `UPGRADE_REQUIRED`).","type":"object","properties":{"error":{"type":"object","properties":{"code":{"description":"Machine-readable error code. See `ApiErrorCode` for the full list.","type":"string","enum":["UNAUTHORIZED","FORBIDDEN","RATE_LIMITED","VALIDATION_ERROR","INTERNAL_ERROR","MEMBER_REQUIRED","BRIEF_DISABLED","INVALID_BRIEF_LINK","PREFERENCE_CHANGED","BRIEF_NOT_FOUND","INVALID_BRIEF_WINDOW","INVALID_RECIPIENT_COUNT","ORGANIZATION_REQUIRED","FORBIDDEN_ORGANIZATION","MASTER_KEY_REQUIRED","AGENCY_INACTIVE","NOT_AN_AGENCY_WORKSPACE","AGENCY_NOT_FOUND","WORKSPACE_NOT_IN_AGENCY","ANCHOR_WORKSPACE","AGENCY_WORKSPACE_LIMIT","INVITE_FANOUT_TOO_LARGE","SUPERADMIN_REMOVE_FORBIDDEN","USER_REQUIRED","FLEX_REQUIRES_CAP","FLEX_REQUIRES_BUDGET","AGENCY_BILLING_NOT_CONFIGURED","WORKSPACE_CREATE_FAILED","WORKSPACE_SETUP_FAILED","WORKSPACE_ACCESS_FAILED","UPGRADE_REQUIRED","QUOTA_EXCEEDED","WORKSPACE_PENDING_REVIEW","SETUP_DECISION_PENDING","MENTIONS_PREVIEW_NOT_READY","MENTIONS_NOT_VIEWED","KEYWORDS_STEP_INVALID","ONBOARDING_STEP_NOT_CURRENT","ONBOARDING_REVISION_CHANGED","ONBOARDING_IN_PROGRESS","SETUP_DRAFT_NOT_FOUND","PAYWALL","SANDBOX_WORKSPACE","SECOND_FREE_TRIAL_FORBIDDEN","AUTH_LOOKUP_UNAVAILABLE","NOT_IMPLEMENTED","FEED_NOT_ONBOARDING","NOT_FOUND","FEED_NOT_FOUND","KEYWORD_NOT_FOUND","KEYWORDS_NOT_FOUND","POST_NOT_FOUND","MENTION_NOT_FOUND","SUMMARY_NOT_FOUND","SEARCH_NOT_FOUND","SUGGESTION_NOT_FOUND","COMPANY_NOT_FOUND","ORG_NOT_FOUND","SETTINGS_NOT_FOUND","NOTIFICATION_NOT_FOUND","VIEW_NOT_FOUND","ALERT_NOT_FOUND","ATTENTION_ITEM_NOT_FOUND","FEATURE_DISABLED","MENTION_KEYWORD_UNKNOWN","EXPORT_LINK_UNAVAILABLE","INVALID_INPUT","KEYWORD_LIMIT_EXCEEDED","KEYWORD_OPERATOR_SYNTAX","LAST_ADMIN","ITEM_EXISTS","INVALID_DOMAIN","INVALID_TIMEZONE","SLACK_NOT_CONNECTED","SLACK_CHANNEL_NOT_FOUND","SLACK_CHANNEL_REQUIRED","WEBHOOK_URL_INVALID","NO_DESTINATIONS","NO_SAMPLE_MENTION","INVALID_DESTINATION","DESTINATION_INDEX_OUT_OF_RANGE","FILTER_LIMIT_EXCEEDED","FILTER_CONDITION_LIMIT_EXCEEDED","ENGAGEMENT_METRICS_DISABLED","ATTENTION_ACTION_NOT_APPLY","WEB_SOURCE_UNAVAILABLE","INSTAGRAM_SOURCE_UNAVAILABLE","FACEBOOK_SOURCE_UNAVAILABLE","DISCORD_SOURCE_UNAVAILABLE","DISCORD_ADMIN_ONLY","DISCORD_LINK_NOT_FOUND","DISCORD_MONITOR_NOT_FOUND","DISCORD_CHANNEL_INVALID","DISCORD_KEYWORD_NOT_TEXT","DISCORD_MONITOR_EXISTS","DISCORD_LINK_BUSY","DISCORD_MONITOR_BUSY","FEED_FILTER_WRITE_CONFLICT","ENGAGE_FAILED","RELEVANCE_UPDATE_FAILED"],"example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error message.","example":"Resource not found","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"status":{"description":"HTTP status code — always matches the response status.","example":404,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"details":{"description":"Present on `VALIDATION_ERROR` responses. Contains Zod issues describing each failing field (path, code, message).","type":"array","items":{"oneOf":[{}],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"any[]"},"upgradeUrl":{"description":"Present on `UPGRADE_REQUIRED` responses (additive — see `ApiErrorCode`): the URL of the upgrade page for this workspace.","example":"https://app.octolens.com/me/upgrade?src=agents","type":"string","uniqueKey":"error.upgradeUrl","typeLabel":"string"},"upgradeCommand":{"description":"Present on `UPGRADE_REQUIRED` responses (additive): the CLI command that mints a single-use, already-authenticated link into the upgrade page.","example":"octolens upgrade","type":"string","uniqueKey":"error.upgradeCommand","typeLabel":"string"}},"required":["code","message","status"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"Resource not found","status":404,"details":["\u003cunknown>"],"upgradeUrl":"https://app.octolens.com/me/upgrade?src=agents","upgradeCommand":"octolens upgrade"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"11b58e3e-d70b-4f48-ad8f-3e39a1acda2a":{"ApiKey":{"type":"http","scheme":"bearer","description":"Clerk API key. Create one in Settings → API Keys. Pass as `Authorization: Bearer \u003ckey>`. Keys carry a scope — `read`, `write` (implies read) or `admin` (implies write) — chosen when the key is minted. Each operation's `security` requirement (and its `x-required-scope` extension) names the minimum scope it needs; request the least-privileged key that covers the operations you call.","x-key-scopes":{"read":"Read-only access: list/query mentions, keywords, feeds, analytics, org metadata.","write":"Read plus mutations: create/update/delete keywords, feeds, tags, filters, notifications. Implies `read`.","admin":"Write plus org administration: member management, invitations, agency workspaces. Implies `write`."},"scopes":["read"],"schemeName":"ApiKey"}}},"servers":{"95c85c73-69fc-4455-89ee-030232ddd6be":{"url":"https://app.octolens.com","description":"Production"},"7edc9ee9-5b0a-4aa6-8470-691b1ed2a22a":{"url":"http://localhost:3000","description":"Local development"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Clerk API key. Create one in Settings → API Keys. Pass as `Authorization: Bearer \u003ckey>`. Keys carry a scope — `read`, `write` (implies read) or `admin` (implies write) — chosen when the key is minted. Each operation's `security` requirement (and its `x-required-scope` extension) names the minimum scope it needs; request the least-privileged key that covers the operations you call.","x-key-scopes":{"read":"Read-only access: list/query mentions, keywords, feeds, analytics, org metadata.","write":"Read plus mutations: create/update/delete keywords, feeds, tags, filters, notifications. Implies `read`.","admin":"Write plus org administration: member management, invitations, agency workspaces. Implies `write`."},"scopes":["read"],"schemeName":"ApiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Clerk API key. Create one in Settings → API Keys. Pass as `Authorization: Bearer \u003ckey>`. Keys carry a scope — `read`, `write` (implies read) or `admin` (implies write) — chosen when the key is minted. Each operation's `security` requirement (and its `x-required-scope` extension) names the minimum scope it needs; request the least-privileged key that covers the operations you call.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKey","name":"Authorization"}],"title":"ApiKey"}]},"originalFileLocation":"https://app.octolens.com/api/v2/openapi.json"},"subdomain":"octolens","siteName":"Octolens","title":"Get an on-demand search - Octolens","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T07:20:22.034Z","originalFileLocation":"api-reference/search/get-an-on-demand-search.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=\"Returns the current state of a search: running (with partialStats, a pollUrl, and a Retry-After header), completed (with the full mentions array + stats), failed, or quota_exhausted.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Octolens\">\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/octolens/5ta3dPrfAAQmNuLw/_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/octolens/5ta3dPrfAAQmNuLw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/octolens/5ta3dPrfAAQmNuLw/_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/octolens/5ta3dPrfAAQmNuLw/_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/octolens/5ta3dPrfAAQmNuLw/_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/octolens/5ta3dPrfAAQmNuLw/_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/octolens/5ta3dPrfAAQmNuLw/_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/octolens/5ta3dPrfAAQmNuLw/_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/octolens/5ta3dPrfAAQmNuLw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get an on-demand search - Octolens\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns the current state of a search: running (with partialStats, a pollUrl, and a Retry-After header), completed (with the full mentions array + stats), failed, or quota_exhausted.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Octolens\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://octolens.mintlify.site/docs/_mintlify/api/og/v2?division=Search\u0026amp;title=Get+an+on-demand+search\u0026amp;description=Returns+the+current+state+of+a+search%3A+%60running%60+%28with+%60partialStats%60%2C+a+%60pollUrl%60%2C+and+a+%60Retry-After%60+header%29%2C+%60completed%60+%28with+the+full+%60mentions%60+array+%2B+%60\u0026amp;theme=d583b865662c59d3b1e7dd6a\u0026amp;signature=43540b7e8c37997376bbb6c6fac7bcb7c17968f0a81041c5f9de9a46afdd2d44\">\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 an on-demand search - Octolens\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns the current state of a search: running (with partialStats, a pollUrl, and a Retry-After header), completed (with the full mentions array + stats), failed, or quota_exhausted.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://octolens.mintlify.site/docs/_mintlify/api/og/v2?division=Search\u0026amp;title=Get+an+on-demand+search\u0026amp;description=Returns+the+current+state+of+a+search%3A+%60running%60+%28with+%60partialStats%60%2C+a+%60pollUrl%60%2C+and+a+%60Retry-After%60+header%29%2C+%60completed%60+%28with+the+full+%60mentions%60+array+%2B+%60\u0026amp;theme=d583b865662c59d3b1e7dd6a\u0026amp;signature=43540b7e8c37997376bbb6c6fac7bcb7c17968f0a81041c5f9de9a46afdd2d44\">\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/octolens/5ta3dPrfAAQmNuLw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Octolens\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7551B5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search\">\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/search/get-an-on-demand-search.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://octolens.com/#organization\",\"name\":\"Octolens\",\"url\":\"https://octolens.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/octolens/WNDsqX0Zcsk1Nv6R/logo.png?fit=max\u0026auto=format\u0026n=WNDsqX0Zcsk1Nv6R\u0026q=85\u0026s=3b4eb4dc59ef232691d1bfb70bd366ef\"}},{\"@type\":\"WebSite\",\"@id\":\"https://octolens.com/docs#website\",\"name\":\"Octolens\",\"url\":\"https://octolens.com/docs\",\"publisher\":{\"@id\":\"https://octolens.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search#webpage\",\"url\":\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search\",\"name\":\"Get an on-demand search\",\"description\":\"Returns the current state of a search: running (with partialStats, a pollUrl, and a Retry-After header), completed (with the full mentions array + stats), failed, or quota_exhausted.\",\"dateModified\":\"2026-11-06T07:20:22.034Z\",\"isPartOf\":{\"@id\":\"https://octolens.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API v2\",\"item\":\"https://octolens.com/docs/api/v2/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Search\",\"item\":\"https://octolens.com/docs/api-reference/search/list-past-on-demand-searches\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get an on-demand search\",\"item\":\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search#apireference\",\"headline\":\"Get an on-demand search\",\"name\":\"Get an on-demand search\",\"description\":\"Returns the current state of a search: running (with partialStats, a pollUrl, and a Retry-After header), completed (with the full mentions array + stats), failed, or quota_exhausted.\",\"url\":\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search\",\"mainEntityOfPage\":{\"@id\":\"https://octolens.com/docs/api-reference/search/get-an-on-demand-search#webpage\"},\"dateModified\":\"2026-11-06T07:20:22.034Z\",\"publisher\":{\"@id\":\"https://octolens.com/#organization\"},\"isPartOf\":{\"@id\":\"https://octolens.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Octolens\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Octolens","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"MCP Server","pages":[{"title":"MCP Server","href":"/mcp/v2/overview"}]},{"tab":"API Reference","groups":[{"group":"API v2","root":{"title":"API Reference","href":"/api/v2/overview"},"pages":[{"group":"Auth","pages":[{"title":"Introspect the credential","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/auth","href":"/api-reference/auth/introspect-the-credential"}]},{"group":"Feeds","pages":[{"title":"List feeds","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/feeds","href":"/api-reference/feeds/list-feeds"},{"title":"Create a feed","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/feeds","href":"/api-reference/feeds/create-a-feed"},{"title":"Get a feed","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/feeds/{id}","href":"/api-reference/feeds/get-a-feed"},{"title":"Delete a feed","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json delete /api/v2/feeds/{id}","href":"/api-reference/feeds/delete-a-feed"},{"title":"Update a feed","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/feeds/{id}","href":"/api-reference/feeds/update-a-feed"}]},{"group":"Keywords","pages":[{"title":"List keywords","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/keywords","href":"/api-reference/keywords/list-keywords"},{"title":"Create a keyword","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/keywords","href":"/api-reference/keywords/create-a-keyword"},{"title":"Delete a keyword","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json delete /api/v2/keywords/{id}","href":"/api-reference/keywords/delete-a-keyword"},{"title":"Update a keyword","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/keywords/{id}","href":"/api-reference/keywords/update-a-keyword"},{"title":"Pause or resume a keyword","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/keywords/{id}/pause","href":"/api-reference/keywords/pause-or-resume-a-keyword"},{"title":"Preview what deleting a keyword would destroy","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/keywords/{id}/deletion-preview","href":"/api-reference/keywords/preview-what-deleting-a-keyword-would-destroy"},{"title":"List keyword suggestions","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/keywords/suggestions","href":"/api-reference/keywords/list-keyword-suggestions"},{"title":"Accept a keyword suggestion","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/keywords/suggestions","href":"/api-reference/keywords/accept-a-keyword-suggestion"},{"title":"Reject keyword suggestion(s)","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json delete /api/v2/keywords/suggestions","href":"/api-reference/keywords/reject-keyword-suggestions"},{"title":"Keyword health","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/keywords/{id}/health","href":"/api-reference/keywords/keyword-health"},{"title":"Estimate keyword volume","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/keywords/estimate","href":"/api-reference/keywords/estimate-keyword-volume"}]},{"group":"Mentions","pages":[{"title":"List mentions","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/mentions","href":"/api-reference/mentions/list-mentions"},{"title":"List mentions by author","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/mentions/by-author","href":"/api-reference/mentions/list-mentions-by-author"},{"title":"Get a mention","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/mentions/{sourceId}","href":"/api-reference/mentions/get-a-mention"},{"title":"Update a mention","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/mentions/{sourceId}","href":"/api-reference/mentions/update-a-mention"},{"title":"Get a mention (id as query parameter)","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/mentions/by-id","href":"/api-reference/mentions/get-a-mention-id-as-query-parameter"},{"title":"Update a mention (id as query parameter)","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/mentions/by-id","href":"/api-reference/mentions/update-a-mention-id-as-query-parameter"},{"title":"Export mentions","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/mentions/export","href":"/api-reference/mentions/export-mentions"},{"title":"Record feedback on a mention","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/mentions/feedback","href":"/api-reference/mentions/record-feedback-on-a-mention"},{"title":"Export mentions to a download link","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/mentions/export/link","href":"/api-reference/mentions/export-mentions-to-a-download-link"}]},{"group":"Analytics","pages":[{"title":"Sentiment distribution","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/sentiment","href":"/api-reference/analytics/sentiment-distribution"},{"title":"Mention volume over time","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/volume","href":"/api-reference/analytics/mention-volume-over-time"},{"title":"Source/platform breakdown","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/sources","href":"/api-reference/analytics/sourceplatform-breakdown"},{"title":"Per-keyword breakdown","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/keywords","href":"/api-reference/analytics/per-keyword-breakdown"},{"title":"Composite dashboard overview","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/dashboard","href":"/api-reference/analytics/composite-dashboard-overview"},{"title":"Sentiment breakdown per keyword","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/sentiment-by-keyword","href":"/api-reference/analytics/sentiment-breakdown-per-keyword"},{"title":"Volume over time (day / week / month, optional split)","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/volume-over-time","href":"/api-reference/analytics/volume-over-time-day-week-month-optional-split"},{"title":"Top sources by volume, with High-relevance share","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/top-sources","href":"/api-reference/analytics/top-sources-by-volume-with-high-relevance-share"},{"title":"Top keywords by volume, with High-relevance share","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/top-keywords","href":"/api-reference/analytics/top-keywords-by-volume-with-high-relevance-share"},{"title":"Period summary vs the prior period","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/summary","href":"/api-reference/analytics/period-summary-vs-the-prior-period"},{"title":"Share of voice: your brand vs competitors","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/share-of-voice","href":"/api-reference/analytics/share-of-voice:-your-brand-vs-competitors"},{"title":"Share of mentions by one dimension","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/analytics/breakdown","href":"/api-reference/analytics/share-of-mentions-by-one-dimension"}]},{"group":"Organization","pages":[{"title":"Get organization","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/org","href":"/api-reference/organization/get-organization"},{"title":"Update organization","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/org","href":"/api-reference/organization/update-organization"},{"title":"Get usage stats","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/org/usage","href":"/api-reference/organization/get-usage-stats"},{"title":"Mint an authenticated upgrade link","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/org/upgrade-link","href":"/api-reference/organization/mint-an-authenticated-upgrade-link"},{"title":"Get company profile","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/org/company","href":"/api-reference/organization/get-company-profile"},{"title":"Update company profile","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/org/company","href":"/api-reference/organization/update-company-profile"},{"title":"Get your Daily Brief preference","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/me/brief-preference","href":"/api-reference/organization/get-your-daily-brief-preference"},{"title":"Update your Daily Brief preference","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/me/brief-preference","href":"/api-reference/organization/update-your-daily-brief-preference"},{"title":"Build an app deep link","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/app-link","href":"/api-reference/organization/build-an-app-deep-link"}]},{"group":"Feedback","pages":[{"title":"Submit relevance feedback","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/feedback","href":"/api-reference/feedback/submit-relevance-feedback"},{"title":"Remove relevance feedback","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json delete /api/v2/feedback","href":"/api-reference/feedback/remove-relevance-feedback"},{"title":"Get feedback stats","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/feedback/stats","href":"/api-reference/feedback/get-feedback-stats"}]},{"group":"AI","pages":[{"title":"Convert natural language to filters","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/ai/filter-wizard","href":"/api-reference/ai/convert-natural-language-to-filters"},{"title":"Recommend monitoring settings from search history","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/ai/monitoring-recommendations","href":"/api-reference/ai/recommend-monitoring-settings-from-search-history"}]},{"group":"Setup","pages":[{"title":"Scan a domain into a setup draft","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/setup/scan","href":"/api-reference/setup/scan-a-domain-into-a-setup-draft"},{"title":"Propose a keyword setup for a scanned draft","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/setup/propose","href":"/api-reference/setup/propose-a-keyword-setup-for-a-scanned-draft"},{"title":"Get a setup proposal","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/setup/proposals/{id}","href":"/api-reference/setup/get-a-setup-proposal"},{"title":"Apply a setup proposal","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/setup/proposals/{id}/apply","href":"/api-reference/setup/apply-a-setup-proposal"},{"title":"Clean up an applied setup","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/setup/proposals/{id}/cleanup","href":"/api-reference/setup/clean-up-an-applied-setup"}]},{"group":"Members","pages":[{"title":"List organization members","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/org/members","href":"/api-reference/members/list-organization-members"},{"title":"Invite a member","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/org/members/invite","href":"/api-reference/members/invite-a-member"},{"title":"List pending invitations","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/org/members/invitations","href":"/api-reference/members/list-pending-invitations"},{"title":"Remove a member or revoke an invitation","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json delete /api/v2/org/members/{id}","href":"/api-reference/members/remove-a-member-or-revoke-an-invitation"}]},{"group":"Filters","pages":[{"title":"Get global filters","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/filters/global","href":"/api-reference/filters/get-global-filters"},{"title":"Update global filters","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/filters/global","href":"/api-reference/filters/update-global-filters"},{"title":"Add values to a global filter list","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/filters/global/add","href":"/api-reference/filters/add-values-to-a-global-filter-list"},{"title":"Remove values from a global filter list","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/filters/global/remove","href":"/api-reference/filters/remove-values-from-a-global-filter-list"},{"title":"List filterable tags","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/tags","href":"/api-reference/filters/list-filterable-tags"}]},{"group":"Integrations","pages":[{"title":"Search Slack channels","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/integrations/slack/channels","href":"/api-reference/integrations/search-slack-channels"},{"title":"Slack connection status","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/integrations/slack","href":"/api-reference/integrations/slack-connection-status"},{"title":"List connected Discord servers","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/integrations/discord/servers","href":"/api-reference/integrations/list-connected-discord-servers"},{"title":"Get a connected Discord server","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/integrations/discord/servers/{linkId}","href":"/api-reference/integrations/get-a-connected-discord-server"},{"title":"Disconnect a Discord server","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json delete /api/v2/integrations/discord/servers/{linkId}","href":"/api-reference/integrations/disconnect-a-discord-server"},{"title":"Set a Discord server's channel scope","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/integrations/discord/servers/{linkId}","href":"/api-reference/integrations/set-a-discord-servers-channel-scope"},{"title":"List Discord watch monitors","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/integrations/discord/monitors","href":"/api-reference/integrations/list-discord-watch-monitors"},{"title":"Watch a Discord server under a keyword","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/integrations/discord/monitors","href":"/api-reference/integrations/watch-a-discord-server-under-a-keyword"},{"title":"Get a Discord watch monitor","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/integrations/discord/monitors/{id}","href":"/api-reference/integrations/get-a-discord-watch-monitor"},{"title":"Delete a Discord watch monitor","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json delete /api/v2/integrations/discord/monitors/{id}","href":"/api-reference/integrations/delete-a-discord-watch-monitor"},{"title":"Edit, pause or resume a Discord watch monitor","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/integrations/discord/monitors/{id}","href":"/api-reference/integrations/edit-pause-or-resume-a-discord-watch-monitor"}]},{"group":"Search","pages":[{"title":"List past on-demand searches","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/search","href":"/api-reference/search/list-past-on-demand-searches"},{"title":"Run an on-demand mention search","description":"Runs a one-time search for `query` across the workspace's enabled sources over the last 1/7/30 days and AI-scores the results inline using the workspace's company profile. Results belong to the search (they do NOT appear in the mentions feed); new results count against the monthly mention quota, while results the workspace already collected are flagged `alreadyInWorkspace` and are free.\n\nBlocks up to `waitMs` (≤25s). Returns 200 with the full result envelope if it finishes in time, otherwise 202 with a `searchId` + `pollUrl` to poll `GET /api/v2/search/{searchId}`.\n\nResponses carry remaining-quota headers (`X-Octolens-Mentions-Remaining` always; `X-Octolens-Searches-Remaining` on plans with a lifetime search cap) so clients can self-throttle before hitting the quota wall.","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/search","href":"/api-reference/search/run-an-on-demand-mention-search"},{"title":"Get an on-demand search","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/search/{searchId}","href":"/api-reference/search/get-an-on-demand-search"}]},{"group":"Notifications","pages":[{"title":"List notifications","description":"Returns all notifications. A notification delivers mentions matching a feed's filters to its configured destinations (email, Slack, webhook).","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/notifications","href":"/api-reference/notifications/list-notifications"},{"title":"Create a notification","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/notifications","href":"/api-reference/notifications/create-a-notification"},{"title":"Get a notification","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/notifications/{id}","href":"/api-reference/notifications/get-a-notification"},{"title":"Delete a notification","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json delete /api/v2/notifications/{id}","href":"/api-reference/notifications/delete-a-notification"},{"title":"Update a notification","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/notifications/{id}","href":"/api-reference/notifications/update-a-notification"},{"title":"Test a notification","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/notifications/{id}/test","href":"/api-reference/notifications/test-a-notification"}]},{"group":"Agency","pages":[{"title":"Agency overview","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/agency","href":"/api-reference/agency/agency-overview"},{"title":"List agency workspaces","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/agency/workspaces","href":"/api-reference/agency/list-agency-workspaces"},{"title":"Create an agency workspace","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/agency/workspaces","href":"/api-reference/agency/create-an-agency-workspace"},{"title":"Get an agency workspace","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/agency/workspaces/{orgId}","href":"/api-reference/agency/get-an-agency-workspace"},{"title":"Delete an agency workspace","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json delete /api/v2/agency/workspaces/{orgId}","href":"/api-reference/agency/delete-an-agency-workspace"},{"title":"Update workspace limits / flex","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/agency/workspaces/{orgId}","href":"/api-reference/agency/update-workspace-limits-flex"},{"title":"List workspace members","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/agency/workspaces/{orgId}/members","href":"/api-reference/agency/list-workspace-members"},{"title":"Invite members to workspaces","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/agency/members/invite","href":"/api-reference/agency/invite-members-to-workspaces"},{"title":"Remove a member from workspaces","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/agency/members/remove","href":"/api-reference/agency/remove-a-member-from-workspaces"}]},{"group":"Attention","pages":[{"title":"List attention items","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/attention","href":"/api-reference/attention/list-attention-items"},{"title":"Dismiss or restore an attention item","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/attention/{id}/dismiss","href":"/api-reference/attention/dismiss-or-restore-an-attention-item"}]},{"group":"Onboarding","pages":[{"title":"Read the onboarding state","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/onboarding","href":"/api-reference/onboarding/read-the-onboarding-state"},{"title":"Start the website scan","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/onboarding/scan","href":"/api-reference/onboarding/start-the-website-scan"},{"title":"Read the onboarding draft","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/onboarding/draft","href":"/api-reference/onboarding/read-the-onboarding-draft"},{"title":"Edit or confirm the company profile","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json patch /api/v2/onboarding/draft/profile","href":"/api-reference/onboarding/edit-or-confirm-the-company-profile"},{"title":"Read the keyword proposal","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/onboarding/proposal","href":"/api-reference/onboarding/read-the-keyword-proposal"},{"title":"Start the keyword proposal","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/onboarding/proposal","href":"/api-reference/onboarding/start-the-keyword-proposal"},{"title":"Check keyword edits","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/onboarding/keywords/check","href":"/api-reference/onboarding/check-keyword-edits"},{"title":"Assess a typed-in keyword","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/onboarding/keywords/assess","href":"/api-reference/onboarding/assess-a-typed-in-keyword"},{"title":"Create the trial workspace","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/onboarding/trial","href":"/api-reference/onboarding/create-the-trial-workspace"},{"title":"Read the first mentions","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/onboarding/mentions","href":"/api-reference/onboarding/read-the-first-mentions"},{"title":"Record that the mentions were shown","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/onboarding/mentions/shown","href":"/api-reference/onboarding/record-that-the-mentions-were-shown"},{"title":"Clean up, keep everything, or undo","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/onboarding/mentions/decision","href":"/api-reference/onboarding/clean-up-keep-everything-or-undo"},{"title":"Take one onboarding transition","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/onboarding/advance","href":"/api-reference/onboarding/take-one-onboarding-transition"},{"title":"Read the feeds board","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/onboarding/feeds","href":"/api-reference/onboarding/read-the-feeds-board"},{"title":"Read the Slack step","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/onboarding/slack","href":"/api-reference/onboarding/read-the-slack-step"},{"title":"Route feeds to Slack channels","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json put /api/v2/onboarding/slack/routes","href":"/api-reference/onboarding/route-feeds-to-slack-channels"},{"title":"Mint a browser handoff link","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json post /api/v2/onboarding/handoff","href":"/api-reference/onboarding/mint-a-browser-handoff-link"},{"title":"Read the MCP step","deprecated":null,"version":null,"openapi":"https://app.octolens.com/api/v2/openapi.json get /api/v2/onboarding/mcp","href":"/api-reference/onboarding/read-the-mcp-step"}]}]},{"group":"API v1 (Legacy)","pages":[{"title":"API Reference","href":"/api/overview"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]}]},"basePath":"","title":"Get an on-demand search - Octolens","buildId":"dpl_6dVqRXFR2Go5vF5RLvAdHuv189oT","deploymentId":"dpl_6dVqRXFR2Go5vF5RLvAdHuv189oT","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-D_7my4bd.js","utils-Cq_itTNA.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B5KPEvGz.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DBX-JepP.js","snippetPresets-Bsspz-Ge.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-t8ynOKTD.js","ApiExamples-jcs-2nGf.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Dp53in7F.js","shallow-Dv9eUdUd.js","getApiPlaygroundDisplay-D8cDwNhi.js","CodeSnippet-DkwXLQor.js","CodeSnippets-DcSgKqs5.js","getPastedJson-I2RjoApV.js","icon-BIj57rZC.js","MethodPill-CTwLPWXC.js","DuplicateIcon-BJpFwygY.js","createIcon-C7PorfAe.js","DynamicMarkdown-BBht_uEs.js","SectionHeading-YIBwxbzj.js","axios-vUo_bRtp.js","Markdown--YCeFtOs.js","clsx-CrPa459s.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BWxsj3I0.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fBzVvq7k.js"]}