Remove a user from one/many/all agency workspaces (orgIds: "all"). Superadmins cannot be removed this way — demote them via the agency admin panel first.
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/agency/remove-a-member-from-workspaces","slug":"/api-reference/agency/remove-a-member-from-workspaces","pageMetadata":{"title":"Remove a member from workspaces","description":"Remove a user from one/many/all agency workspaces (`orgIds: \"all\"`). Superadmins cannot be removed this way — demote them via the agency admin panel first.","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","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: [\"Remove a user from one/many/all agency workspaces (\", _jsx(_components.code, {\n children: \"orgIds: \\\"all\\\"\"\n }), \"). Superadmins cannot be removed this way — demote them via the agency admin panel first.\"]\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":"Remove a member from workspaces","description":"Remove a user from one/many/all agency workspaces (`orgIds: \"all\"`). Superadmins cannot be removed this way — demote them via the agency admin panel first.","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","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/octolens/e456fc9c822f0ecf/scripts.js"],"openApiReferenceData":{"operation":{"operationId":"removeAgencyMember","summary":"Remove a member from workspaces","description":"Remove a user from one/many/all agency workspaces (`orgIds: \"all\"`). Superadmins cannot be removed this way — demote them via the agency admin panel first.","tags":["Agency"],"x-required-scope":"admin","security":["2e888e26-954a-4e0e-99b0-f51e38c3629f"],"requestBody":"8aa1ea1d-c4f6-46a3-81ab-46380c465d02","responses":{"200":"f10573c6-cb85-4f22-a884-d488c2198472","400":"d4e64a7b-c3b5-4821-b701-74244762afe8","401":"063484f0-b0eb-43a9-9513-e8810bad5998","403":"df48ad8b-6af0-4bc9-af9b-71d68e52ffb5","429":"5fba0a7a-9b31-40b1-8469-aa9577fe6eb4","500":"cfd0a8b0-4ed7-41a0-8703-962b983325e7"},"method":"post","type":"path","servers":["95c85c73-69fc-4455-89ee-030232ddd6be","7edc9ee9-5b0a-4aa6-8470-691b1ed2a22a"],"path":"/api/v2/agency/members/remove","baseUrlOptions":["https://app.octolens.com","http://localhost:3000"],"title":"Remove a member from workspaces","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orgIds":{"oneOf":[{"type":"string","const":"all","isRequired":true,"uniqueKey":"orgIds.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","maxLength":191,"uniqueKey":"orgIds.oneOf.1.items.[INDEX]","typeLabel":"string"},"minItems":1,"isRequired":true,"uniqueKey":"orgIds.oneOf.1","typeLabel":"string[]"}],"isRequired":true,"uniqueKey":"orgIds","typeLabel":"string | string[]"},"userId":{"type":"string","isRequired":true,"uniqueKey":"userId","typeLabel":"string"}},"required":["orgIds","userId"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"orgIds":"all","userId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f10573c6-cb85-4f22-a884-d488c2198472":{"description":"200 response","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].orgId","typeLabel":"string"},"success":{"type":"boolean","isRequired":true,"uniqueKey":"results.items.[INDEX].success","typeLabel":"boolean"},"error":{"type":"string","uniqueKey":"results.items.[INDEX].error","typeLabel":"string"}},"required":["orgId","success"],"additionalProperties":false,"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"results","typeLabel":"object[]"}},"required":["results"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"results":[{"orgId":"\u003cstring>","success":true,"error":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"d4e64a7b-c3b5-4821-b701-74244762afe8":{"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"},"063484f0-b0eb-43a9-9513-e8810bad5998":{"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"},"df48ad8b-6af0-4bc9-af9b-71d68e52ffb5":{"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"},"5fba0a7a-9b31-40b1-8469-aa9577fe6eb4":{"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"},"cfd0a8b0-4ed7-41a0-8703-962b983325e7":{"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":{"2e888e26-954a-4e0e-99b0-f51e38c3629f":{"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":["admin"],"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":["admin"],"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":"Remove a member from workspaces - Octolens","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T07:20:22.243Z","originalFileLocation":"api-reference/agency/remove-a-member-from-workspaces.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=\"Remove a user from one/many/all agency workspaces (orgIds: \u0026quot;all\u0026quot;). Superadmins cannot be removed this way — demote them via the agency admin panel first.\">\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=\"Remove a member from workspaces - Octolens\">\u003cmeta data-mint-head property=\"og:description\" content=\"Remove a user from one/many/all agency workspaces (orgIds: \u0026quot;all\u0026quot;). Superadmins cannot be removed this way — demote them via the agency admin panel first.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Octolens\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://octolens.com/docs/api-reference/agency/remove-a-member-from-workspaces\">\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=Agency\u0026amp;title=Remove+a+member+from+workspaces\u0026amp;description=Remove+a+user+from+one%2Fmany%2Fall+agency+workspaces+%28%60orgIds%3A+%22all%22%60%29.+Superadmins+cannot+be+removed+this+way+%E2%80%94+demote+them+via+the+agency+admin+panel+first.\u0026amp;theme=d583b865662c59d3b1e7dd6a\u0026amp;signature=aae620de167d833d2ab6dd9ed1317d629d42439083a4a0d85cc30c89947ead2d\">\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=\"Remove a member from workspaces - Octolens\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Remove a user from one/many/all agency workspaces (orgIds: \u0026quot;all\u0026quot;). Superadmins cannot be removed this way — demote them via the agency admin panel first.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://octolens.mintlify.site/docs/_mintlify/api/og/v2?division=Agency\u0026amp;title=Remove+a+member+from+workspaces\u0026amp;description=Remove+a+user+from+one%2Fmany%2Fall+agency+workspaces+%28%60orgIds%3A+%22all%22%60%29.+Superadmins+cannot+be+removed+this+way+%E2%80%94+demote+them+via+the+agency+admin+panel+first.\u0026amp;theme=d583b865662c59d3b1e7dd6a\u0026amp;signature=aae620de167d833d2ab6dd9ed1317d629d42439083a4a0d85cc30c89947ead2d\">\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/agency/remove-a-member-from-workspaces\">\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/agency/remove-a-member-from-workspaces.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/agency/remove-a-member-from-workspaces#webpage\",\"url\":\"https://octolens.com/docs/api-reference/agency/remove-a-member-from-workspaces\",\"name\":\"Remove a member from workspaces\",\"description\":\"Remove a user from one/many/all agency workspaces (orgIds: \\\"all\\\"). Superadmins cannot be removed this way — demote them via the agency admin panel first.\",\"dateModified\":\"2026-11-06T07:20:22.243Z\",\"isPartOf\":{\"@id\":\"https://octolens.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://octolens.com/docs/api-reference/agency/remove-a-member-from-workspaces#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://octolens.com/docs/api-reference/agency/remove-a-member-from-workspaces#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API v2\",\"item\":\"https://octolens.com/docs/api/v2/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agency\",\"item\":\"https://octolens.com/docs/api-reference/agency/agency-overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Remove a member from workspaces\",\"item\":\"https://octolens.com/docs/api-reference/agency/remove-a-member-from-workspaces\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://octolens.com/docs/api-reference/agency/remove-a-member-from-workspaces#apireference\",\"headline\":\"Remove a member from workspaces\",\"name\":\"Remove a member from workspaces\",\"description\":\"Remove a user from one/many/all agency workspaces (orgIds: \\\"all\\\"). Superadmins cannot be removed this way — demote them via the agency admin panel first.\",\"url\":\"https://octolens.com/docs/api-reference/agency/remove-a-member-from-workspaces\",\"mainEntityOfPage\":{\"@id\":\"https://octolens.com/docs/api-reference/agency/remove-a-member-from-workspaces#webpage\"},\"dateModified\":\"2026-11-06T07:20:22.243Z\",\"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","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","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","description":"Invite one or many emails to one/many/all agency workspaces (`targetOrgIds: \"all\"`). Existing Octolens accounts get direct membership grants (no email — `action: granted`). New users receive exactly ONE invitation email for their first selected workspace (`action: invited`); every additional workspace is queued (`action: queued`) and granted automatically once the account exists. Combined fan-out (emails × workspaces) is capped at 200 per call.","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","description":"Returns the workspace's 'Needs your attention' signals — the seven rule-based kinds (no keywords, no destination, noisy keyword, pending suggestions, limit risk, delivery broken, uncaught relevant mentions) and the four insight kinds detected in the workspace's mention data (mention spike vs its own baseline, high-reach author unanswered, same-tag cluster in 24h, negative sentiment rising) — ranked by severity and capped at 5, minus dismissed items. Each item carries ONE action: `open` (an in-app path), `apply` (an approval-gated write-tool call — never run it without the user's confirmation), `ask` (a chat prompt) or `skill`. A store older than 15 minutes is recomputed before answering.","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":"Remove a member from workspaces - 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"]}