Invoke the document retrieval pipeline (embedding + hybrid vector search + reranking)
and return matched document chunks.
Relevance scoring (relevance_scoring): controls the relevance scoring stage.
scoring_and_filtering (default): Score candidates for relevance and only
return those above the quality threshold. When no candidate clears the
threshold, the few best-scoring candidates are returned instead of an empty
result; their scores.relevance is then below the usual threshold.
scoring_only: Score every candidate for relevance but return them all, even
low-scoring ones. Useful for building your own filtering logic.
none: Skip the relevance scoring step and return all candidates unfiltered.
Fastest option, useful when you handle scoring yourself.
Omit relevance_scoring for the default; send none to skip scoring.
skip_rerank is deprecated — true maps to relevance_scoring=none,
false to scoring_and_filtering. relevance_scoring wins if both are sent.
Result ordering: results are returned in descending order of score.
With scoring_and_filtering or scoring_only, score equals the relevance
score (scores.relevance, 0–1). With none, score is the combined retrieval
score (higher is better, no fixed upper bound).
If the scoring model is temporarily unavailable, results are returned in
retrieval order and a warnings array is included. Each warning has a code
matching the degraded scores key (e.g. relevance) and a reason classifying
the failure: model_not_found, timeout, service_error, or unknown.
The warnings key is absent when all pipeline steps succeed.
Scoping: use workspace_id and/or tag_id to narrow retrieval to specific
workspaces or tags, or use file_id to target specific files.
file_id cannot be combined with workspace_id or tag_id.
A 403 is returned if any provided filter resolves to no authorized resources.
When no filters are provided, retrieval runs across all authorized documents.
Public datasets: a public dataset workspace must be the only workspace in the
request — combining it with any other workspace_id, file_id, or tag_id returns
400. Public datasets are reachable only through a workspace-scoped API key whose scope
includes the workspace, and only for companies allowed to access them; otherwise the
result is empty.
Facet filtering: use content_type and/or attribute to narrow retrieval
by document metadata. These can be combined with workspace/tag scoping.
Content type uses colon-separated paths (e.g. legal:contract:nda).
Attributes support operators, OR, and content-type scoping.
Modes:
text (default): hybrid text search
vision: image-based search
Explain mode: set explain=true to receive a per-chunk scoring breakdown
in the response (raw scores, normalized scores, fusion weights, filter stats,
timing). Requires the SEARCH_EXPLAIN_MODE feature flag to be enabled.
DRF serializer mixin providing content_type and attribute fields.
Compose into any request serializer via multiple inheritance::
class SearchRequestSerializer(FacetFilterFieldsMixin, serializers.Serializer): query = serializers.CharField(...) # content_type and attribute inherited from the mixin
Filter by attribute value. Repeated attribute entries are ANDed; values inside one entry are ORed with | (pipe is the recommended OR delimiter — comma also works but can be ambiguous with multi-key values). Example: attribute=fiscal_year:2024|2025&attribute=status:active → (fiscal_year 2024 OR 2025) AND (status active). Formats: name (has any value), name:value (exact), name:>value / name:>=value (gt/gte), name:<value / name:<=value (lt/lte), name:prefix* (starts with, case-insensitive), name:*text* (contains, case-insensitive), name:a|b (OR). Smart dates: filing_date:2023 (year), filing_date:2023-06 (month). Type-aware: booleans (true/false), multi-select (membership check). Scoped: content_type(legal:compliance).regulation:AML.
Number of best candidates to score and return. Relevance scoring evaluates all top_k candidates from retrieval; scoring_and_filtering then keeps only those above the quality threshold. Range: 1–100.
Controls the relevance scoring step. "scoring_and_filtering" (default): Score candidates for relevance and only return those above the quality threshold. When no candidate clears the threshold, the few best-scoring candidates are returned instead of an empty result; their scores.relevance is then below the usual threshold. "scoring_only": Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic. "none": Skip the relevance scoring step and return all candidates unfiltered. Fastest option, useful when you handle scoring yourself. Omit the field for the default; send "none" to skip. Overrides skip_rerank when both are sent.
Deprecated — use relevance_scoring. true → relevance_scoring=none, false → relevance_scoring=scoring_and_filtering. Ignored when relevance_scoring is provided.
Present only when a pipeline signal degrades. Absent in the happy path.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LightOn Documentation","colors":{"primary":"#1f99bb","light":"#1f99bb","dark":"#1f99bb"},"logo":{"light":"https://mintcdn.com/lighton/4YZaBTswRauXH9au/logo/lighton_light.svg?fit=max\u0026auto=format\u0026n=4YZaBTswRauXH9au\u0026q=85\u0026s=a6b78d917b942911d41874e815c9479f","dark":"https://mintcdn.com/lighton/4YZaBTswRauXH9au/logo/lighton_dark.svg?fit=max\u0026auto=format\u0026n=4YZaBTswRauXH9au\u0026q=85\u0026s=0b522a0cbc5f3c58dc5b6e93b003f83a"},"favicon":"https://mintcdn.com/lighton/4YZaBTswRauXH9au/logo/lighton_star.svg?fit=max\u0026auto=format\u0026n=4YZaBTswRauXH9au\u0026q=85\u0026s=14ce6151d54a51654425e83d9611bb1c","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript"]}},"navbar":{"links":[{"href":"/en/support-legal/getting-help/reporting-guide","label":"Support"},{"href":"/api-reference-v3","label":"API References"}],"primary":{"type":"button","label":"Paradigm","href":"https://paradigm.lighton.ai"}},"footer":{"socials":{"x":"https://x.com/LightOnIO","github":"https://github.com/lightonai","linkedin":"https://www.linkedin.com/company/lighton"}},"integrations":{"telemetry":{"enabled":false}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"en"},{"language":"fr","href":"fr"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lighton","hasAudioNarration":false,"actualSubdomain":"lighton","customDomains":["docs.lighton.ai"],"gitSource":{"type":"github","owner":"lightonai","repo":"mintlify-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6abc19fa3c5904361668d446","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Paradigm","count":264},{"language":"default","tag":"Références API","count":264},{"language":"default","tag":"API V3","count":142},{"language":"en","tag":"Paradigm Platform","count":85},{"language":"fr","tag":"Plateforme Paradigm","count":84},{"language":"en","tag":"Administration","count":55},{"language":"fr","tag":"Administration","count":54},{"language":"default","tag":"API V2","count":54},{"language":"default","tag":"Models","count":41},{"language":"default","tag":"Workspaces","count":37},{"language":"default","tag":"API V3 - Accès Instance","count":35},{"language":"default","tag":"API V3 - Accès Company","count":33},{"language":"default","tag":"User Groups","count":27},{"language":"default","tag":"SCIM","count":24},{"language":"en","tag":"Paradigm API","count":23},{"language":"fr","tag":"API Paradigm","count":23},{"language":"en","tag":"User Guides","count":22},{"language":"fr","tag":"Guides Utilisateur","count":22},{"language":"en","tag":"Guides","count":18},{"language":"fr","tag":"Guides","count":18},{"language":"en","tag":"Identity \u0026 Access Management","count":16},{"language":"fr","tag":"Gestion des utilisateurs et des accès","count":16},{"language":"en","tag":"Knowledge \u0026 Content Management","count":13},{"language":"fr","tag":"Gestion des connaissances et du contenu","count":13},{"language":"en","tag":"System Configuration","count":8},{"language":"fr","tag":"Configuration Système","count":8},{"language":"en","tag":"User Management","count":7},{"language":"en","tag":"Monitoring \u0026 Analytics","count":7},{"language":"fr","tag":"Gestion des Utilisateurs","count":7},{"language":"fr","tag":"Surveillance et Analytiques","count":7}]},"assistantConfig":{},"basePath":"","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":[],"page":{"pagePath":"api-reference-v3/files-processing/retrieve-document-chunks","slug":"/api-reference-v3/files-processing/retrieve-document-chunks","pageMetadata":{"title":"Retrieve document chunks","description":"**Deprecated: Use the v3 search endpoint instead.**\n\nInvoke the document retrieval pipeline (embedding + hybrid vector search + reranking)\nand return matched document chunks.\n\n**Relevance scoring (`relevance_scoring`):** controls the relevance scoring stage.\n- `scoring_and_filtering` (default): Score candidates for relevance and only\n return those above the quality threshold. When no candidate clears the\n threshold, the few best-scoring candidates are returned instead of an empty\n result; their `scores.relevance` is then below the usual threshold.\n- `scoring_only`: Score every candidate for relevance but return them all, even\n low-scoring ones. Useful for building your own filtering logic.\n- `none`: Skip the relevance scoring step and return all candidates unfiltered.\n Fastest option, useful when you handle scoring yourself.\n\nOmit `relevance_scoring` for the default; send `none` to skip scoring.\n`skip_rerank` is **deprecated** — `true` maps to `relevance_scoring=none`,\n`false` to `scoring_and_filtering`. `relevance_scoring` wins if both are sent.\n\n**Result ordering:** results are returned in descending order of `score`.\nWith `scoring_and_filtering` or `scoring_only`, `score` equals the relevance\nscore (`scores.relevance`, 0–1). With `none`, `score` is the combined retrieval\nscore (higher is better, no fixed upper bound).\n\nIf the scoring model is temporarily unavailable, results are returned in\nretrieval order and a `warnings` array is included. Each warning has a `code`\nmatching the degraded `scores` key (e.g. `relevance`) and a `reason` classifying\nthe failure: `model_not_found`, `timeout`, `service_error`, or `unknown`.\nThe `warnings` key is absent when all pipeline steps succeed.\n\n**Scoping:** use `workspace_id` and/or `tag_id` to narrow retrieval to specific\nworkspaces or tags, or use `file_id` to target specific files.\n`file_id` cannot be combined with `workspace_id` or `tag_id`.\nA 403 is returned if any provided filter resolves to no authorized resources.\nWhen no filters are provided, retrieval runs across all authorized documents.\n\n**Public datasets:** a public dataset workspace must be the only workspace in the\nrequest — combining it with any other `workspace_id`, `file_id`, or `tag_id` returns\n400. Public datasets are reachable only through a workspace-scoped API key whose scope\nincludes the workspace, and only for companies allowed to access them; otherwise the\nresult is empty.\n\n**Facet filtering:** use `content_type` and/or `attribute` to narrow retrieval\nby document metadata. These can be combined with workspace/tag scoping.\nContent type uses colon-separated paths (e.g. `legal:contract:nda`).\nAttributes support operators, OR, and content-type scoping.\n\n**Modes:**\n- `text` (default): hybrid text search\n- `vision`: image-based search\n\n**Explain mode:** set `explain=true` to receive a per-chunk scoring breakdown\nin the response (raw scores, normalized scores, fusion weights, filter stats,\ntiming). Requires the `SEARCH_EXPLAIN_MODE` feature flag to be enabled.","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/retrieve","href":"/api-reference-v3/files-processing/retrieve-document-chunks","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Deprecated: Use the v3 search endpoint instead.\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Invoke the document retrieval pipeline (embedding + hybrid vector search + reranking)\\nand return matched document chunks.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsxs(_components.strong, {\n children: [\"Relevance scoring (\", _jsx(_components.code, {\n children: \"relevance_scoring\"\n }), \"):\"]\n }), \" controls the relevance scoring stage.\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"scoring_and_filtering\"\n }), \" (default): Score candidates for relevance and only\\nreturn those above the quality threshold. When no candidate clears the\\nthreshold, the few best-scoring candidates are returned instead of an empty\\nresult; their \", _jsx(_components.code, {\n children: \"scores.relevance\"\n }), \" is then below the usual threshold.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"scoring_only\"\n }), \": Score every candidate for relevance but return them all, even\\nlow-scoring ones. Useful for building your own filtering logic.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"none\"\n }), \": Skip the relevance scoring step and return all candidates unfiltered.\\nFastest option, useful when you handle scoring yourself.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Omit \", _jsx(_components.code, {\n children: \"relevance_scoring\"\n }), \" for the default; send \", _jsx(_components.code, {\n children: \"none\"\n }), \" to skip scoring.\\n\", _jsx(_components.code, {\n children: \"skip_rerank\"\n }), \" is \", _jsx(_components.strong, {\n children: \"deprecated\"\n }), \" — \", _jsx(_components.code, {\n children: \"true\"\n }), \" maps to \", _jsx(_components.code, {\n children: \"relevance_scoring=none\"\n }), \",\\n\", _jsx(_components.code, {\n children: \"false\"\n }), \" to \", _jsx(_components.code, {\n children: \"scoring_and_filtering\"\n }), \". \", _jsx(_components.code, {\n children: \"relevance_scoring\"\n }), \" wins if both are sent.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Result ordering:\"\n }), \" results are returned in descending order of \", _jsx(_components.code, {\n children: \"score\"\n }), \".\\nWith \", _jsx(_components.code, {\n children: \"scoring_and_filtering\"\n }), \" or \", _jsx(_components.code, {\n children: \"scoring_only\"\n }), \", \", _jsx(_components.code, {\n children: \"score\"\n }), \" equals the relevance\\nscore (\", _jsx(_components.code, {\n children: \"scores.relevance\"\n }), \", 0–1). With \", _jsx(_components.code, {\n children: \"none\"\n }), \", \", _jsx(_components.code, {\n children: \"score\"\n }), \" is the combined retrieval\\nscore (higher is better, no fixed upper bound).\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"If the scoring model is temporarily unavailable, results are returned in\\nretrieval order and a \", _jsx(_components.code, {\n children: \"warnings\"\n }), \" array is included. Each warning has a \", _jsx(_components.code, {\n children: \"code\"\n }), \"\\nmatching the degraded \", _jsx(_components.code, {\n children: \"scores\"\n }), \" key (e.g. \", _jsx(_components.code, {\n children: \"relevance\"\n }), \") and a \", _jsx(_components.code, {\n children: \"reason\"\n }), \" classifying\\nthe failure: \", _jsx(_components.code, {\n children: \"model_not_found\"\n }), \", \", _jsx(_components.code, {\n children: \"timeout\"\n }), \", \", _jsx(_components.code, {\n children: \"service_error\"\n }), \", or \", _jsx(_components.code, {\n children: \"unknown\"\n }), \".\\nThe \", _jsx(_components.code, {\n children: \"warnings\"\n }), \" key is absent when all pipeline steps succeed.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Scoping:\"\n }), \" use \", _jsx(_components.code, {\n children: \"workspace_id\"\n }), \" and/or \", _jsx(_components.code, {\n children: \"tag_id\"\n }), \" to narrow retrieval to specific\\nworkspaces or tags, or use \", _jsx(_components.code, {\n children: \"file_id\"\n }), \" to target specific files.\\n\", _jsx(_components.code, {\n children: \"file_id\"\n }), \" cannot be combined with \", _jsx(_components.code, {\n children: \"workspace_id\"\n }), \" or \", _jsx(_components.code, {\n children: \"tag_id\"\n }), \".\\nA 403 is returned if any provided filter resolves to no authorized resources.\\nWhen no filters are provided, retrieval runs across all authorized documents.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Public datasets:\"\n }), \" a public dataset workspace must be the only workspace in the\\nrequest — combining it with any other \", _jsx(_components.code, {\n children: \"workspace_id\"\n }), \", \", _jsx(_components.code, {\n children: \"file_id\"\n }), \", or \", _jsx(_components.code, {\n children: \"tag_id\"\n }), \" returns\\n400. Public datasets are reachable only through a workspace-scoped API key whose scope\\nincludes the workspace, and only for companies allowed to access them; otherwise the\\nresult is empty.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Facet filtering:\"\n }), \" use \", _jsx(_components.code, {\n children: \"content_type\"\n }), \" and/or \", _jsx(_components.code, {\n children: \"attribute\"\n }), \" to narrow retrieval\\nby document metadata. These can be combined with workspace/tag scoping.\\nContent type uses colon-separated paths (e.g. \", _jsx(_components.code, {\n children: \"legal:contract:nda\"\n }), \").\\nAttributes support operators, OR, and content-type scoping.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Modes:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"text\"\n }), \" (default): hybrid text search\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"vision\"\n }), \": image-based search\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Explain mode:\"\n }), \" set \", _jsx(_components.code, {\n children: \"explain=true\"\n }), \" to receive a per-chunk scoring breakdown\\nin the response (raw scores, normalized scores, fusion weights, filter stats,\\ntiming). Requires the \", _jsx(_components.code, {\n children: \"SEARCH_EXPLAIN_MODE\"\n }), \" feature flag to be enabled.\"]\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":"Retrieve document chunks","description":"**Deprecated: Use the v3 search endpoint instead.**\n\nInvoke the document retrieval pipeline (embedding + hybrid vector search + reranking)\nand return matched document chunks.\n\n**Relevance scoring (`relevance_scoring`):** controls the relevance scoring stage.\n- `scoring_and_filtering` (default): Score candidates for relevance and only\n return those above the quality threshold. When no candidate clears the\n threshold, the few best-scoring candidates are returned instead of an empty\n result; their `scores.relevance` is then below the usual threshold.\n- `scoring_only`: Score every candidate for relevance but return them all, even\n low-scoring ones. Useful for building your own filtering logic.\n- `none`: Skip the relevance scoring step and return all candidates unfiltered.\n Fastest option, useful when you handle scoring yourself.\n\nOmit `relevance_scoring` for the default; send `none` to skip scoring.\n`skip_rerank` is **deprecated** — `true` maps to `relevance_scoring=none`,\n`false` to `scoring_and_filtering`. `relevance_scoring` wins if both are sent.\n\n**Result ordering:** results are returned in descending order of `score`.\nWith `scoring_and_filtering` or `scoring_only`, `score` equals the relevance\nscore (`scores.relevance`, 0–1). With `none`, `score` is the combined retrieval\nscore (higher is better, no fixed upper bound).\n\nIf the scoring model is temporarily unavailable, results are returned in\nretrieval order and a `warnings` array is included. Each warning has a `code`\nmatching the degraded `scores` key (e.g. `relevance`) and a `reason` classifying\nthe failure: `model_not_found`, `timeout`, `service_error`, or `unknown`.\nThe `warnings` key is absent when all pipeline steps succeed.\n\n**Scoping:** use `workspace_id` and/or `tag_id` to narrow retrieval to specific\nworkspaces or tags, or use `file_id` to target specific files.\n`file_id` cannot be combined with `workspace_id` or `tag_id`.\nA 403 is returned if any provided filter resolves to no authorized resources.\nWhen no filters are provided, retrieval runs across all authorized documents.\n\n**Public datasets:** a public dataset workspace must be the only workspace in the\nrequest — combining it with any other `workspace_id`, `file_id`, or `tag_id` returns\n400. Public datasets are reachable only through a workspace-scoped API key whose scope\nincludes the workspace, and only for companies allowed to access them; otherwise the\nresult is empty.\n\n**Facet filtering:** use `content_type` and/or `attribute` to narrow retrieval\nby document metadata. These can be combined with workspace/tag scoping.\nContent type uses colon-separated paths (e.g. `legal:contract:nda`).\nAttributes support operators, OR, and content-type scoping.\n\n**Modes:**\n- `text` (default): hybrid text search\n- `vision`: image-based search\n\n**Explain mode:** set `explain=true` to receive a per-chunk scoring breakdown\nin the response (raw scores, normalized scores, fusion weights, filter stats,\ntiming). Requires the `SEARCH_EXPLAIN_MODE` feature flag to be enabled.","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/retrieve","href":"/api-reference-v3/files-processing/retrieve-document-chunks","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"api_v3_retrieve_create","description":"**Deprecated: Use the v3 search endpoint instead.**\n\nInvoke the document retrieval pipeline (embedding + hybrid vector search + reranking)\nand return matched document chunks.\n\n**Relevance scoring (`relevance_scoring`):** controls the relevance scoring stage.\n- `scoring_and_filtering` (default): Score candidates for relevance and only\n return those above the quality threshold. When no candidate clears the\n threshold, the few best-scoring candidates are returned instead of an empty\n result; their `scores.relevance` is then below the usual threshold.\n- `scoring_only`: Score every candidate for relevance but return them all, even\n low-scoring ones. Useful for building your own filtering logic.\n- `none`: Skip the relevance scoring step and return all candidates unfiltered.\n Fastest option, useful when you handle scoring yourself.\n\nOmit `relevance_scoring` for the default; send `none` to skip scoring.\n`skip_rerank` is **deprecated** — `true` maps to `relevance_scoring=none`,\n`false` to `scoring_and_filtering`. `relevance_scoring` wins if both are sent.\n\n**Result ordering:** results are returned in descending order of `score`.\nWith `scoring_and_filtering` or `scoring_only`, `score` equals the relevance\nscore (`scores.relevance`, 0–1). With `none`, `score` is the combined retrieval\nscore (higher is better, no fixed upper bound).\n\nIf the scoring model is temporarily unavailable, results are returned in\nretrieval order and a `warnings` array is included. Each warning has a `code`\nmatching the degraded `scores` key (e.g. `relevance`) and a `reason` classifying\nthe failure: `model_not_found`, `timeout`, `service_error`, or `unknown`.\nThe `warnings` key is absent when all pipeline steps succeed.\n\n**Scoping:** use `workspace_id` and/or `tag_id` to narrow retrieval to specific\nworkspaces or tags, or use `file_id` to target specific files.\n`file_id` cannot be combined with `workspace_id` or `tag_id`.\nA 403 is returned if any provided filter resolves to no authorized resources.\nWhen no filters are provided, retrieval runs across all authorized documents.\n\n**Public datasets:** a public dataset workspace must be the only workspace in the\nrequest — combining it with any other `workspace_id`, `file_id`, or `tag_id` returns\n400. Public datasets are reachable only through a workspace-scoped API key whose scope\nincludes the workspace, and only for companies allowed to access them; otherwise the\nresult is empty.\n\n**Facet filtering:** use `content_type` and/or `attribute` to narrow retrieval\nby document metadata. These can be combined with workspace/tag scoping.\nContent type uses colon-separated paths (e.g. `legal:contract:nda`).\nAttributes support operators, OR, and content-type scoping.\n\n**Modes:**\n- `text` (default): hybrid text search\n- `vision`: image-based search\n\n**Explain mode:** set `explain=true` to receive a per-chunk scoring breakdown\nin the response (raw scores, normalized scores, fusion weights, filter stats,\ntiming). Requires the `SEARCH_EXPLAIN_MODE` feature flag to be enabled.","summary":"Retrieve document chunks","tags":["Files Processing"],"requestBody":"b1b00f18-64ec-4e4d-bd0d-fa003dcbe70e","security":["857bd745-f6a2-4cf2-b9a2-680325071670"],"deprecated":true,"responses":{"200":"b2f3a733-7281-4e4d-8405-6c90aa59555c","400":"eea65c49-5331-47cf-9b4f-9d6b6bc813a4","401":"00ab0971-9cac-41d2-8cf4-53fdbfd0c8d8","403":"5aa9e602-9952-426b-b537-b48015e2347e","422":"9df6e2f4-bf7b-476d-a433-2cd545c29645","429":"51e8a2b3-f3c2-4905-ba41-efd0c2a72cd1","503":"8c785fba-1a63-4336-b316-3fb1e0e9d82b"},"method":"post","type":"path","servers":["69d5615d-8fb4-4735-9538-65c54dbb8d3b"],"path":"/api/v3/retrieve","baseUrlOptions":["https://paradigm.lighton.ai"],"title":"Retrieve document chunks","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"DRF serializer mixin providing ``content_type`` and ``attribute`` fields.\n\nCompose into any request serializer via multiple inheritance::\n\n class SearchRequestSerializer(FacetFilterFieldsMixin, serializers.Serializer):\n query = serializers.CharField(...)\n # content_type and attribute inherited from the mixin","properties":{"query":{"type":"string","description":"Natural-language search query. Maximum 1500 characters.","maxLength":1500,"isRequired":true,"uniqueKey":"query","typeLabel":"string"},"content_type":{"type":"array","items":{"type":"string","uniqueKey":"content_type.items.[INDEX]","typeLabel":"string"},"description":"Filter by content type path. Multiple values are OR. Exact-or-subtree matching by default (e.g. `legal` matches legal, legal:contract). Wildcards: `*contract*` (contains), `legal:contract*` (prefix).","uniqueKey":"content_type","typeLabel":"string[]"},"attribute":{"type":"array","items":{"type":"string","uniqueKey":"attribute.items.[INDEX]","typeLabel":"string"},"description":"Filter by attribute value. **Repeated `attribute` entries are ANDed; values inside one entry are ORed with `|`** (pipe is the recommended OR delimiter — comma also works but can be ambiguous with multi-key values). Example: `attribute=fiscal_year:2024|2025\u0026attribute=status:active` → (fiscal_year 2024 OR 2025) AND (status active). Formats: `name` (has any value), `name:value` (exact), `name:>value` / `name:>=value` (gt/gte), `name:\u003cvalue` / `name:\u003c=value` (lt/lte), `name:prefix*` (starts with, case-insensitive), `name:*text*` (contains, case-insensitive), `name:a|b` (OR). Smart dates: `filing_date:2023` (year), `filing_date:2023-06` (month). Type-aware: booleans (true/false), multi-select (membership check). Scoped: `content_type(legal:compliance).regulation:AML`.","uniqueKey":"attribute","typeLabel":"string[]"},"mode":{"type":"string","description":"Retrieval pipeline: \"text\" (hybrid search on DocumentChunk) or \"vision\" (image-based on VisionChunk).\n\n* `text` - text\n* `vision` - vision","default":"text","enum":["text","vision"],"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"top_k":{"type":"integer","maximum":100,"minimum":1,"default":20,"description":"Number of best candidates to score and return. Relevance scoring evaluates all top_k candidates from retrieval; scoring_and_filtering then keeps only those above the quality threshold. Range: 1–100.","uniqueKey":"top_k","typeLabel":"integer"},"workspace_id":{"type":"array","items":{"type":"integer","uniqueKey":"workspace_id.items.[INDEX]","typeLabel":"integer"},"description":"Scope retrieval to specific workspace IDs (authorized only).","uniqueKey":"workspace_id","typeLabel":"integer[]"},"file_id":{"type":"array","items":{"type":"integer","uniqueKey":"file_id.items.[INDEX]","typeLabel":"integer"},"description":"Scope retrieval to specific file IDs (authorized only).","uniqueKey":"file_id","typeLabel":"integer[]"},"tag_id":{"type":"array","items":{"type":"integer","uniqueKey":"tag_id.items.[INDEX]","typeLabel":"integer"},"description":"Scope retrieval to documents with any of these tag IDs (company-scoped).","uniqueKey":"tag_id","typeLabel":"integer[]"},"relevance_scoring":{"type":"string","description":"Controls the relevance scoring step. \"scoring_and_filtering\" (default): Score candidates for relevance and only return those above the quality threshold. When no candidate clears the threshold, the few best-scoring candidates are returned instead of an empty result; their scores.relevance is then below the usual threshold. \"scoring_only\": Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic. \"none\": Skip the relevance scoring step and return all candidates unfiltered. Fastest option, useful when you handle scoring yourself. Omit the field for the default; send \"none\" to skip. Overrides skip_rerank when both are sent.\n\n* `none` - none\n* `scoring_only` - scoring_only\n* `scoring_and_filtering` - scoring_and_filtering","enum":["none","scoring_only","scoring_and_filtering"],"uniqueKey":"relevance_scoring","typeLabel":"enum\u003cstring>"},"skip_rerank":{"type":"boolean","description":"Deprecated — use relevance_scoring. true → relevance_scoring=none, false → relevance_scoring=scoring_and_filtering. Ignored when relevance_scoring is provided.","uniqueKey":"skip_rerank","typeLabel":"boolean"},"include_image":{"type":"boolean","default":false,"description":"Include base64-encoded page image in each result.","uniqueKey":"include_image","typeLabel":"boolean"},"include_details":{"type":"boolean","default":false,"description":"Expand document metadata in results. When true, content types include breadcrumb, code, and attribute definitions (type, required, choices).","uniqueKey":"include_details","typeLabel":"boolean"}},"required":["query"],"uniqueKey":"","typeLabel":"object"},"examples":{"TextMode—ScopedToWorkspace":{"title":"TextMode—ScopedToWorkspace","description":"Retrieve chunks from a specific workspace using hybrid text search with reranking.","value":{"query":"authentication system JWT tokens","mode":"text","top_k":20,"workspace_id":[42]}},"TextMode—ScopedToFiles":{"title":"TextMode—ScopedToFiles","description":"Retrieve chunks from specific files only.","value":{"query":"quarterly revenue forecast","mode":"text","top_k":10,"file_id":[101,102]}},"TextMode—AcrossAllDocuments":{"title":"TextMode—AcrossAllDocuments","description":"Retrieve chunks across all documents the API key has access to.","value":{"query":"onboarding process","mode":"text","top_k":20}},"VisionModeWithImage":{"title":"VisionModeWithImage","description":"Retrieve vision chunks (images/diagrams) using image-based search.","value":{"query":"architecture diagram","mode":"vision","top_k":10,"include_image":true}},"SkipScoring(none)—RawRetrieval":{"title":"SkipScoring(none)—RawRetrieval","description":"Bypass the reranker to isolate raw vector + lexical retrieval quality.","value":{"query":"incident response playbook","mode":"text","top_k":20,"relevance_scoring":"none"}},"ScoringOnly—RerankWithoutFiltering":{"title":"ScoringOnly—RerankWithoutFiltering","description":"Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic.","value":{"query":"incident response playbook","mode":"text","top_k":20,"relevance_scoring":"scoring_only"}},"Facet—ContentTypeFilter":{"title":"Facet—ContentTypeFilter","description":"Retrieve only from documents classified as legal contracts.","value":{"query":"indemnification clause","content_type":["legal:contract"],"top_k":20}},"Facet—AttributeFilter":{"title":"Facet—AttributeFilter","description":"Retrieve from documents with a specific attribute value, combined with workspace scoping.","value":{"query":"compliance requirements","workspace_id":[42],"content_type":["legal"],"attribute":["jurisdiction:FR","effective_date:>2024-01-01"]}}},"exampleType":"examples"},"application/x-www-form-urlencoded":{"schema":{"type":"object","description":"DRF serializer mixin providing ``content_type`` and ``attribute`` fields.\n\nCompose into any request serializer via multiple inheritance::\n\n class SearchRequestSerializer(FacetFilterFieldsMixin, serializers.Serializer):\n query = serializers.CharField(...)\n # content_type and attribute inherited from the mixin","properties":{"query":{"type":"string","description":"Natural-language search query. Maximum 1500 characters.","maxLength":1500,"isRequired":true,"uniqueKey":"query","typeLabel":"string"},"content_type":{"type":"array","items":{"type":"string","uniqueKey":"content_type.items.[INDEX]","typeLabel":"string"},"description":"Filter by content type path. Multiple values are OR. Exact-or-subtree matching by default (e.g. `legal` matches legal, legal:contract). Wildcards: `*contract*` (contains), `legal:contract*` (prefix).","uniqueKey":"content_type","typeLabel":"string[]"},"attribute":{"type":"array","items":{"type":"string","uniqueKey":"attribute.items.[INDEX]","typeLabel":"string"},"description":"Filter by attribute value. **Repeated `attribute` entries are ANDed; values inside one entry are ORed with `|`** (pipe is the recommended OR delimiter — comma also works but can be ambiguous with multi-key values). Example: `attribute=fiscal_year:2024|2025\u0026attribute=status:active` → (fiscal_year 2024 OR 2025) AND (status active). Formats: `name` (has any value), `name:value` (exact), `name:>value` / `name:>=value` (gt/gte), `name:\u003cvalue` / `name:\u003c=value` (lt/lte), `name:prefix*` (starts with, case-insensitive), `name:*text*` (contains, case-insensitive), `name:a|b` (OR). Smart dates: `filing_date:2023` (year), `filing_date:2023-06` (month). Type-aware: booleans (true/false), multi-select (membership check). Scoped: `content_type(legal:compliance).regulation:AML`.","uniqueKey":"attribute","typeLabel":"string[]"},"mode":{"type":"string","description":"Retrieval pipeline: \"text\" (hybrid search on DocumentChunk) or \"vision\" (image-based on VisionChunk).\n\n* `text` - text\n* `vision` - vision","default":"text","enum":["text","vision"],"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"top_k":{"type":"integer","maximum":100,"minimum":1,"default":20,"description":"Number of best candidates to score and return. Relevance scoring evaluates all top_k candidates from retrieval; scoring_and_filtering then keeps only those above the quality threshold. Range: 1–100.","uniqueKey":"top_k","typeLabel":"integer"},"workspace_id":{"type":"array","items":{"type":"integer","uniqueKey":"workspace_id.items.[INDEX]","typeLabel":"integer"},"description":"Scope retrieval to specific workspace IDs (authorized only).","uniqueKey":"workspace_id","typeLabel":"integer[]"},"file_id":{"type":"array","items":{"type":"integer","uniqueKey":"file_id.items.[INDEX]","typeLabel":"integer"},"description":"Scope retrieval to specific file IDs (authorized only).","uniqueKey":"file_id","typeLabel":"integer[]"},"tag_id":{"type":"array","items":{"type":"integer","uniqueKey":"tag_id.items.[INDEX]","typeLabel":"integer"},"description":"Scope retrieval to documents with any of these tag IDs (company-scoped).","uniqueKey":"tag_id","typeLabel":"integer[]"},"relevance_scoring":{"type":"string","description":"Controls the relevance scoring step. \"scoring_and_filtering\" (default): Score candidates for relevance and only return those above the quality threshold. When no candidate clears the threshold, the few best-scoring candidates are returned instead of an empty result; their scores.relevance is then below the usual threshold. \"scoring_only\": Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic. \"none\": Skip the relevance scoring step and return all candidates unfiltered. Fastest option, useful when you handle scoring yourself. Omit the field for the default; send \"none\" to skip. Overrides skip_rerank when both are sent.\n\n* `none` - none\n* `scoring_only` - scoring_only\n* `scoring_and_filtering` - scoring_and_filtering","enum":["none","scoring_only","scoring_and_filtering"],"uniqueKey":"relevance_scoring","typeLabel":"enum\u003cstring>"},"skip_rerank":{"type":"boolean","description":"Deprecated — use relevance_scoring. true → relevance_scoring=none, false → relevance_scoring=scoring_and_filtering. Ignored when relevance_scoring is provided.","uniqueKey":"skip_rerank","typeLabel":"boolean"},"include_image":{"type":"boolean","default":false,"description":"Include base64-encoded page image in each result.","uniqueKey":"include_image","typeLabel":"boolean"},"include_details":{"type":"boolean","default":false,"description":"Expand document metadata in results. When true, content types include breadcrumb, code, and attribute definitions (type, required, choices).","uniqueKey":"include_details","typeLabel":"boolean"}},"required":["query"],"uniqueKey":"","typeLabel":"object"},"examples":{"TextMode—ScopedToWorkspace":{"title":"TextMode—ScopedToWorkspace","description":"Retrieve chunks from a specific workspace using hybrid text search with reranking.","value":{"query":"authentication system JWT tokens","mode":"text","top_k":20,"workspace_id":[42]}},"TextMode—ScopedToFiles":{"title":"TextMode—ScopedToFiles","description":"Retrieve chunks from specific files only.","value":{"query":"quarterly revenue forecast","mode":"text","top_k":10,"file_id":[101,102]}},"TextMode—AcrossAllDocuments":{"title":"TextMode—AcrossAllDocuments","description":"Retrieve chunks across all documents the API key has access to.","value":{"query":"onboarding process","mode":"text","top_k":20}},"VisionModeWithImage":{"title":"VisionModeWithImage","description":"Retrieve vision chunks (images/diagrams) using image-based search.","value":{"query":"architecture diagram","mode":"vision","top_k":10,"include_image":true}},"SkipScoring(none)—RawRetrieval":{"title":"SkipScoring(none)—RawRetrieval","description":"Bypass the reranker to isolate raw vector + lexical retrieval quality.","value":{"query":"incident response playbook","mode":"text","top_k":20,"relevance_scoring":"none"}},"ScoringOnly—RerankWithoutFiltering":{"title":"ScoringOnly—RerankWithoutFiltering","description":"Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic.","value":{"query":"incident response playbook","mode":"text","top_k":20,"relevance_scoring":"scoring_only"}},"Facet—ContentTypeFilter":{"title":"Facet—ContentTypeFilter","description":"Retrieve only from documents classified as legal contracts.","value":{"query":"indemnification clause","content_type":["legal:contract"],"top_k":20}},"Facet—AttributeFilter":{"title":"Facet—AttributeFilter","description":"Retrieve from documents with a specific attribute value, combined with workspace scoping.","value":{"query":"compliance requirements","workspace_id":[42],"content_type":["legal"],"attribute":["jurisdiction:FR","effective_date:>2024-01-01"]}}},"exampleType":"examples"},"multipart/form-data":{"schema":{"type":"object","description":"DRF serializer mixin providing ``content_type`` and ``attribute`` fields.\n\nCompose into any request serializer via multiple inheritance::\n\n class SearchRequestSerializer(FacetFilterFieldsMixin, serializers.Serializer):\n query = serializers.CharField(...)\n # content_type and attribute inherited from the mixin","properties":{"query":{"type":"string","description":"Natural-language search query. Maximum 1500 characters.","maxLength":1500,"isRequired":true,"uniqueKey":"query","typeLabel":"string"},"content_type":{"type":"array","items":{"type":"string","uniqueKey":"content_type.items.[INDEX]","typeLabel":"string"},"description":"Filter by content type path. Multiple values are OR. Exact-or-subtree matching by default (e.g. `legal` matches legal, legal:contract). Wildcards: `*contract*` (contains), `legal:contract*` (prefix).","uniqueKey":"content_type","typeLabel":"string[]"},"attribute":{"type":"array","items":{"type":"string","uniqueKey":"attribute.items.[INDEX]","typeLabel":"string"},"description":"Filter by attribute value. **Repeated `attribute` entries are ANDed; values inside one entry are ORed with `|`** (pipe is the recommended OR delimiter — comma also works but can be ambiguous with multi-key values). Example: `attribute=fiscal_year:2024|2025\u0026attribute=status:active` → (fiscal_year 2024 OR 2025) AND (status active). Formats: `name` (has any value), `name:value` (exact), `name:>value` / `name:>=value` (gt/gte), `name:\u003cvalue` / `name:\u003c=value` (lt/lte), `name:prefix*` (starts with, case-insensitive), `name:*text*` (contains, case-insensitive), `name:a|b` (OR). Smart dates: `filing_date:2023` (year), `filing_date:2023-06` (month). Type-aware: booleans (true/false), multi-select (membership check). Scoped: `content_type(legal:compliance).regulation:AML`.","uniqueKey":"attribute","typeLabel":"string[]"},"mode":{"type":"string","description":"Retrieval pipeline: \"text\" (hybrid search on DocumentChunk) or \"vision\" (image-based on VisionChunk).\n\n* `text` - text\n* `vision` - vision","default":"text","enum":["text","vision"],"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"top_k":{"type":"integer","maximum":100,"minimum":1,"default":20,"description":"Number of best candidates to score and return. Relevance scoring evaluates all top_k candidates from retrieval; scoring_and_filtering then keeps only those above the quality threshold. Range: 1–100.","uniqueKey":"top_k","typeLabel":"integer"},"workspace_id":{"type":"array","items":{"type":"integer","uniqueKey":"workspace_id.items.[INDEX]","typeLabel":"integer"},"description":"Scope retrieval to specific workspace IDs (authorized only).","uniqueKey":"workspace_id","typeLabel":"integer[]"},"file_id":{"type":"array","items":{"type":"integer","uniqueKey":"file_id.items.[INDEX]","typeLabel":"integer"},"description":"Scope retrieval to specific file IDs (authorized only).","uniqueKey":"file_id","typeLabel":"integer[]"},"tag_id":{"type":"array","items":{"type":"integer","uniqueKey":"tag_id.items.[INDEX]","typeLabel":"integer"},"description":"Scope retrieval to documents with any of these tag IDs (company-scoped).","uniqueKey":"tag_id","typeLabel":"integer[]"},"relevance_scoring":{"type":"string","description":"Controls the relevance scoring step. \"scoring_and_filtering\" (default): Score candidates for relevance and only return those above the quality threshold. When no candidate clears the threshold, the few best-scoring candidates are returned instead of an empty result; their scores.relevance is then below the usual threshold. \"scoring_only\": Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic. \"none\": Skip the relevance scoring step and return all candidates unfiltered. Fastest option, useful when you handle scoring yourself. Omit the field for the default; send \"none\" to skip. Overrides skip_rerank when both are sent.\n\n* `none` - none\n* `scoring_only` - scoring_only\n* `scoring_and_filtering` - scoring_and_filtering","enum":["none","scoring_only","scoring_and_filtering"],"uniqueKey":"relevance_scoring","typeLabel":"enum\u003cstring>"},"skip_rerank":{"type":"boolean","description":"Deprecated — use relevance_scoring. true → relevance_scoring=none, false → relevance_scoring=scoring_and_filtering. Ignored when relevance_scoring is provided.","uniqueKey":"skip_rerank","typeLabel":"boolean"},"include_image":{"type":"boolean","default":false,"description":"Include base64-encoded page image in each result.","uniqueKey":"include_image","typeLabel":"boolean"},"include_details":{"type":"boolean","default":false,"description":"Expand document metadata in results. When true, content types include breadcrumb, code, and attribute definitions (type, required, choices).","uniqueKey":"include_details","typeLabel":"boolean"}},"required":["query"],"uniqueKey":"","typeLabel":"object"},"examples":{"TextMode—ScopedToWorkspace":{"title":"TextMode—ScopedToWorkspace","description":"Retrieve chunks from a specific workspace using hybrid text search with reranking.","value":{"query":"authentication system JWT tokens","mode":"text","top_k":20,"workspace_id":[42]}},"TextMode—ScopedToFiles":{"title":"TextMode—ScopedToFiles","description":"Retrieve chunks from specific files only.","value":{"query":"quarterly revenue forecast","mode":"text","top_k":10,"file_id":[101,102]}},"TextMode—AcrossAllDocuments":{"title":"TextMode—AcrossAllDocuments","description":"Retrieve chunks across all documents the API key has access to.","value":{"query":"onboarding process","mode":"text","top_k":20}},"VisionModeWithImage":{"title":"VisionModeWithImage","description":"Retrieve vision chunks (images/diagrams) using image-based search.","value":{"query":"architecture diagram","mode":"vision","top_k":10,"include_image":true}},"SkipScoring(none)—RawRetrieval":{"title":"SkipScoring(none)—RawRetrieval","description":"Bypass the reranker to isolate raw vector + lexical retrieval quality.","value":{"query":"incident response playbook","mode":"text","top_k":20,"relevance_scoring":"none"}},"ScoringOnly—RerankWithoutFiltering":{"title":"ScoringOnly—RerankWithoutFiltering","description":"Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic.","value":{"query":"incident response playbook","mode":"text","top_k":20,"relevance_scoring":"scoring_only"}},"Facet—ContentTypeFilter":{"title":"Facet—ContentTypeFilter","description":"Retrieve only from documents classified as legal contracts.","value":{"query":"indemnification clause","content_type":["legal:contract"],"top_k":20}},"Facet—AttributeFilter":{"title":"Facet—AttributeFilter","description":"Retrieve from documents with a specific attribute value, combined with workspace scoping.","value":{"query":"compliance requirements","workspace_id":[42],"content_type":["legal"],"attribute":["jurisdiction:FR","effective_date:>2024-01-01"]}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"b2f3a733-7281-4e4d-8405-6c90aa59555c":{"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"The search query that was executed.","isRequired":true,"uniqueKey":"query","typeLabel":"string"},"retrieve_params":{"type":"object","description":"Retrieval parameters used (including defaults).","required":["include_image","mode","relevance_scoring","skip_rerank","top_k"],"properties":{"mode":{"type":"string","description":"Retrieval mode used: \"text\" or \"vision\".","isRequired":true,"uniqueKey":"retrieve_params.mode","typeLabel":"string"},"top_k":{"type":"integer","description":"Number of best candidates scored and returned.","isRequired":true,"uniqueKey":"retrieve_params.top_k","typeLabel":"integer"},"relevance_scoring":{"type":"string","description":"Cross-encoder mode used: 'none' (skip), 'scoring_only', or 'scoring_and_filtering'.","isRequired":true,"uniqueKey":"retrieve_params.relevance_scoring","typeLabel":"string"},"skip_rerank":{"type":"boolean","description":"Deprecated — derived from relevance_scoring (true when relevance_scoring is 'none').","isRequired":true,"uniqueKey":"retrieve_params.skip_rerank","typeLabel":"boolean"},"include_image":{"type":"boolean","description":"Whether page images are included.","isRequired":true,"uniqueKey":"retrieve_params.include_image","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"retrieve_params","typeLabel":"object"},"scoping_params":{"type":"object","description":"Scoping parameters used to narrow retrieval.","required":["file_id","tag_id","workspace_id"],"properties":{"file_id":{"type":"array","items":{"type":"integer","uniqueKey":"scoping_params.file_id.items.[INDEX]","typeLabel":"integer"},"description":"File IDs used for scoping.","isRequired":true,"uniqueKey":"scoping_params.file_id","typeLabel":"integer[]"},"tag_id":{"type":"array","items":{"type":"integer","uniqueKey":"scoping_params.tag_id.items.[INDEX]","typeLabel":"integer"},"description":"Tag IDs used for scoping.","isRequired":true,"uniqueKey":"scoping_params.tag_id","typeLabel":"integer[]"},"workspace_id":{"type":"array","items":{"type":"integer","uniqueKey":"scoping_params.workspace_id.items.[INDEX]","typeLabel":"integer"},"description":"Workspace IDs used for scoping.","isRequired":true,"uniqueKey":"scoping_params.workspace_id","typeLabel":"integer[]"},"content_type":{"type":"array","items":{"type":"string","uniqueKey":"scoping_params.content_type.items.[INDEX]","typeLabel":"string"},"description":"Content type paths used for scoping.","uniqueKey":"scoping_params.content_type","typeLabel":"string[]"},"attribute":{"type":"array","items":{"type":"string","uniqueKey":"scoping_params.attribute.items.[INDEX]","typeLabel":"string"},"description":"Attribute filters used for scoping.","uniqueKey":"scoping_params.attribute","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"scoping_params","typeLabel":"object"},"results":{"type":"array","items":{"type":"object","properties":{"chunk":{"oneOf":[{"type":"object","description":"Chunk data. Text mode: id, uuid, content_id, text, chunk_type, metadata, created_at, updated_at. Vision mode: id, uuid, metadata, created_at, updated_at.","required":["created_at","id","metadata","text","updated_at","uuid"],"properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.id","typeLabel":"integer"},"uuid":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.uuid","typeLabel":"string\u003cuuid>"},"text":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.text","typeLabel":"string"},"metadata":{"type":"object","title":"ChunkMetadataResponse","description":"Provenance and positioning metadata: page range, title, source filename, and neighbouring chunk UUIDs.","properties":{"pages":{"default":"","description":"1-indexed page (or page range) of the parent document covered by the chunk. Single page: '5'. Multi-page span: '3-4'.","title":"Pages","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.pages","typeLabel":"string"},"total_pages":{"oneOf":[{"type":"integer","title":"Total Pages","description":"Total page count of the parent document. Null when unknown (e.g. spreadsheets).","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.total_pages.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Total Pages","description":"Total page count of the parent document. Null when unknown (e.g. spreadsheets).","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.total_pages.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.total_pages","typeLabel":"integer | null"},"title":{"default":"","description":"Parent document's title. Empty when the document has no title.","title":"Title","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.title","typeLabel":"string"},"source":{"default":"","description":"Original filename of the parent document, e.g. 'design-doc.pdf'.","title":"Source","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.source","typeLabel":"string"},"parser":{"default":"","description":"Parser that produced the chunk (e.g. 'vision' for vision chunks).","title":"Parser","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.parser","typeLabel":"string"},"folder_name":{"default":"","description":"Name of the immediate folder the document was imported from. Empty for direct uploads.","title":"Folder Name","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.folder_name","typeLabel":"string"},"coords":{"oneOf":[{"type":"string","title":"Coords","description":"Bounding boxes of the chunk's text on the source PDF, as a semicolon-joined string of 'page,x,y,w,h' tuples (e.g. '3,72.0,120.0,450.0,18.0;3,72.0,140.0,450.0,18.0'). Null when unavailable (spreadsheets, vision chunks).","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.coords.oneOf.0","typeLabel":"string"},{"type":"null","title":"Coords","description":"Bounding boxes of the chunk's text on the source PDF, as a semicolon-joined string of 'page,x,y,w,h' tuples (e.g. '3,72.0,120.0,450.0,18.0;3,72.0,140.0,450.0,18.0'). Null when unavailable (spreadsheets, vision chunks).","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.coords.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.coords","typeLabel":"string | null"},"previous":{"default":"","description":"UUID of the previous chunk in the document. Empty for the first chunk.","title":"Previous","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.previous","typeLabel":"string"},"next":{"default":"","description":"UUID of the next chunk in the document. Empty for the last chunk.","title":"Next","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.next","typeLabel":"string"},"overlapping":{"default":"","description":"Semicolon-joined UUIDs of chunks that share text with this chunk. Empty when there is no overlap.","title":"Overlapping","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.overlapping","typeLabel":"string"},"token_length":{"oneOf":[{"type":"integer","title":"Token Length","description":"Number of tokens in the chunk text. Null for vision chunks.","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.token_length.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Token Length","description":"Number of tokens in the chunk text. Null for vision chunks.","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.token_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata.token_length","typeLabel":"integer | null"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.metadata","typeLabel":"ChunkMetadataResponse · object"},"created_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"},"content_id":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.content_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.content_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].chunk.oneOf.0.content_id","typeLabel":"string | null"},"chunk_type":{"enum":["text","table"],"type":"string","description":"* `text` - text\n* `table` - table","uniqueKey":"results.items.[INDEX].chunk.oneOf.0.chunk_type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.0","typeLabel":"object"},{"type":"object","description":"Chunk data. Text mode: id, uuid, content_id, text, chunk_type, metadata, created_at, updated_at. Vision mode: id, uuid, metadata, created_at, updated_at.","required":["created_at","id","metadata","updated_at","uuid"],"properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.1.id","typeLabel":"integer"},"uuid":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.1.uuid","typeLabel":"string\u003cuuid>"},"metadata":{"type":"object","title":"ChunkMetadataResponse","description":"Provenance and positioning metadata: page, title, source filename. `coords` and `token_length` are null for vision chunks.","properties":{"pages":{"default":"","description":"1-indexed page (or page range) of the parent document covered by the chunk. Single page: '5'. Multi-page span: '3-4'.","title":"Pages","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.pages","typeLabel":"string"},"total_pages":{"oneOf":[{"type":"integer","title":"Total Pages","description":"Total page count of the parent document. Null when unknown (e.g. spreadsheets).","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.total_pages.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Total Pages","description":"Total page count of the parent document. Null when unknown (e.g. spreadsheets).","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.total_pages.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.total_pages","typeLabel":"integer | null"},"title":{"default":"","description":"Parent document's title. Empty when the document has no title.","title":"Title","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.title","typeLabel":"string"},"source":{"default":"","description":"Original filename of the parent document, e.g. 'design-doc.pdf'.","title":"Source","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.source","typeLabel":"string"},"parser":{"default":"","description":"Parser that produced the chunk (e.g. 'vision' for vision chunks).","title":"Parser","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.parser","typeLabel":"string"},"folder_name":{"default":"","description":"Name of the immediate folder the document was imported from. Empty for direct uploads.","title":"Folder Name","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.folder_name","typeLabel":"string"},"coords":{"oneOf":[{"type":"string","title":"Coords","description":"Bounding boxes of the chunk's text on the source PDF, as a semicolon-joined string of 'page,x,y,w,h' tuples (e.g. '3,72.0,120.0,450.0,18.0;3,72.0,140.0,450.0,18.0'). Null when unavailable (spreadsheets, vision chunks).","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.coords.oneOf.0","typeLabel":"string"},{"type":"null","title":"Coords","description":"Bounding boxes of the chunk's text on the source PDF, as a semicolon-joined string of 'page,x,y,w,h' tuples (e.g. '3,72.0,120.0,450.0,18.0;3,72.0,140.0,450.0,18.0'). Null when unavailable (spreadsheets, vision chunks).","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.coords.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.coords","typeLabel":"string | null"},"previous":{"default":"","description":"UUID of the previous chunk in the document. Empty for the first chunk.","title":"Previous","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.previous","typeLabel":"string"},"next":{"default":"","description":"UUID of the next chunk in the document. Empty for the last chunk.","title":"Next","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.next","typeLabel":"string"},"overlapping":{"default":"","description":"Semicolon-joined UUIDs of chunks that share text with this chunk. Empty when there is no overlap.","title":"Overlapping","type":"string","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.overlapping","typeLabel":"string"},"token_length":{"oneOf":[{"type":"integer","title":"Token Length","description":"Number of tokens in the chunk text. Null for vision chunks.","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.token_length.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Token Length","description":"Number of tokens in the chunk text. Null for vision chunks.","uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.token_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata.token_length","typeLabel":"integer | null"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.1.metadata","typeLabel":"ChunkMetadataResponse · object"},"created_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.1.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.1.updated_at","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].chunk","typeLabel":"object"},"scoring":{"type":"object","description":"Relevance scores for this chunk","required":["score","scores"],"properties":{"score":{"type":"number","format":"double","description":"Effective relevance score — the sort key. Equals scores.relevance (0–1) when relevance scoring ran, otherwise the combined retrieval score (higher is better, no fixed upper bound). Results are ordered by this value descending.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.score","typeLabel":"number\u003cdouble>"},"scores":{"type":"object","description":"Per-signal score breakdown.","required":["keyword","multivector","relevance","text","vision"],"properties":{"text":{"oneOf":[{"type":"number","format":"double","description":"Semantic text similarity (0–1, higher is better). Null in vision mode.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.text.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"Semantic text similarity (0–1, higher is better). Null in vision mode.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.text.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.text","typeLabel":"number\u003cdouble> | null"},"vision":{"oneOf":[{"type":"number","format":"double","description":"Vision page similarity (0–1, higher is better). Null when the document has no vision index.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.vision.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"Vision page similarity (0–1, higher is better). Null when the document has no vision index.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.vision.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.vision","typeLabel":"number\u003cdouble> | null"},"keyword":{"oneOf":[{"type":"number","format":"double","description":"Keyword match score (higher is better, no fixed upper bound). Null in vision mode.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.keyword.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"Keyword match score (higher is better, no fixed upper bound). Null in vision mode.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.keyword.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.keyword","typeLabel":"number\u003cdouble> | null"},"multivector":{"oneOf":[{"type":"number","format":"double","description":"Token-level similarity score (higher is better, no fixed upper bound). Null when multi-vector scoring is disabled.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.multivector.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"Token-level similarity score (higher is better, no fixed upper bound). Null when multi-vector scoring is disabled.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.multivector.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.multivector","typeLabel":"number\u003cdouble> | null"},"relevance":{"oneOf":[{"type":"number","format":"double","description":"Relevance score (0–1, higher is better). Populated when relevance_scoring is \"scoring_only\" or \"scoring_and_filtering\". Null when relevance_scoring is \"none\" or when the scoring model is unavailable.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.relevance.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"Relevance score (0–1, higher is better). Populated when relevance_scoring is \"scoring_only\" or \"scoring_and_filtering\". Null when relevance_scoring is \"none\" or when the scoring model is unavailable.","isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.relevance.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores.relevance","typeLabel":"number\u003cdouble> | null"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].scoring.scores","typeLabel":"object"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].scoring","typeLabel":"object"},"workspace":{"oneOf":[{"type":"object","description":"Workspace the document belongs to. Null if the document has no workspace.","required":["id","name","workspace_type"],"properties":{"id":{"type":"integer","description":"Workspace ID","isRequired":true,"uniqueKey":"results.items.[INDEX].workspace.oneOf.0.id","typeLabel":"integer"},"name":{"type":"string","description":"Workspace name","isRequired":true,"uniqueKey":"results.items.[INDEX].workspace.oneOf.0.name","typeLabel":"string"},"workspace_type":{"type":"string","description":"Workspace type (shared or personal)","isRequired":true,"uniqueKey":"results.items.[INDEX].workspace.oneOf.0.workspace_type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].workspace.oneOf.0","typeLabel":"object"},{"type":"null","description":"Workspace the document belongs to. Null if the document has no workspace.","isRequired":true,"uniqueKey":"results.items.[INDEX].workspace.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].workspace","typeLabel":"object | null"},"document":{"type":"object","description":"Source document","required":["content_types","external_metadata","id","name","tags","total_pages","uploaded_at"],"properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].document.id","typeLabel":"integer"},"name":{"type":"string","readOnly":true,"description":"Document filename","isRequired":true,"uniqueKey":"results.items.[INDEX].document.name","typeLabel":"string"},"total_pages":{"type":"integer","readOnly":true,"description":"Total number of pages","isRequired":true,"uniqueKey":"results.items.[INDEX].document.total_pages","typeLabel":"integer"},"uploaded_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].document.uploaded_at","typeLabel":"string\u003cdate-time>"},"tags":{"type":"array","items":{"type":"object","description":"Serializer for tag items in file list response.","properties":{"id":{"type":"integer","description":"Tag ID","isRequired":true,"uniqueKey":"results.items.[INDEX].document.tags.items.[INDEX].id","typeLabel":"integer"},"name":{"type":"string","description":"Tag name","isRequired":true,"uniqueKey":"results.items.[INDEX].document.tags.items.[INDEX].name","typeLabel":"string"},"auto_assigned":{"type":"boolean","description":"True if this tag was automatically assigned by the system, False if manually assigned by a user","isRequired":true,"uniqueKey":"results.items.[INDEX].document.tags.items.[INDEX].auto_assigned","typeLabel":"boolean"}},"required":["auto_assigned","id","name"],"uniqueKey":"results.items.[INDEX].document.tags.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Tags associated with the document","isRequired":true,"uniqueKey":"results.items.[INDEX].document.tags","typeLabel":"object[]"},"external_metadata":{"oneOf":[{"type":"object","description":"External metadata, if any","required":["external_id"],"properties":{"external_id":{"type":"string","description":"External document ID","isRequired":true,"uniqueKey":"results.items.[INDEX].document.external_metadata.oneOf.0.external_id","typeLabel":"string"},"doc_type":{"type":"string","title":"External document type","maxLength":255,"uniqueKey":"results.items.[INDEX].document.external_metadata.oneOf.0.doc_type","typeLabel":"string"},"additional_metadata":{"oneOf":[{},{"type":"null","uniqueKey":"results.items.[INDEX].document.external_metadata.oneOf.0.additional_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].document.external_metadata.oneOf.0.additional_metadata","typeLabel":"null"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].document.external_metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"External metadata, if any","isRequired":true,"uniqueKey":"results.items.[INDEX].document.external_metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].document.external_metadata","typeLabel":"object | null"},"content_types":{"type":"array","items":{"type":"object","description":"OpenAPI schema for compact content type response (Tier 1 — list default).","properties":{"path":{"type":"string","description":"Colon-separated content type path (e.g. legal:contract:nda)","isRequired":true,"uniqueKey":"results.items.[INDEX].document.content_types.items.[INDEX].path","typeLabel":"string"},"label":{"type":"string","description":"User-readable label (leaf node)","isRequired":true,"uniqueKey":"results.items.[INDEX].document.content_types.items.[INDEX].label","typeLabel":"string"},"attribute_values":{"type":"object","additionalProperties":{"type":"object","description":"OpenAPI schema for a compact attribute value entry.","properties":{"value":{"description":"Attribute value (type depends on attribute definition)","isRequired":true,"uniqueKey":"results.items.[INDEX].document.content_types.items.[INDEX].attribute_values.additionalProperties.value","typeLabel":"any"},"type":{"type":"string","description":"Attribute type (text, number, date, boolean, select, multi_select)","isRequired":true,"uniqueKey":"results.items.[INDEX].document.content_types.items.[INDEX].attribute_values.additionalProperties.type","typeLabel":"string"},"label":{"type":"string","description":"User-readable attribute label (present when include_details=true)","uniqueKey":"results.items.[INDEX].document.content_types.items.[INDEX].attribute_values.additionalProperties.label","typeLabel":"string"}},"required":["type","value"],"uniqueKey":"results.items.[INDEX].document.content_types.items.[INDEX].attribute_values.additionalProperties","typeLabel":"object"},"description":"Map of attribute name to {value, type}. Only present when include_details=true.","uniqueKey":"results.items.[INDEX].document.content_types.items.[INDEX].attribute_values","typeLabel":"object"}},"required":["label","path"],"uniqueKey":"results.items.[INDEX].document.content_types.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Content type classifications and attribute values","isRequired":true,"uniqueKey":"results.items.[INDEX].document.content_types","typeLabel":"object[]"},"file_type":{"oneOf":[{"type":"string","maxLength":30,"uniqueKey":"results.items.[INDEX].document.file_type.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":30,"uniqueKey":"results.items.[INDEX].document.file_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].document.file_type","typeLabel":"string | null"},"status":{"enum":["pending","pending_conversion","converting","parsing","parsing_failed","embedding","embedding_failed","embedded","parsed","fail","updating"],"type":"string","description":"* `pending` - Pending\n* `pending_conversion` - Pending Conversion\n* `converting` - Converting\n* `parsing` - Parsing\n* `parsing_failed` - Parsing Failed\n* `embedding` - Embedding\n* `embedding_failed` - Embedding Failed\n* `embedded` - Embedded\n* `parsed` - Parsed\n* `fail` - Fail\n* `updating` - Updating","uniqueKey":"results.items.[INDEX].document.status","typeLabel":"enum\u003cstring>"},"title":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"results.items.[INDEX].document.title.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"results.items.[INDEX].document.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].document.title","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].document","typeLabel":"object"},"corresponding_image":{"type":"object","description":"Page image (present when include_image=true)","required":["b64_content"],"properties":{"b64_content":{"type":"string","description":"Base64-encoded page image. Empty string when the image is unavailable.","isRequired":true,"uniqueKey":"results.items.[INDEX].corresponding_image.b64_content","typeLabel":"string"}},"uniqueKey":"results.items.[INDEX].corresponding_image","typeLabel":"object"}},"required":["chunk","document","scoring","workspace"],"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"description":"Retrieved chunks with context, ordered by score descending.","isRequired":true,"uniqueKey":"results","typeLabel":"object[]"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Signal name from the scores object that degraded (e.g. 'relevance').","isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"string"},"reason":{"type":"string","description":"Machine-readable failure reason (model_not_found, timeout, service_error, unknown).","uniqueKey":"warnings.items.[INDEX].reason","typeLabel":"string"}},"required":["code"],"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"description":"Present only when a pipeline signal degrades. Absent in the happy path.","uniqueKey":"warnings","typeLabel":"object[]"}},"required":["query","results","retrieve_params","scoping_params"],"uniqueKey":"","typeLabel":"object"},"examples":{"TextModeResult—WithRerankingAndFacetScoping":{"title":"TextModeResult—WithRerankingAndFacetScoping","description":"Retrieval with reranking applied (relevance_scoring=\"scoring_and_filtering\", default) and facet filters. score equals scores.relevance (relevance score). Document includes compact content_types with attribute values.","value":{"query":"indemnification clause","retrieve_params":{"mode":"text","top_k":20,"relevance_scoring":"scoring_and_filtering","skip_rerank":false,"include_image":false,"explain":false},"scoping_params":{"file_id":[],"tag_id":[],"workspace_id":[42],"content_type":["legal:contract"],"attribute":["jurisdiction:FR"]},"results":[{"chunk":{"id":1024,"uuid":"550e8400-e29b-41d4-a716-446655440000","content_id":"content_id_550e8400-e29b-41d4-a716-446655440000","text":"The indemnifying party shall hold harmless and indemnify the other party...","chunk_type":"text","metadata":{"pages":"3-4","total_pages":12,"title":"Customer NDA — Nimbus Labs","source":"customer-nda.pdf","parser":"v2.2.1","folder_name":"legal/customers","coords":"3,72.0,120.0,450.0,18.0;4,72.0,80.0,450.0,18.0","previous":"550e8400-e29b-41d4-a716-446655440002","next":"550e8400-e29b-41d4-a716-446655440004","overlapping":"","token_length":412},"created_at":"2025-11-01T09:00:00Z","updated_at":"2025-11-01T09:00:00Z"},"scoring":{"score":0.95,"scores":{"text":0.92,"vision":0.12,"keyword":0.74,"multivector":0.81,"relevance":0.95}},"workspace":{"id":42,"name":"Legal Team","workspace_type":"custom"},"document":{"id":512,"name":"customer-nda.pdf","file_type":"pdf","status":"embedded","total_pages":12,"uploaded_at":"2025-10-30T08:00:00Z","title":"Customer NDA — Nimbus Labs","tags":[{"id":7,"name":"confidential","auto_assigned":true}],"external_metadata":{"external_id":"legal-doc-456789","doc_type":"nda","additional_metadata":{"external_url":"https://contracts.example.com/legal/customer-nda"}},"content_types":[{"path":"legal:contract:nda","label":"Non-Disclosure Agreement","attribute_values":{"jurisdiction":{"value":["FR","US"],"type":"multi-select"},"is_mutual":{"value":true,"type":"boolean"},"counterparty":{"value":"Nimbus Labs","type":"text"}}}]}}]}},"TextModeResult—RawRetrieval":{"title":"TextModeResult—RawRetrieval","description":"Raw retrieval without reranking (relevance_scoring=\"none\"). score is the combined retrieval score (higher is better, no fixed upper bound). scores.relevance is null.","value":{"query":"JWT authentication","retrieve_params":{"mode":"text","top_k":20,"relevance_scoring":"none","skip_rerank":true,"include_image":false,"explain":false},"scoping_params":{"file_id":[],"tag_id":[],"workspace_id":[],"content_type":[],"attribute":[]},"results":[{"chunk":{"id":1024,"uuid":"550e8400-e29b-41d4-a716-446655440000","content_id":"content_id_550e8400-e29b-41d4-a716-446655440000","text":"JWT tokens are signed using RS256 and expire after 1 hour.","chunk_type":"text","metadata":{"pages":"3","total_pages":12,"title":"Authentication System Design","source":"auth-system.pdf","parser":"v2.2.1","folder_name":"engineering/security","coords":"3,72.0,120.0,450.0,18.0","previous":"","next":"550e8400-e29b-41d4-a716-446655440002","overlapping":"","token_length":380},"created_at":"2025-11-01T09:00:00Z","updated_at":"2025-11-01T09:00:00Z"},"scoring":{"score":1.65,"scores":{"text":0.92,"vision":0.12,"keyword":0.74,"multivector":0.81,"relevance":null}},"workspace":{"id":42,"name":"Engineering Docs","workspace_type":"custom"},"document":{"id":512,"name":"auth-system.pdf","file_type":"pdf","status":"embedded","total_pages":12,"uploaded_at":"2025-10-30T08:00:00Z","title":"Authentication System Design","tags":[{"id":7,"name":"security","auto_assigned":false}],"external_metadata":null,"content_types":[]}}]}},"VisionModeResult":{"title":"VisionModeResult","description":"Vision chunk result with base64-encoded image.","value":{"query":"architecture diagram","retrieve_params":{"mode":"vision","top_k":20,"relevance_scoring":"scoring_and_filtering","skip_rerank":false,"include_image":true,"explain":false},"scoping_params":{"file_id":[],"tag_id":[],"workspace_id":[],"content_type":[],"attribute":[]},"results":[{"chunk":{"id":2048,"uuid":"661f9511-f3ac-52e5-b827-557766551111","metadata":{"pages":"4","total_pages":20,"title":"Infrastructure Overview","source":"infra-overview.pdf","parser":"vision","folder_name":"","coords":null,"previous":"","next":"","overlapping":"","token_length":null},"created_at":"2025-11-02T10:00:00Z","updated_at":"2025-11-02T10:00:00Z"},"scoring":{"score":0.88,"scores":{"text":null,"vision":0.85,"keyword":null,"multivector":null,"relevance":0.88}},"workspace":{"id":42,"name":"Engineering Docs","workspace_type":"custom"},"document":{"id":513,"name":"infra-overview.pdf","file_type":"pdf","status":"embedded","total_pages":20,"uploaded_at":"2025-10-31T08:00:00Z","title":"Infrastructure Overview","tags":[],"external_metadata":null,"content_types":[]},"corresponding_image":{"b64_content":"iVBORw0KGgo..."}}]}},"TextModeResult—WithIncludeDetails":{"title":"TextModeResult—WithIncludeDetails","description":"Response when include_details=true. Content types gain code, structured breadcrumb (ancestor chain), and expanded attribute_values with full attribute definitions (name, label, type, required, choices).","value":{"query":"compliance requirements","retrieve_params":{"mode":"text","top_k":20,"relevance_scoring":"scoring_and_filtering","skip_rerank":false,"include_image":false,"explain":false},"scoping_params":{"file_id":[],"tag_id":[],"workspace_id":[],"content_type":["legal"],"attribute":[]},"results":[{"chunk":{"id":2050,"uuid":"771fa622-g4bd-63f6-c938-668877662222","content_id":"content_id_771fa622-g4bd-63f6-c938-668877662222","text":"All data processing must comply with GDPR Article 28...","chunk_type":"text","metadata":{"pages":"5","total_pages":18,"title":"GDPR Compliance Policy","source":"gdpr-compliance-policy.pdf","parser":"v2.2.1","folder_name":"legal/compliance","coords":"5,72.0,420.0,450.0,18.0","previous":"771fa622-g4bd-63f6-c938-668877662221","next":"771fa622-g4bd-63f6-c938-668877662223","overlapping":"","token_length":295},"created_at":"2025-11-03T11:00:00Z","updated_at":"2025-11-03T11:00:00Z"},"scoring":{"score":0.91,"scores":{"text":0.88,"vision":null,"keyword":0.69,"multivector":null,"relevance":0.91}},"workspace":{"id":3,"name":"Legal Team","workspace_type":"custom"},"document":{"id":514,"name":"gdpr-compliance-policy.pdf","file_type":"pdf","status":"embedded","total_pages":18,"uploaded_at":"2025-11-01T08:00:00Z","title":"GDPR Compliance Policy","tags":[{"id":15,"name":"compliance","auto_assigned":false}],"external_metadata":null,"content_types":[{"code":"compliance","path":"legal:compliance","label":"Compliance","breadcrumb":[{"code":"legal","path":"legal","label":"Legal"},{"code":"compliance","path":"legal:compliance","label":"Compliance"}],"attribute_values":{"regulation":{"value":["GDPR"],"type":"multi-select","attribute":{"name":"regulation","label":"Regulation","type":"multi-select","required":false,"choices":["GDPR","SOX","HIPAA","AML","KYC"]}},"jurisdiction":{"value":["FR","DE"],"type":"multi-select","attribute":{"name":"jurisdiction","label":"Jurisdiction","type":"multi-select","required":false,"choices":["FR","US","UK","DE","CH"]}}}}]}}]}},"TextModeResult—RerankerUnavailable":{"title":"TextModeResult—RerankerUnavailable","description":"Reranker failed; results returned in retrieval order. score falls back to the combined retrieval score (no fixed upper bound) and scores.relevance is null. The warnings array identifies the degraded signal and failure reason.","value":{"query":"authentication system JWT tokens","retrieve_params":{"mode":"text","top_k":20,"relevance_scoring":"scoring_and_filtering","skip_rerank":false,"include_image":false,"explain":false},"scoping_params":{"file_id":[],"tag_id":[],"workspace_id":[42],"content_type":[],"attribute":[]},"results":[{"chunk":{"id":1024,"uuid":"550e8400-e29b-41d4-a716-446655440000","content_id":"content_id_550e8400-e29b-41d4-a716-446655440000","text":"JWT tokens are signed using RS256 and expire after 1 hour.","chunk_type":"text","metadata":{"pages":"3","total_pages":12,"title":"Authentication System Design","source":"auth-system.pdf","parser":"v2.2.1","folder_name":"","coords":"3,72.0,120.0,450.0,18.0","previous":"","next":"","overlapping":"","token_length":380},"created_at":"2025-11-01T09:00:00Z","updated_at":"2025-11-01T09:00:00Z"},"scoring":{"score":1.65,"scores":{"text":0.92,"vision":null,"keyword":0.74,"multivector":0.81,"relevance":null}},"workspace":{"id":42,"name":"Engineering Docs","workspace_type":"custom"},"document":{"id":512,"name":"auth-system.pdf","file_type":"pdf","status":"embedded","total_pages":12,"uploaded_at":"2025-10-30T08:00:00Z","title":"Authentication System Design","tags":[],"external_metadata":null,"content_types":[]}}],"warnings":[{"code":"relevance","reason":"model_not_found"}]}},"NoMatchingDocuments":{"title":"NoMatchingDocuments","description":"Query returned no results — empty array with HTTP 200. Full envelope is always present.","value":{"query":"quantum computing patents","retrieve_params":{"mode":"text","top_k":20,"relevance_scoring":"scoring_and_filtering","skip_rerank":false,"include_image":false,"explain":false},"scoping_params":{"file_id":[],"tag_id":[],"workspace_id":[],"content_type":[],"attribute":[]},"results":[]}}},"exampleType":"examples"}},"description":"Chunks retrieved successfully. Empty array if no documents match.","exampleType":"examples"},"eea65c49-5331-47cf-9b4f-9d6b6bc813a4":{"description":"A public dataset workspace was combined with other scope filters.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"00ab0971-9cac-41d2-8cf4-53fdbfd0c8d8":{"description":"Authentication credentials were not provided or are invalid.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"5aa9e602-9952-426b-b537-b48015e2347e":{"description":"A provided filter (workspace_id, file_id, or tag_id) does not exist or the user is not authorized to access it.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"9df6e2f4-bf7b-476d-a433-2cd545c29645":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"id","typeLabel":"string | null"},"code":{"type":"integer","description":"HTTP status code","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"error":{"type":"string","description":"Error code used by the UI as a translation key","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error message for developers","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"doc_url":{"type":"string","description":"Link to the error-code documentation page","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"error":{"type":"string","description":"Error code / translation key","isRequired":true,"uniqueKey":"fields.additionalProperties.items.[INDEX].error","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable description of the field error","isRequired":true,"uniqueKey":"fields.additionalProperties.items.[INDEX].detail","typeLabel":"string"}},"required":["detail","error"],"uniqueKey":"fields.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"fields.additionalProperties","typeLabel":"object[]"},"description":"Field-level validation errors keyed by field name","uniqueKey":"fields","typeLabel":"object"}},"required":["code","detail","doc_url","error","id"],"uniqueKey":"","typeLabel":"object"},"examples":{"ValidationError":{"title":"ValidationError","value":{"id":null,"code":422,"error":"validation_error","detail":"One or more fields failed validation.","doc_url":"https://developers.lighton.ai/errors#validation_error","fields":{"\u003cfield_name>":[{"error":"required","detail":"This field is required."}]}}}},"exampleType":"examples"}},"description":"Request body is valid JSON but one or more fields failed validation","exampleType":"examples"},"51e8a2b3-f3c2-4905-ba41-efd0c2a72cd1":{"description":"Rate limit exceeded.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"8c785fba-1a63-4336-b316-3fb1e0e9d82b":{"description":"API is under maintenance. Check `GET /api/v3/system/status` for active periods and retry.","content":{"application/json":{"schema":{"type":"object","description":"Returned by the maintenance middleware when the requested endpoint is blocked.","required":["detail","error","mode"],"properties":{"detail":{"type":"string","example":"System is under maintenance.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"error":{"type":"string","example":"service_maintenance","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"mode":{"type":"string","enum":["full_shutdown","warning_banner"],"description":"`full_shutdown` blocks all traffic; `warning_banner` also blocks and shows a dismissible toast.","isRequired":true,"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"Operator-supplied maintenance reason, if any.","uniqueKey":"reason","typeLabel":"string"},"started_at":{"type":"string","format":"date-time","uniqueKey":"started_at","typeLabel":"string\u003cdate-time>"},"endpoint_category_names":{"type":"array","items":{"type":"string","uniqueKey":"endpoint_category_names.items.[INDEX]","typeLabel":"string"},"description":"Non-empty only for category-scoped periods. Empty means all endpoints are affected.","uniqueKey":"endpoint_category_names","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"System is under maintenance.","error":"service_maintenance","mode":"full_shutdown","reason":"\u003cstring>","started_at":"2023-11-07T05:31:56Z","endpoint_category_names":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"857bd745-f6a2-4cf2-b9a2-680325071670":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","scopes":[]}}},"servers":{"69d5615d-8fb4-4735-9538-65c54dbb8d3b":{"url":"https://paradigm.lighton.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi-v3.yaml"},"subdomain":"lighton","siteName":"LightOn Documentation","title":"Retrieve document chunks - LightOn Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-27T15:46:16.852Z","originalFileLocation":"api-reference-v3/files-processing/retrieve-document-chunks.mdx","locale":"en"},"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=\"Deprecated: Use the v3 search endpoint instead. Invoke the document retrieval pipeline (embedding + hybrid vector search + reranking) and return matched document chunks. Relevance scoring (relevance_scoring): controls the relevance scoring stage. - scoring_and_filtering (default): Score candidates for relevance and only return those above the quality threshold. When no candidate clears the threshold, the few best-scoring candidates are returned instead of an empty result; their scores.relevance is then below the usual threshold. - scoring_only: Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic. - none: Skip the relevance scoring step and return all candidates unfiltered. Fastest option, useful when you handle scoring yourself. Omit relevance_scoring for the default; send none to skip scoring. skip_rerank is deprecated — true maps to relevance_scoring=none, false to scoring_and_filtering. relevance_scoring wins if both are sent. Result ordering: results are returned in descending order of score. With scoring_and_filtering or scoring_only, score equals the relevance score (scores.relevance, 0–1). With none, score is the combined retrieval score (higher is better, no fixed upper bound). If the scoring model is temporarily unavailable, results are returned in retrieval order and a warnings array is included. Each warning has a code matching the degraded scores key (e.g. relevance) and a reason classifying the failure: model_not_found, timeout, service_error, or unknown. The warnings key is absent when all pipeline steps succeed. Scoping: use workspace_id and/or tag_id to narrow retrieval to specific workspaces or tags, or use file_id to target specific files. file_id cannot be combined with workspace_id or tag_id. A 403 is returned if any provided filter resolves to no authorized resources. When no filters are provided, retrieval runs across all authorized documents. Public datasets: a public dataset workspace must be the only workspace in the request — combining it with any other workspace_id, file_id, or tag_id returns 400. Public datasets are reachable only through a workspace-scoped API key whose scope includes the workspace, and only for companies allowed to access them; otherwise the result is empty. Facet filtering: use content_type and/or attribute to narrow retrieval by document metadata. These can be combined with workspace/tag scoping. Content type uses colon-separated paths (e.g. legal:contract:nda). Attributes support operators, OR, and content-type scoping. Modes: - text (default): hybrid text search - vision: image-based search Explain mode: set explain=true to receive a per-chunk scoring breakdown in the response (raw scores, normalized scores, fusion weights, filter stats, timing). Requires the SEARCH_EXPLAIN_MODE feature flag to be enabled.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LightOn Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Retrieve document chunks - LightOn Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Deprecated: Use the v3 search endpoint instead. Invoke the document retrieval pipeline (embedding + hybrid vector search + reranking) and return matched document chunks. Relevance scoring (relevance_scoring): controls the relevance scoring stage. - scoring_and_filtering (default): Score candidates for relevance and only return those above the quality threshold. When no candidate clears the threshold, the few best-scoring candidates are returned instead of an empty result; their scores.relevance is then below the usual threshold. - scoring_only: Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic. - none: Skip the relevance scoring step and return all candidates unfiltered. Fastest option, useful when you handle scoring yourself. Omit relevance_scoring for the default; send none to skip scoring. skip_rerank is deprecated — true maps to relevance_scoring=none, false to scoring_and_filtering. relevance_scoring wins if both are sent. Result ordering: results are returned in descending order of score. With scoring_and_filtering or scoring_only, score equals the relevance score (scores.relevance, 0–1). With none, score is the combined retrieval score (higher is better, no fixed upper bound). If the scoring model is temporarily unavailable, results are returned in retrieval order and a warnings array is included. Each warning has a code matching the degraded scores key (e.g. relevance) and a reason classifying the failure: model_not_found, timeout, service_error, or unknown. The warnings key is absent when all pipeline steps succeed. Scoping: use workspace_id and/or tag_id to narrow retrieval to specific workspaces or tags, or use file_id to target specific files. file_id cannot be combined with workspace_id or tag_id. A 403 is returned if any provided filter resolves to no authorized resources. When no filters are provided, retrieval runs across all authorized documents. Public datasets: a public dataset workspace must be the only workspace in the request — combining it with any other workspace_id, file_id, or tag_id returns 400. Public datasets are reachable only through a workspace-scoped API key whose scope includes the workspace, and only for companies allowed to access them; otherwise the result is empty. Facet filtering: use content_type and/or attribute to narrow retrieval by document metadata. These can be combined with workspace/tag scoping. Content type uses colon-separated paths (e.g. legal:contract:nda). Attributes support operators, OR, and content-type scoping. Modes: - text (default): hybrid text search - vision: image-based search Explain mode: set explain=true to receive a per-chunk scoring breakdown in the response (raw scores, normalized scores, fusion weights, filter stats, timing). Requires the SEARCH_EXPLAIN_MODE feature flag to be enabled.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LightOn Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lighton.mintlify.site/_mintlify/api/og/v2?division=Files+Processing\u0026amp;title=Retrieve+document+chunks\u0026amp;description=**Deprecated%3A+Use+the+v3+search+endpoint+instead.**%0A%0AInvoke+the+document+retrieval+pipeline+%28embedding+%2B+hybrid+vector+search+%2B+reranking%29%0Aand+return+matched+do\u0026amp;theme=c2dfe52c786e55dfc1e1ba88\u0026amp;signature=461ba34eee4901f2b7126a47ef04759d5ee788afdf0f76822aaa4fd5232d211c\">\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=\"Retrieve document chunks - LightOn Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Deprecated: Use the v3 search endpoint instead. Invoke the document retrieval pipeline (embedding + hybrid vector search + reranking) and return matched document chunks. Relevance scoring (relevance_scoring): controls the relevance scoring stage. - scoring_and_filtering (default): Score candidates for relevance and only return those above the quality threshold. When no candidate clears the threshold, the few best-scoring candidates are returned instead of an empty result; their scores.relevance is then below the usual threshold. - scoring_only: Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic. - none: Skip the relevance scoring step and return all candidates unfiltered. Fastest option, useful when you handle scoring yourself. Omit relevance_scoring for the default; send none to skip scoring. skip_rerank is deprecated — true maps to relevance_scoring=none, false to scoring_and_filtering. relevance_scoring wins if both are sent. Result ordering: results are returned in descending order of score. With scoring_and_filtering or scoring_only, score equals the relevance score (scores.relevance, 0–1). With none, score is the combined retrieval score (higher is better, no fixed upper bound). If the scoring model is temporarily unavailable, results are returned in retrieval order and a warnings array is included. Each warning has a code matching the degraded scores key (e.g. relevance) and a reason classifying the failure: model_not_found, timeout, service_error, or unknown. The warnings key is absent when all pipeline steps succeed. Scoping: use workspace_id and/or tag_id to narrow retrieval to specific workspaces or tags, or use file_id to target specific files. file_id cannot be combined with workspace_id or tag_id. A 403 is returned if any provided filter resolves to no authorized resources. When no filters are provided, retrieval runs across all authorized documents. Public datasets: a public dataset workspace must be the only workspace in the request — combining it with any other workspace_id, file_id, or tag_id returns 400. Public datasets are reachable only through a workspace-scoped API key whose scope includes the workspace, and only for companies allowed to access them; otherwise the result is empty. Facet filtering: use content_type and/or attribute to narrow retrieval by document metadata. These can be combined with workspace/tag scoping. Content type uses colon-separated paths (e.g. legal:contract:nda). Attributes support operators, OR, and content-type scoping. Modes: - text (default): hybrid text search - vision: image-based search Explain mode: set explain=true to receive a per-chunk scoring breakdown in the response (raw scores, normalized scores, fusion weights, filter stats, timing). Requires the SEARCH_EXPLAIN_MODE feature flag to be enabled.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lighton.mintlify.site/_mintlify/api/og/v2?division=Files+Processing\u0026amp;title=Retrieve+document+chunks\u0026amp;description=**Deprecated%3A+Use+the+v3+search+endpoint+instead.**%0A%0AInvoke+the+document+retrieval+pipeline+%28embedding+%2B+hybrid+vector+search+%2B+reranking%29%0Aand+return+matched+do\u0026amp;theme=c2dfe52c786e55dfc1e1ba88\u0026amp;signature=461ba34eee4901f2b7126a47ef04759d5ee788afdf0f76822aaa4fd5232d211c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lighton/4b4Za0QFn-EFN1Xy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LightOn Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1f99bb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference-v3/files-processing/retrieve-document-chunks.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lighton.ai/#organization\",\"name\":\"LightOn Documentation\",\"url\":\"https://docs.lighton.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lighton/4YZaBTswRauXH9au/logo/lighton_light.svg?fit=max\u0026auto=format\u0026n=4YZaBTswRauXH9au\u0026q=85\u0026s=a6b78d917b942911d41874e815c9479f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lighton.ai#website\",\"name\":\"LightOn Documentation\",\"url\":\"https://docs.lighton.ai\",\"publisher\":{\"@id\":\"https://docs.lighton.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks#webpage\",\"url\":\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks\",\"name\":\"Retrieve document chunks\",\"description\":\"Deprecated: Use the v3 search endpoint instead. Invoke the document retrieval pipeline (embedding + hybrid vector search + reranking) and return matched document chunks. Relevance scoring (relevance_scoring): controls the relevance scoring stage. - scoring_and_filtering (default): Score candidates for relevance and only return those above the quality threshold. When no candidate clears the threshold, the few best-scoring candidates are returned instead of an empty result; their scores.relevance is then below the usual threshold. - scoring_only: Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic. - none: Skip the relevance scoring step and return all candidates unfiltered. Fastest option, useful when you handle scoring yourself. Omit relevance_scoring for the default; send none to skip scoring. skip_rerank is deprecated — true maps to relevance_scoring=none, false to scoring_and_filtering. relevance_scoring wins if both are sent. Result ordering: results are returned in descending order of score. With scoring_and_filtering or scoring_only, score equals the relevance score (scores.relevance, 0–1). With none, score is the combined retrieval score (higher is better, no fixed upper bound). If the scoring model is temporarily unavailable, results are returned in retrieval order and a warnings array is included. Each warning has a code matching the degraded scores key (e.g. relevance) and a reason classifying the failure: model_not_found, timeout, service_error, or unknown. The warnings key is absent when all pipeline steps succeed. Scoping: use workspace_id and/or tag_id to narrow retrieval to specific workspaces or tags, or use file_id to target specific files. file_id cannot be combined with workspace_id or tag_id. A 403 is returned if any provided filter resolves to no authorized resources. When no filters are provided, retrieval runs across all authorized documents. Public datasets: a public dataset workspace must be the only workspace in the request — combining it with any other workspace_id, file_id, or tag_id returns 400. Public datasets are reachable only through a workspace-scoped API key whose scope includes the workspace, and only for companies allowed to access them; otherwise the result is empty. Facet filtering: use content_type and/or attribute to narrow retrieval by document metadata. These can be combined with workspace/tag scoping. Content type uses colon-separated paths (e.g. legal:contract:nda). Attributes support operators, OR, and content-type scoping. Modes: - text (default): hybrid text search - vision: image-based search Explain mode: set explain=true to receive a per-chunk scoring breakdown in the response (raw scores, normalized scores, fusion weights, filter stats, timing). Requires the SEARCH_EXPLAIN_MODE feature flag to be enabled.\",\"dateModified\":\"2026-08-27T15:46:16.852Z\",\"isPartOf\":{\"@id\":\"https://docs.lighton.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Files Processing\",\"item\":\"https://docs.lighton.ai/api-reference-v3/files-processing/ask-a-question-over-your-documents\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Retrieve document chunks\",\"item\":\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks#apireference\",\"headline\":\"Retrieve document chunks\",\"name\":\"Retrieve document chunks\",\"description\":\"Deprecated: Use the v3 search endpoint instead. Invoke the document retrieval pipeline (embedding + hybrid vector search + reranking) and return matched document chunks. Relevance scoring (relevance_scoring): controls the relevance scoring stage. - scoring_and_filtering (default): Score candidates for relevance and only return those above the quality threshold. When no candidate clears the threshold, the few best-scoring candidates are returned instead of an empty result; their scores.relevance is then below the usual threshold. - scoring_only: Score every candidate for relevance but return them all, even low-scoring ones. Useful for building your own filtering logic. - none: Skip the relevance scoring step and return all candidates unfiltered. Fastest option, useful when you handle scoring yourself. Omit relevance_scoring for the default; send none to skip scoring. skip_rerank is deprecated — true maps to relevance_scoring=none, false to scoring_and_filtering. relevance_scoring wins if both are sent. Result ordering: results are returned in descending order of score. With scoring_and_filtering or scoring_only, score equals the relevance score (scores.relevance, 0–1). With none, score is the combined retrieval score (higher is better, no fixed upper bound). If the scoring model is temporarily unavailable, results are returned in retrieval order and a warnings array is included. Each warning has a code matching the degraded scores key (e.g. relevance) and a reason classifying the failure: model_not_found, timeout, service_error, or unknown. The warnings key is absent when all pipeline steps succeed. Scoping: use workspace_id and/or tag_id to narrow retrieval to specific workspaces or tags, or use file_id to target specific files. file_id cannot be combined with workspace_id or tag_id. A 403 is returned if any provided filter resolves to no authorized resources. When no filters are provided, retrieval runs across all authorized documents. Public datasets: a public dataset workspace must be the only workspace in the request — combining it with any other workspace_id, file_id, or tag_id returns 400. Public datasets are reachable only through a workspace-scoped API key whose scope includes the workspace, and only for companies allowed to access them; otherwise the result is empty. Facet filtering: use content_type and/or attribute to narrow retrieval by document metadata. These can be combined with workspace/tag scoping. Content type uses colon-separated paths (e.g. legal:contract:nda). Attributes support operators, OR, and content-type scoping. Modes: - text (default): hybrid text search - vision: image-based search Explain mode: set explain=true to receive a per-chunk scoring breakdown in the response (raw scores, normalized scores, fusion weights, filter stats, timing). Requires the SEARCH_EXPLAIN_MODE feature flag to be enabled.\",\"url\":\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lighton.ai/api-reference-v3/files-processing/retrieve-document-chunks#webpage\"},\"dateModified\":\"2026-08-27T15:46:16.852Z\",\"publisher\":{\"@id\":\"https://docs.lighton.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lighton.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LightOn Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"LightOn Documentation","nav":{"global":null,"languages":[{"language":"en","products":[{"product":"Paradigm Platform","icon":"browser","description":"General documentation on the Paradigm Platform.","pages":[{"title":"Paradigm Platform","href":"/en"}]},{"product":"Paradigm API","icon":"code-simple","description":"Dedicated documentation on the Paradigm API.","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/en/developer-resources/api-fundamentals/quick-guide"}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/en/use-cases/ads"}]},{"tab":"API References","dropdowns":[{"dropdown":"API V3","icon":"square-terminal","groups":[{"group":"Budget","pages":[{"title":"Get company budget","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/billing/budget","href":"/api-reference-v3/budget/get-company-budget"},{"title":"Create or update company budget","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/billing/budget","href":"/api-reference-v3/budget/create-or-update-company-budget"},{"title":"Delete company budget","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/billing/budget","href":"/api-reference-v3/budget/delete-company-budget"},{"title":"List budget alerts","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/billing/budget/alerts","href":"/api-reference-v3/budget/list-budget-alerts"},{"title":"Create budget alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/billing/budget/alerts","href":"/api-reference-v3/budget/create-budget-alert"},{"title":"Toggle all budget alerts","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/billing/budget/alerts","href":"/api-reference-v3/budget/toggle-all-budget-alerts"},{"title":"Delete budget alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/billing/budget/alerts/{id}","href":"/api-reference-v3/budget/delete-budget-alert"},{"title":"Update budget alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/billing/budget/alerts/{id}","href":"/api-reference-v3/budget/update-budget-alert"}]},{"group":"Usage","pages":[{"title":"Company free-tier credits","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/credits","href":"/api-reference-v3/usage/company-free-tier-credits"},{"title":"Company storage usage","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/storage","href":"/api-reference-v3/usage/company-storage-usage"},{"title":"Get month-to-date storage cost","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/storage/cost","href":"/api-reference-v3/usage/get-month-to-date-storage-cost"},{"title":"Get 30-day usage histogram for the authenticated user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/usage","href":"/api-reference-v3/usage/get-30-day-usage-histogram-for-the-authenticated-user"},{"title":"Get spend for the open billing period","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/usage/current-period","href":"/api-reference-v3/usage/get-spend-for-the-open-billing-period"}]},{"group":"System","pages":[{"title":"System status","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/system/status","href":"/api-reference-v3/system/system-status"}]},{"group":"Agents","pages":[{"title":"List all agents","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents","href":"/api-reference-v3/agents/list-all-agents"},{"title":"Create a new agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/agents","href":"/api-reference-v3/agents/create-a-new-agent"},{"title":"List agent favorites","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/favorites","href":"/api-reference-v3/agents/list-agent-favorites"},{"title":"Create agent favorite","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/agents/favorites","href":"/api-reference-v3/agents/create-agent-favorite"},{"title":"Delete agent favorite by agent id","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/agents/favorites","href":"/api-reference-v3/agents/delete-agent-favorite-by-agent-id"},{"title":"Delete agent favorite","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/agents/favorites/{id}","href":"/api-reference-v3/agents/delete-agent-favorite"},{"title":"Retrieve a single agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}","href":"/api-reference-v3/agents/retrieve-a-single-agent"},{"title":"Delete an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/agents/{id}","href":"/api-reference-v3/agents/delete-an-agent"},{"title":"Update an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/agents/{id}","href":"/api-reference-v3/agents/update-an-agent"},{"title":"List files scoped to an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}/files","href":"/api-reference-v3/agents/list-files-scoped-to-an-agent"},{"title":"Get agent icon","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}/icon","href":"/api-reference-v3/agents/get-agent-icon"},{"title":"Upload agent icon","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/agents/{id}/icon","href":"/api-reference-v3/agents/upload-agent-icon"},{"title":"List tags used in workspaces for an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}/tags","href":"/api-reference-v3/agents/list-tags-used-in-workspaces-for-an-agent"},{"title":"List native tools and MCP servers available for a specific agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}/tools","href":"/api-reference-v3/agents/list-native-tools-and-mcp-servers-available-for-a-specific-agent"}]},{"group":"Threads","pages":[{"title":"List conversation threads","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads","href":"/api-reference-v3/threads/list-conversation-threads"},{"title":"Create a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/threads","href":"/api-reference-v3/threads/create-a-conversation-thread"},{"title":"Create a conversation thread with initial turn","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/threads/turns","href":"/api-reference-v3/threads/create-a-conversation-thread-with-initial-turn"},{"title":"Retrieve a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads/{id}","href":"/api-reference-v3/threads/retrieve-a-conversation-thread"},{"title":"Delete a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/threads/{id}","href":"/api-reference-v3/threads/delete-a-conversation-thread"},{"title":"Update a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/threads/{id}","href":"/api-reference-v3/threads/update-a-conversation-thread"},{"title":"Resume a turn generation","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads/{id}/resume","href":"/api-reference-v3/threads/resume-a-turn-generation"},{"title":"Get suggested queries for a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads/{id}/suggested_queries","href":"/api-reference-v3/threads/get-suggested-queries-for-a-conversation-thread"},{"title":"List conversation turns in a thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads/{id}/turns","href":"/api-reference-v3/threads/list-conversation-turns-in-a-thread"},{"title":"Create a conversation turn in a thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/threads/{id}/turns","href":"/api-reference-v3/threads/create-a-conversation-turn-in-a-thread"},{"title":"Update a conversation turn in a thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/threads/{id}/turns/{turn_id}","href":"/api-reference-v3/threads/update-a-conversation-turn-in-a-thread"}]},{"group":"Tools","pages":[{"title":"List native tools","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/tools","href":"/api-reference-v3/tools/list-native-tools"}]},{"group":"Models","pages":[{"title":"List aliases","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/aliases","href":"/api-reference-v3/models/list-aliases"},{"title":"Create alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/aliases","href":"/api-reference-v3/models/create-alias"},{"title":"Get alias details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/aliases/{id}","href":"/api-reference-v3/models/get-alias-details"},{"title":"Delete alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/aliases/{id}","href":"/api-reference-v3/models/delete-alias"},{"title":"Update alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/aliases/{id}","href":"/api-reference-v3/models/update-alias"},{"title":"Add model to alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/aliases/{id}/models","href":"/api-reference-v3/models/add-model-to-alias"},{"title":"Remove model from alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/aliases/{id}/models/{uuid}","href":"/api-reference-v3/models/remove-model-from-alias"},{"title":"Update model priority in alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/aliases/{id}/models/{uuid}","href":"/api-reference-v3/models/update-model-priority-in-alias"},{"title":"Preview alias routing","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/aliases/{id}/route","href":"/api-reference-v3/models/preview-alias-routing"},{"title":"Generate a chat completion","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/chat/completions","href":"/api-reference-v3/models/generate-a-chat-completion"},{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/embeddings","href":"/api-reference-v3/models/create-embeddings"},{"title":"List external API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/external_keys","href":"/api-reference-v3/models/list-external-api-keys"},{"title":"Set personal external API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/external_keys/{provider}","href":"/api-reference-v3/models/set-personal-external-api-key"},{"title":"Deactivate personal external API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/external_keys/{provider}","href":"/api-reference-v3/models/deactivate-personal-external-api-key"},{"title":"Extract structured data from a document","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/extract","href":"/api-reference-v3/models/extract-structured-data-from-a-document"},{"title":"Get the status and result of an async extract job","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/extract/{job_id}","href":"/api-reference-v3/models/get-the-status-and-result-of-an-async-extract-job"},{"title":"Parse a document to Markdown via VLM","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/ocr","href":"/api-reference-v3/models/parse-a-document-to-markdown-via-vlm"},{"title":"Parse a document to Markdown","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/parse","href":"/api-reference-v3/models/parse-a-document-to-markdown"},{"title":"Get the status and result of an async parse job","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/parse/{id}","href":"/api-reference-v3/models/get-the-status-and-result-of-an-async-parse-job"},{"title":"Render a document as PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/preview","href":"/api-reference-v3/models/render-a-document-as-pdf"}]},{"group":"MCP","pages":[{"title":"List MCP servers","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/mcp","href":"/api-reference-v3/mcp/list-mcp-servers"},{"title":"Create MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/mcp","href":"/api-reference-v3/mcp/create-mcp-server"},{"title":"Get MCP server details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/mcp/{id}","href":"/api-reference-v3/mcp/get-mcp-server-details"},{"title":"Delete MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/mcp/{id}","href":"/api-reference-v3/mcp/delete-mcp-server"},{"title":"Update MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/mcp/{id}","href":"/api-reference-v3/mcp/update-mcp-server"},{"title":"List tools for an MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/mcp/{id}/tools","href":"/api-reference-v3/mcp/list-tools-for-an-mcp-server"}]},{"group":"Sources","pages":[{"title":"List or retrieve sources","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/sources","href":"/api-reference-v3/sources/list-or-retrieve-sources"}]},{"group":"Artifacts","pages":[{"title":"Retrieve an artifact","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/artifacts/{id}","href":"/api-reference-v3/artifacts/retrieve-an-artifact"},{"title":"Retrieve an artifact content","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/artifacts/{id}/content","href":"/api-reference-v3/artifacts/retrieve-an-artifact-content"}]},{"group":"Agent","pages":[{"title":"List agent tools and MCP servers for a chat setting","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agent/chat_settings/{id}/tools","href":"/api-reference-v3/agent/list-agent-tools-and-mcp-servers-for-a-chat-setting"}]},{"group":"Files","pages":[{"title":"List files accessible to the authenticated user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files","href":"/api-reference-v3/files/list-files-accessible-to-the-authenticated-user"},{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files","href":"/api-reference-v3/files/upload-a-file"},{"title":"Delete multiple files in a single request","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files/bulk-delete","href":"/api-reference-v3/files/delete-multiple-files-in-a-single-request"},{"title":"Retrieve a single file by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files/{id}","href":"/api-reference-v3/files/retrieve-a-single-file-by-id"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/files/{id}","href":"/api-reference-v3/files/delete-a-file"},{"title":"Update file metadata","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/files/{id}","href":"/api-reference-v3/files/update-file-metadata"},{"title":"Download a document file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files/{id}/download","href":"/api-reference-v3/files/download-a-document-file"},{"title":"Get document thumbnail","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files/{id}/thumbnail","href":"/api-reference-v3/files/get-document-thumbnail"}]},{"group":"Facets","pages":[{"title":"List content types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/content-types","href":"/api-reference-v3/facets/list-content-types"},{"title":"Define content types and attributes","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/content-types","href":"/api-reference-v3/facets/define-content-types-and-attributes"},{"title":"Batch define content types and attributes","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/content-types/batch","href":"/api-reference-v3/facets/batch-define-content-types-and-attributes"},{"title":"Resolve search scope","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/content-types/scope","href":"/api-reference-v3/facets/resolve-search-scope"},{"title":"List content type templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/content-types/templates","href":"/api-reference-v3/facets/list-content-type-templates"},{"title":"List file classifications and attribute values","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files/{file_id}/facets","href":"/api-reference-v3/facets/list-file-classifications-and-attribute-values"},{"title":"Classify file and set attribute values","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files/{file_id}/facets","href":"/api-reference-v3/facets/classify-file-and-set-attribute-values"},{"title":"Batch classify and set attribute values","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files/{file_id}/facets/batch","href":"/api-reference-v3/facets/batch-classify-and-set-attribute-values"}]},{"group":"Tags","pages":[{"title":"Add tags to a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files/{id}/tags","href":"/api-reference-v3/tags/add-tags-to-a-file"},{"title":"Remove a tag from a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/files/{id}/tags/{tag_id}","href":"/api-reference-v3/tags/remove-a-tag-from-a-file"},{"title":"List all tags for the authenticated user's company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/tags","href":"/api-reference-v3/tags/list-all-tags-for-the-authenticated-users-company"},{"title":"Create a new tag for the company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/tags","href":"/api-reference-v3/tags/create-a-new-tag-for-the-company"},{"title":"Delete a company tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/tags/{id}","href":"/api-reference-v3/tags/delete-a-company-tag"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/workspaces","href":"/api-reference-v3/workspaces/list-workspaces"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/workspaces","href":"/api-reference-v3/workspaces/create-a-workspace"},{"title":"Browse datasource folders","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/workspaces/datasource/browse","href":"/api-reference-v3/workspaces/browse-datasource-folders"},{"title":"Test datasource credentials","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/workspaces/datasource/test","href":"/api-reference-v3/workspaces/test-datasource-credentials"},{"title":"Retrieve a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/workspaces/{id}","href":"/api-reference-v3/workspaces/retrieve-a-workspace"},{"title":"Delete a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/workspaces/{id}","href":"/api-reference-v3/workspaces/delete-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/workspaces/{id}","href":"/api-reference-v3/workspaces/update-a-workspace"},{"title":"List workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/workspaces/{id}/members","href":"/api-reference-v3/workspaces/list-workspace-members"},{"title":"Replace all workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/workspaces/{id}/members","href":"/api-reference-v3/workspaces/replace-all-workspace-members"},{"title":"Add a member to a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/workspaces/{id}/members","href":"/api-reference-v3/workspaces/add-a-member-to-a-workspace"},{"title":"Remove a group from a custom workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/workspaces/{id}/members/groups/{group_id}","href":"/api-reference-v3/workspaces/remove-a-group-from-a-custom-workspace"},{"title":"Remove a user from a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/workspaces/{id}/members/users/{user_id}","href":"/api-reference-v3/workspaces/remove-a-user-from-a-workspace"}]},{"group":"Files Processing","pages":[{"title":"Ask a question over your documents","description":"Retrieval-augmented generation: searches your indexed corpus, then generates\nan LLM answer grounded in the retrieved passages.\n\n**Modes:**\n- `stream=false` (default): returns a single JSON response with `results` and `answer`.\n- `stream=true`: returns Server-Sent Events — `event: sources` (retrieved chunks),\n `event: token` (answer tokens), `event: done` (stream complete),\n or `event: error` (generation failure).\n\n**Model:** omit `model` to use the default model configured for your organization.\nPass `model=alfred-ft5` for the lighter, faster LightOn fine-tune, or\n`model=mistral-large-latest` for the flagship general-purpose model.\nCompany-specific custom models (`custom-{company_id}-{uuid}`) are also accepted.\nAny other value is rejected.\n\n**Structured output:** pass `response_format` with a JSON Schema object to constrain\nthe LLM answer to valid JSON matching your schema. The schema must have\n`type: \"object\"` and `properties`. When set, the `answer` field contains a\nJSON string conforming to the schema. Works with both sync and streaming modes.\nOmit for free-text answers (default).\n\n**Relevance scoring:** relevance scoring always runs in `scoring_and_filtering`\nmode — candidates are scored for relevance and only those above the quality\nthreshold are used as context. `score` equals the relevance score\n(`scores.relevance`, 0–1). Results are returned in descending order of `score`.\nIf the scoring model is temporarily unavailable, `score` falls back to the\ncombined retrieval score (higher is better, no fixed upper bound) and\n`scores.relevance` is null.\n\n**Scoping:** same rules as `/api/v3/search` — use `workspace_id` and/or `tag_id`\nto narrow results, or `file_id` to target specific files. `file_id` cannot be\ncombined with `workspace_id` or `tag_id`.\n\n**Facet filtering:** use `content_type` and `attribute` to narrow results by facet\nmetadata. Content type uses colon-separated paths (e.g. `legal:contract:nda`).\n**Repeated `attribute` entries are ANDed; values inside one entry are ORed with\n`|` (pipe, recommended).** Example: `attribute=fiscal_year:2024|2025\u0026attribute=status:active`\n→ (fiscal_year 2024 OR 2025) AND (status active). Supports operators (`>`, `>=`,\n`\u003c`, `\u003c=`), prefix (`name:prefix*`), smart dates, and content-type scoping.\n\nIf the reranker is temporarily unavailable, results are returned in retrieval\norder and each result item includes a `warnings` array. Each warning has a\n`code` matching the degraded `scores` key (e.g. `relevance`) and a `reason`\nclassifying the failure: `model_not_found`, `timeout`, `service_error`, or\n`unknown`. The `warnings` key is absent from result items when all pipeline\nsteps succeed.\n\nBilling: 1 search-with-generation credit per request.","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/ask","href":"/api-reference-v3/files-processing/ask-a-question-over-your-documents"},{"title":"Retrieve document chunks","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/retrieve","href":"/api-reference-v3/files-processing/retrieve-document-chunks"},{"title":"Search document chunks","description":"Embedding → hybrid vector search → optional reranking, returning ranked chunks\nwith provenance. No LLM generation is performed.\n\nBilling: 1 retrieval credit per request.\n\n**Relevance scoring (`relevance_scoring`):** controls the relevance scoring stage.\n- `scoring_and_filtering` (default): Score candidates for relevance and only\n return those above the quality threshold.\n- `scoring_only`: Score every candidate for relevance but return them all, even\n low-scoring ones. Useful for building your own filtering logic.\n- `none`: Skip the relevance scoring step and return all candidates unfiltered.\n Fastest option, useful when you handle scoring yourself.\n\nOmit `relevance_scoring` for the default; send `none` to skip scoring.\n`skip_rerank` is deprecated — `true` maps to `none`, `false` to `scoring_and_filtering`.\n\n**Result ordering:** results are returned in descending order of `score`.\nWith `scoring_and_filtering` or `scoring_only`, `score` equals the relevance\nscore (`scores.relevance`, 0–1). With `none`, `score` is the combined retrieval\nscore (higher is better, no fixed upper bound).\n\nIf the scoring model is temporarily unavailable, results are returned in\nretrieval order and a `warnings` array is included. Each warning has a `code`\nmatching the degraded `scores` key (e.g. `relevance`) and a `reason` classifying the\nfailure: `model_not_found`, `timeout`, `service_error`, or `unknown`.\nThe `warnings` key is absent when all pipeline steps succeed.\n\n**Scoping:** use `workspace_id` and/or `tag_id` to narrow results, or `file_id`\nto target specific files. `file_id` cannot be combined with `workspace_id` or\n`tag_id`. Filters that resolve to no authorized resources are rejected.\nWhen no filters are provided, search runs across all documents authorized for the\nAPI key.\n\n**Facet filtering:** use `content_type` and `attribute` to narrow results by facet\nmetadata. Content type uses colon-separated paths (e.g. `legal:contract:nda`).\n**Repeated `attribute` entries are ANDed; values inside one entry are ORed with\n`|` (pipe, recommended).** Example: `attribute=fiscal_year:2024|2025\u0026attribute=status:active`\n→ (fiscal_year 2024 OR 2025) AND (status active). Supports operators (`>`, `>=`,\n`\u003c`, `\u003c=`), prefix (`name:prefix*`), smart dates, and content-type scoping.\n\n**Modes:**\n- `text` (default): hybrid text search\n- `vision`: VLM-embedded page image search\n\n**Images:** set `include_image=true` to receive a base64-encoded page image with\neach result. In text mode the image is fetched from the VisionChunk covering the\nchunk's start page (empty string if no vision index exists for that page).\n\n**Bounding boxes (PDF only):** set `include_bboxes=true` to append a `bboxes` array to each\nresult, giving the merged rectangles of the chunk's text on the source PDF (raw\nPDF points, top-left origin with y extending downward) so you can overlay highlights without re-locating\nthe chunk. One rectangle per logical group; a chunk spanning two pages produces at\nleast one rectangle per page. Available for PDF documents in text mode only — returns an\nempty list for non-PDF, vision-mode, or pre-v2.2.1 chunks. When `include_bboxes=false`\n(default) the `bboxes` key is omitted.","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/search","href":"/api-reference-v3/files-processing/search-document-chunks"}]},{"group":"Users","pages":[{"title":"List company users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/users","href":"/api-reference-v3/users/list-company-users"},{"title":"Create a new company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/users","href":"/api-reference-v3/users/create-a-new-company-member"},{"title":"Get current user profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/users/me","href":"/api-reference-v3/users/get-current-user-profile"},{"title":"Update current user profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/users/me","href":"/api-reference-v3/users/update-current-user-profile"},{"title":"Retrieve a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/users/{id}","href":"/api-reference-v3/users/retrieve-a-company-member"},{"title":"Update a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/users/{id}","href":"/api-reference-v3/users/update-a-company-member"},{"title":"Delete a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/users/{id}","href":"/api-reference-v3/users/delete-a-company-member"},{"title":"Partially update a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/users/{id}","href":"/api-reference-v3/users/partially-update-a-company-member"},{"title":"List roles of a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/users/{id}/roles","href":"/api-reference-v3/users/list-roles-of-a-company-member"},{"title":"Update roles of a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/users/{id}/roles","href":"/api-reference-v3/users/update-roles-of-a-company-member"}]},{"group":"API Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/keys","href":"/api-reference-v3/api-keys/list-api-keys"},{"title":"Create API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/keys","href":"/api-reference-v3/api-keys/create-api-key"},{"title":"Retrieve API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/keys/{id}","href":"/api-reference-v3/api-keys/retrieve-api-key"},{"title":"Revoke API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/keys/{id}","href":"/api-reference-v3/api-keys/revoke-api-key"},{"title":"Update API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/keys/{id}","href":"/api-reference-v3/api-keys/update-api-key"}]},{"group":"User Groups","pages":[{"title":"List user groups","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/groups","href":"/api-reference-v3/user-groups/list-user-groups"},{"title":"Get group details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/groups/{id}","href":"/api-reference-v3/user-groups/get-group-details"},{"title":"Fully update a group (PUT)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/groups/{id}","href":"/api-reference-v3/user-groups/fully-update-a-group-put"},{"title":"Delete group of users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/groups/{id}","href":"/api-reference-v3/user-groups/delete-group-of-users"},{"title":"Partially update a group (PATCH)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/groups/{id}","href":"/api-reference-v3/user-groups/partially-update-a-group-patch"},{"title":"List the members of a group you own","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/groups/{id}/members","href":"/api-reference-v3/user-groups/list-the-members-of-a-group-you-own"},{"title":"Bulk replace the members of a custom group you own","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/groups/{id}/members","href":"/api-reference-v3/user-groups/bulk-replace-the-members-of-a-custom-group-you-own"},{"title":"Add a new member to a custom group you own","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/groups/{id}/members","href":"/api-reference-v3/user-groups/add-a-new-member-to-a-custom-group-you-own"},{"title":"Remove a user from a group you own","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/groups/{id}/members/users/{user_id}","href":"/api-reference-v3/user-groups/remove-a-user-from-a-group-you-own"}]},{"group":"SCIM","pages":[{"title":"List or Retrieve a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/Groups","href":"/api-reference-v3/scim/list-or-retrieve-a-group"},{"title":"Create a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /scim/v2/Groups","href":"/api-reference-v3/scim/create-a-group"},{"title":"Delete a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /scim/v2/Groups","href":"/api-reference-v3/scim/delete-a-group"},{"title":"Update a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /scim/v2/Groups","href":"/api-reference-v3/scim/update-a-group"},{"title":"List or Retrieve resource types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/ResourceTypes","href":"/api-reference-v3/scim/list-or-retrieve-resource-types"},{"title":"List or Retrieve schemas","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/Schemas","href":"/api-reference-v3/scim/list-or-retrieve-schemas"},{"title":"Retrieve Service Provider Configuration","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/ServiceProviderConfig","href":"/api-reference-v3/scim/retrieve-service-provider-configuration"},{"title":"List or Retrieve users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/Users","href":"/api-reference-v3/scim/list-or-retrieve-users"},{"title":"Replace a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /scim/v2/Users","href":"/api-reference-v3/scim/replace-a-user"},{"title":"Create a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /scim/v2/Users","href":"/api-reference-v3/scim/create-a-user"},{"title":"Delete a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /scim/v2/Users","href":"/api-reference-v3/scim/delete-a-user"},{"title":"Update a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /scim/v2/Users","href":"/api-reference-v3/scim/update-a-user"}]}]},{"dropdown":"API V3 - Company level","icon":"square-terminal","groups":[{"group":"Usage","pages":[{"title":"Get your company's activity metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/metrics","href":"/api-reference-v3-company/usage/get-your-companys-activity-metrics"}]},{"group":"Models","pages":[{"title":"Set company external API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml put /api/v3/company/external_keys/{provider}","href":"/api-reference-v3-company/models/set-company-external-api-key"},{"title":"Deactivate company external API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/external_keys/{provider}","href":"/api-reference-v3-company/models/deactivate-company-external-api-key"},{"title":"List catalogued provider models","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/model-catalog","href":"/api-reference-v3-company/models/list-catalogued-provider-models"},{"title":"Export company model configuration","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/model-config/export","href":"/api-reference-v3-company/models/export-company-model-configuration"},{"title":"Import company model configuration","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/model-config/import","href":"/api-reference-v3-company/models/import-company-model-configuration"},{"title":"List custom models","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/models","href":"/api-reference-v3-company/models/list-custom-models"},{"title":"Create a custom model","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/models","href":"/api-reference-v3-company/models/create-a-custom-model"},{"title":"Get a custom model","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/models/{uuid}","href":"/api-reference-v3-company/models/get-a-custom-model"},{"title":"Delete a custom model","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/models/{uuid}","href":"/api-reference-v3-company/models/delete-a-custom-model"},{"title":"Update a custom model","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml patch /api/v3/company/models/{uuid}","href":"/api-reference-v3-company/models/update-a-custom-model"}]},{"group":"Workspaces","pages":[{"title":"List workspaces in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/workspaces","href":"/api-reference-v3-company/workspaces/list-workspaces-in-your-company"},{"title":"Create a workspace in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/workspaces","href":"/api-reference-v3-company/workspaces/create-a-workspace-in-your-company"},{"title":"Test datasource credentials","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/workspaces/datasource/test","href":"/api-reference-v3-company/workspaces/test-datasource-credentials"},{"title":"Retrieve a company workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/workspaces/{id}","href":"/api-reference-v3-company/workspaces/retrieve-a-company-workspace"},{"title":"Delete a company workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/workspaces/{id}","href":"/api-reference-v3-company/workspaces/delete-a-company-workspace"},{"title":"Update a company workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml patch /api/v3/company/workspaces/{id}","href":"/api-reference-v3-company/workspaces/update-a-company-workspace"},{"title":"Retrieve workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/workspaces/{id}/members","href":"/api-reference-v3-company/workspaces/retrieve-workspace-members"},{"title":"Bulk replace workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml put /api/v3/company/workspaces/{id}/members","href":"/api-reference-v3-company/workspaces/bulk-replace-workspace-members"},{"title":"Add a member to a workspace of your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/workspaces/{id}/members","href":"/api-reference-v3-company/workspaces/add-a-member-to-a-workspace-of-your-company"},{"title":"Remove a group from a workspace of your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/workspaces/{id}/members/groups/{group_id}","href":"/api-reference-v3-company/workspaces/remove-a-group-from-a-workspace-of-your-company"},{"title":"Remove a user from a workspace of your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/workspaces/{id}/members/users/{user_id}","href":"/api-reference-v3-company/workspaces/remove-a-user-from-a-workspace-of-your-company"}]},{"group":"Users","pages":[{"title":"List company users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/users","href":"/api-reference-v3-company/users/list-company-users"}]},{"group":"User Groups","pages":[{"title":"List the groups in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/groups","href":"/api-reference-v3-company/user-groups/list-the-groups-in-your-company"},{"title":"Create a new custom group in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/groups","href":"/api-reference-v3-company/user-groups/create-a-new-custom-group-in-your-company"},{"title":"Retrieve the information of a group in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/groups/{id}","href":"/api-reference-v3-company/user-groups/retrieve-the-information-of-a-group-in-your-company"},{"title":"Delete a custom group in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/groups/{id}","href":"/api-reference-v3-company/user-groups/delete-a-custom-group-in-your-company"},{"title":"Partially update a custom group in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml patch /api/v3/company/groups/{id}","href":"/api-reference-v3-company/user-groups/partially-update-a-custom-group-in-your-company"},{"title":"Get the list of members for a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/groups/{id}/members","href":"/api-reference-v3-company/user-groups/get-the-list-of-members-for-a-group"},{"title":"Bulk replace all members for a custom group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml put /api/v3/company/groups/{id}/members","href":"/api-reference-v3-company/user-groups/bulk-replace-all-members-for-a-custom-group"},{"title":"Add a member to a custom group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/groups/{id}/members","href":"/api-reference-v3-company/user-groups/add-a-member-to-a-custom-group"},{"title":"Remove a user from a custom group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/groups/{id}/members/users/{user_id}","href":"/api-reference-v3-company/user-groups/remove-a-user-from-a-custom-group"}]},{"group":"Companies","pages":[{"title":"Partially update your company (PATCH)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml patch /api/v3/company","href":"/api-reference-v3-company/companies/partially-update-your-company-patch"}]}]},{"dropdown":"API V3 - Instance level","icon":"square-terminal","groups":[{"group":"Usage","pages":[{"title":"Get company activity metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}/metrics","href":"/api-reference-v3-instance/usage/get-company-activity-metrics"},{"title":"Get a company's month-to-date storage cost","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}/storage/cost","href":"/api-reference-v3-instance/usage/get-a-companys-month-to-date-storage-cost"},{"title":"Get 30-day usage histogram for a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}/usage","href":"/api-reference-v3-instance/usage/get-30-day-usage-histogram-for-a-company"},{"title":"Get a company's spend for the open billing period","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}/usage/current-period","href":"/api-reference-v3-instance/usage/get-a-companys-spend-for-the-open-billing-period"}]},{"group":"Models","pages":[{"title":"List managed ML models (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/ml-models","href":"/api-reference-v3-instance/models/list-managed-ml-models-instance-admin"},{"title":"Create a managed ML model (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/ml-models","href":"/api-reference-v3-instance/models/create-a-managed-ml-model-instance-admin"},{"title":"Get a managed ML model (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/ml-models/{uuid}","href":"/api-reference-v3-instance/models/get-a-managed-ml-model-instance-admin"},{"title":"Delete a managed ML model (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/ml-models/{uuid}","href":"/api-reference-v3-instance/models/delete-a-managed-ml-model-instance-admin"},{"title":"Update a managed ML model (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml patch /api/v3/instance/ml-models/{uuid}","href":"/api-reference-v3-instance/models/update-a-managed-ml-model-instance-admin"},{"title":"List ML models","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/models","href":"/api-reference-v3-instance/models/list-ml-models"},{"title":"Get ML model details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/models/{uuid}","href":"/api-reference-v3-instance/models/get-ml-model-details"}]},{"group":"Workspaces","pages":[{"title":"List instance workspaces","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/workspaces","href":"/api-reference-v3-instance/workspaces/list-instance-workspaces"},{"title":"Create a new instance workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/workspaces","href":"/api-reference-v3-instance/workspaces/create-a-new-instance-workspace"},{"title":"Retrieve instance workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/workspaces/{id}","href":"/api-reference-v3-instance/workspaces/retrieve-instance-workspace"},{"title":"Partially update a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml patch /api/v3/instance/workspaces/{id}","href":"/api-reference-v3-instance/workspaces/partially-update-a-workspace"},{"title":"Get the list of members for any workspace. This endpoint can only be used by instance level admins.","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/workspaces/{id}/members","href":"/api-reference-v3-instance/workspaces/get-the-list-of-members-for-any-workspace-this-endpoint-can-only-be-used-by-instance-level-admins"},{"title":"Replace all workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml put /api/v3/instance/workspaces/{id}/members","href":"/api-reference-v3-instance/workspaces/replace-all-workspace-members"},{"title":"Add a member to a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/workspaces/{id}/members","href":"/api-reference-v3-instance/workspaces/add-a-member-to-a-workspace"},{"title":"Remove a group from a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/workspaces/{id}/members/groups/{group_id}","href":"/api-reference-v3-instance/workspaces/remove-a-group-from-a-workspace"},{"title":"Delete a user from a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/workspaces/{id}/members/users/{user_id}","href":"/api-reference-v3-instance/workspaces/delete-a-user-from-a-workspace"}]},{"group":"Users","pages":[{"title":"List instance users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/users","href":"/api-reference-v3-instance/users/list-instance-users"}]},{"group":"User Groups","pages":[{"title":"List the groups on the instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/groups","href":"/api-reference-v3-instance/user-groups/list-the-groups-on-the-instance"},{"title":"Create instance group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/groups","href":"/api-reference-v3-instance/user-groups/create-instance-group"},{"title":"Retrieve instance group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/groups/{id}","href":"/api-reference-v3-instance/user-groups/retrieve-instance-group"},{"title":"Delete a custom instance group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/groups/{id}","href":"/api-reference-v3-instance/user-groups/delete-a-custom-instance-group"},{"title":"Partially update instance group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml patch /api/v3/instance/groups/{id}","href":"/api-reference-v3-instance/user-groups/partially-update-instance-group"},{"title":"Get the list of members for a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/groups/{id}/members","href":"/api-reference-v3-instance/user-groups/get-the-list-of-members-for-a-group"},{"title":"Bulk replace all members for a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml put /api/v3/instance/groups/{id}/members","href":"/api-reference-v3-instance/user-groups/bulk-replace-all-members-for-a-group"},{"title":"Add a new member to a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/groups/{id}/members","href":"/api-reference-v3-instance/user-groups/add-a-new-member-to-a-group"},{"title":"Remove a user from a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/groups/{id}/members/users/{user_id}","href":"/api-reference-v3-instance/user-groups/remove-a-user-from-a-group"}]},{"group":"Companies","pages":[{"title":"List companies","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies","href":"/api-reference-v3-instance/companies/list-companies"},{"title":"Create a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/companies","href":"/api-reference-v3-instance/companies/create-a-company"},{"title":"Get company details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}","href":"/api-reference-v3-instance/companies/get-company-details"},{"title":"Delete a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/companies/{id}","href":"/api-reference-v3-instance/companies/delete-a-company"},{"title":"Partially update a company (PATCH)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml patch /api/v3/instance/companies/{id}","href":"/api-reference-v3-instance/companies/partially-update-a-company-patch"}]}]},{"dropdown":"API V2","icon":"square-terminal","groups":[{"group":"Files Search","pages":[{"title":"Filter most relevant chunks","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/filter/chunks","href":"/api-reference-v2/files-search/filter-most-relevant-chunks"},{"title":"Extract chunks from knowledge base","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/query","href":"/api-reference-v2/files-search/extract-chunks-from-knowledge-base"},{"title":"Reformulate an extraction query","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/query/reformulation","href":"/api-reference-v2/files-search/reformulate-an-extraction-query"}]},{"group":"Models","pages":[{"title":"Generate a chat completion (V2 — deprecated)","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/chat/completions","href":"/api-reference-v2/models/generate-a-chat-completion-v2-—-deprecated"},{"title":"Generate a text completion","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/completions","href":"/api-reference-v2/models/generate-a-text-completion"},{"title":"List available models","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/models","href":"/api-reference-v2/models/list-available-models"},{"title":"Create text tokens","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/tokenize","href":"/api-reference-v2/models/create-text-tokens"}]},{"group":"Files","pages":[{"title":"List available documents","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/files","href":"/api-reference-v2/files/list-available-documents"},{"title":"Upload a document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/files","href":"/api-reference-v2/files/upload-a-document"},{"title":"Retrieve a document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/files/{id}","href":"/api-reference-v2/files/retrieve-a-document"},{"title":"Delete a document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml delete /api/v2/files/{id}","href":"/api-reference-v2/files/delete-a-document"},{"title":"Generate an answer with a single document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/files/{id}/ask-question","href":"/api-reference-v2/files/generate-an-answer-with-a-single-document"},{"title":"Retrieve chunks from a document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/files/{id}/chunks","href":"/api-reference-v2/files/retrieve-chunks-from-a-document"}]},{"group":"Workspaces","pages":[{"title":"List workspaces of a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/companies/{id}/workspaces/","href":"/api-reference-v2/workspaces/list-workspaces-of-a-company"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/companies/{id}/workspaces/create/","href":"/api-reference-v2/workspaces/create-a-workspace"},{"title":"Retrieve a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/workspaces/{id}","href":"/api-reference-v2/workspaces/retrieve-a-workspace"},{"title":"Update workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /api/v2/workspaces/{id}/members/update/","href":"/api-reference-v2/workspaces/update-workspace-members"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /api/v2/workspaces/{id}/update/","href":"/api-reference-v2/workspaces/update-a-workspace"}]},{"group":"Upload Sessions","pages":[{"title":"Create an upload session","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/upload-session","href":"/api-reference-v2/upload-sessions/create-an-upload-session"},{"title":"Deactivate upload sessions","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/upload-session/deactivate","href":"/api-reference-v2/upload-sessions/deactivate-upload-sessions"},{"title":"Retrieve an upload session","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/upload-session/{uuid}","href":"/api-reference-v2/upload-sessions/retrieve-an-upload-session"},{"title":"Add a file to an upload session","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/upload-session/{uuid}","href":"/api-reference-v2/upload-sessions/add-a-file-to-an-upload-session"},{"title":"Delete an upload session","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml delete /api/v2/upload-session/{uuid}","href":"/api-reference-v2/upload-sessions/delete-an-upload-session"}]},{"group":"Users","pages":[{"title":"Create a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/companies/{id}/users/","href":"/api-reference-v2/users/create-a-company-member"},{"title":"List company members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/users/","href":"/api-reference-v2/users/list-company-members"},{"title":"Retrieve a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/users/{id}","href":"/api-reference-v2/users/retrieve-a-company-member"},{"title":"Update groups of a company member","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /api/v2/users/{id}/groups/update/","href":"/api-reference-v2/users/update-groups-of-a-company-member"},{"title":"Update roles of a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /api/v2/users/{id}/roles/update/","href":"/api-reference-v2/users/update-roles-of-a-company-member"},{"title":"Update a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /api/v2/users/{id}/update/","href":"/api-reference-v2/users/update-a-company-member"},{"title":"Update workspaces of a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /api/v2/users/{id}/workspaces/update/","href":"/api-reference-v2/users/update-workspaces-of-a-company-member"}]},{"group":"Companies","pages":[{"title":"Create a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/companies/create/","href":"/api-reference-v2/companies/create-a-company"},{"title":"Retrieve a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/companies/{id}","href":"/api-reference-v2/companies/retrieve-a-company"},{"title":"Update a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /api/v2/companies/{id}/update/","href":"/api-reference-v2/companies/update-a-company"}]},{"group":"SCIM","pages":[{"title":"List or Retrieve a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/Groups","href":"/api-reference-v2/scim/list-or-retrieve-a-group"},{"title":"Create a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /scim/v2/Groups","href":"/api-reference-v2/scim/create-a-group"},{"title":"Delete a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml delete /scim/v2/Groups","href":"/api-reference-v2/scim/delete-a-group"},{"title":"Update a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /scim/v2/Groups","href":"/api-reference-v2/scim/update-a-group"},{"title":"List or Retrieve resource types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/ResourceTypes","href":"/api-reference-v2/scim/list-or-retrieve-resource-types"},{"title":"List or Retrieve schemas","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/Schemas","href":"/api-reference-v2/scim/list-or-retrieve-schemas"},{"title":"Retrieve Service Provider Configuration","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/ServiceProviderConfig","href":"/api-reference-v2/scim/retrieve-service-provider-configuration"},{"title":"List or Retrieve users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/Users","href":"/api-reference-v2/scim/list-or-retrieve-users"},{"title":"Replace a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /scim/v2/Users","href":"/api-reference-v2/scim/replace-a-user"},{"title":"Create a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /scim/v2/Users","href":"/api-reference-v2/scim/create-a-user"},{"title":"Delete a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml delete /scim/v2/Users","href":"/api-reference-v2/scim/delete-a-user"},{"title":"Update a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /scim/v2/Users","href":"/api-reference-v2/scim/update-a-user"}]},{"group":"Feedbacks","pages":[{"title":"List feedback types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/feedback/feedback-types/","href":"/api-reference-v2/feedbacks/list-feedback-types"},{"title":"List feedback types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/feedback/feedback-types/{id}/","href":"/api-reference-v2/feedbacks/list-feedback-types-1"},{"title":"Create a completion feedback","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/rate/{feedback_type_id}/{completion_id}","href":"/api-reference-v2/feedbacks/create-a-completion-feedback"}]},{"group":"Reporting","pages":[{"title":"Get company chat sessions report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/chat-sessions/","href":"/api-reference-v2/reporting/get-company-chat-sessions-report"},{"title":"Get feedbacks report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/chats-feedback/","href":"/api-reference-v2/reporting/get-feedbacks-report"},{"title":"Get company tools report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/tools/","href":"/api-reference-v2/reporting/get-company-tools-report"},{"title":"Get documents usage report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/used-documents/","href":"/api-reference-v2/reporting/get-documents-usage-report"},{"title":"Get company members report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/users/","href":"/api-reference-v2/reporting/get-company-members-report"}]},{"group":"Platform Status","pages":[{"title":"Get platform load status","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/platform/status","href":"/api-reference-v2/platform-status/get-platform-load-status"}]}]}]}]}]},{"language":"fr","products":[{"product":"Plateforme Paradigm","icon":"browser","description":"Documentation générale sur la plateforme Paradigm.","pages":[{"title":"Plateforme Paradigm","href":"/fr"}]},{"product":"API Paradigm","icon":"code-simple","description":"Documentation dédiée à l'API Paradigm.","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/fr/developer-resources/api-fundamentals/quick-guide"}]},{"tab":"Cas d'usages","pages":[{"title":"Cas d'usages","href":"/fr/use-cases/ads"}]},{"tab":"Références API","dropdowns":[{"dropdown":"API V3","icon":"square-terminal","groups":[{"group":"Budget","pages":[{"title":"Get company budget","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/billing/budget","href":"/api-reference-v3/budget/get-company-budget"},{"title":"Create or update company budget","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/billing/budget","href":"/api-reference-v3/budget/create-or-update-company-budget"},{"title":"Delete company budget","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/billing/budget","href":"/api-reference-v3/budget/delete-company-budget"},{"title":"List budget alerts","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/billing/budget/alerts","href":"/api-reference-v3/budget/list-budget-alerts"},{"title":"Create budget alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/billing/budget/alerts","href":"/api-reference-v3/budget/create-budget-alert"},{"title":"Toggle all budget alerts","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/billing/budget/alerts","href":"/api-reference-v3/budget/toggle-all-budget-alerts"},{"title":"Delete budget alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/billing/budget/alerts/{id}","href":"/api-reference-v3/budget/delete-budget-alert"},{"title":"Update budget alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/billing/budget/alerts/{id}","href":"/api-reference-v3/budget/update-budget-alert"}]},{"group":"Usage","pages":[{"title":"Company free-tier credits","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/credits","href":"/api-reference-v3/usage/company-free-tier-credits"},{"title":"Company storage usage","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/storage","href":"/api-reference-v3/usage/company-storage-usage"},{"title":"Get month-to-date storage cost","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/storage/cost","href":"/api-reference-v3/usage/get-month-to-date-storage-cost"},{"title":"Get 30-day usage histogram for the authenticated user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/usage","href":"/api-reference-v3/usage/get-30-day-usage-histogram-for-the-authenticated-user"},{"title":"Get spend for the open billing period","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/usage/current-period","href":"/api-reference-v3/usage/get-spend-for-the-open-billing-period"}]},{"group":"System","pages":[{"title":"System status","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/system/status","href":"/api-reference-v3/system/system-status"}]},{"group":"Agents","pages":[{"title":"List all agents","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents","href":"/api-reference-v3/agents/list-all-agents"},{"title":"Create a new agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/agents","href":"/api-reference-v3/agents/create-a-new-agent"},{"title":"List agent favorites","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/favorites","href":"/api-reference-v3/agents/list-agent-favorites"},{"title":"Create agent favorite","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/agents/favorites","href":"/api-reference-v3/agents/create-agent-favorite"},{"title":"Delete agent favorite by agent id","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/agents/favorites","href":"/api-reference-v3/agents/delete-agent-favorite-by-agent-id"},{"title":"Delete agent favorite","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/agents/favorites/{id}","href":"/api-reference-v3/agents/delete-agent-favorite"},{"title":"Retrieve a single agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}","href":"/api-reference-v3/agents/retrieve-a-single-agent"},{"title":"Delete an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/agents/{id}","href":"/api-reference-v3/agents/delete-an-agent"},{"title":"Update an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/agents/{id}","href":"/api-reference-v3/agents/update-an-agent"},{"title":"List files scoped to an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}/files","href":"/api-reference-v3/agents/list-files-scoped-to-an-agent"},{"title":"Get agent icon","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}/icon","href":"/api-reference-v3/agents/get-agent-icon"},{"title":"Upload agent icon","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/agents/{id}/icon","href":"/api-reference-v3/agents/upload-agent-icon"},{"title":"List tags used in workspaces for an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}/tags","href":"/api-reference-v3/agents/list-tags-used-in-workspaces-for-an-agent"},{"title":"List native tools and MCP servers available for a specific agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agents/{id}/tools","href":"/api-reference-v3/agents/list-native-tools-and-mcp-servers-available-for-a-specific-agent"}]},{"group":"Threads","pages":[{"title":"List conversation threads","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads","href":"/api-reference-v3/threads/list-conversation-threads"},{"title":"Create a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/threads","href":"/api-reference-v3/threads/create-a-conversation-thread"},{"title":"Create a conversation thread with initial turn","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/threads/turns","href":"/api-reference-v3/threads/create-a-conversation-thread-with-initial-turn"},{"title":"Retrieve a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads/{id}","href":"/api-reference-v3/threads/retrieve-a-conversation-thread"},{"title":"Delete a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/threads/{id}","href":"/api-reference-v3/threads/delete-a-conversation-thread"},{"title":"Update a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/threads/{id}","href":"/api-reference-v3/threads/update-a-conversation-thread"},{"title":"Resume a turn generation","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads/{id}/resume","href":"/api-reference-v3/threads/resume-a-turn-generation"},{"title":"Get suggested queries for a conversation thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads/{id}/suggested_queries","href":"/api-reference-v3/threads/get-suggested-queries-for-a-conversation-thread"},{"title":"List conversation turns in a thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/threads/{id}/turns","href":"/api-reference-v3/threads/list-conversation-turns-in-a-thread"},{"title":"Create a conversation turn in a thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/threads/{id}/turns","href":"/api-reference-v3/threads/create-a-conversation-turn-in-a-thread"},{"title":"Update a conversation turn in a thread","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/threads/{id}/turns/{turn_id}","href":"/api-reference-v3/threads/update-a-conversation-turn-in-a-thread"}]},{"group":"Tools","pages":[{"title":"List native tools","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/tools","href":"/api-reference-v3/tools/list-native-tools"}]},{"group":"Models","pages":[{"title":"List aliases","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/aliases","href":"/api-reference-v3/models/list-aliases"},{"title":"Create alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/aliases","href":"/api-reference-v3/models/create-alias"},{"title":"Get alias details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/aliases/{id}","href":"/api-reference-v3/models/get-alias-details"},{"title":"Delete alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/aliases/{id}","href":"/api-reference-v3/models/delete-alias"},{"title":"Update alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/aliases/{id}","href":"/api-reference-v3/models/update-alias"},{"title":"Add model to alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/aliases/{id}/models","href":"/api-reference-v3/models/add-model-to-alias"},{"title":"Remove model from alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/aliases/{id}/models/{uuid}","href":"/api-reference-v3/models/remove-model-from-alias"},{"title":"Update model priority in alias","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/aliases/{id}/models/{uuid}","href":"/api-reference-v3/models/update-model-priority-in-alias"},{"title":"Preview alias routing","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/aliases/{id}/route","href":"/api-reference-v3/models/preview-alias-routing"},{"title":"Generate a chat completion","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/chat/completions","href":"/api-reference-v3/models/generate-a-chat-completion"},{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/embeddings","href":"/api-reference-v3/models/create-embeddings"},{"title":"List external API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/external_keys","href":"/api-reference-v3/models/list-external-api-keys"},{"title":"Set personal external API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/external_keys/{provider}","href":"/api-reference-v3/models/set-personal-external-api-key"},{"title":"Deactivate personal external API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/external_keys/{provider}","href":"/api-reference-v3/models/deactivate-personal-external-api-key"},{"title":"Extract structured data from a document","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/extract","href":"/api-reference-v3/models/extract-structured-data-from-a-document"},{"title":"Get the status and result of an async extract job","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/extract/{job_id}","href":"/api-reference-v3/models/get-the-status-and-result-of-an-async-extract-job"},{"title":"Parse a document to Markdown via VLM","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/ocr","href":"/api-reference-v3/models/parse-a-document-to-markdown-via-vlm"},{"title":"Parse a document to Markdown","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/parse","href":"/api-reference-v3/models/parse-a-document-to-markdown"},{"title":"Get the status and result of an async parse job","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/parse/{id}","href":"/api-reference-v3/models/get-the-status-and-result-of-an-async-parse-job"},{"title":"Render a document as PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/preview","href":"/api-reference-v3/models/render-a-document-as-pdf"}]},{"group":"MCP","pages":[{"title":"List MCP servers","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/mcp","href":"/api-reference-v3/mcp/list-mcp-servers"},{"title":"Create MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/mcp","href":"/api-reference-v3/mcp/create-mcp-server"},{"title":"Get MCP server details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/mcp/{id}","href":"/api-reference-v3/mcp/get-mcp-server-details"},{"title":"Delete MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/mcp/{id}","href":"/api-reference-v3/mcp/delete-mcp-server"},{"title":"Update MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/mcp/{id}","href":"/api-reference-v3/mcp/update-mcp-server"},{"title":"List tools for an MCP server","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/mcp/{id}/tools","href":"/api-reference-v3/mcp/list-tools-for-an-mcp-server"}]},{"group":"Sources","pages":[{"title":"List or retrieve sources","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/sources","href":"/api-reference-v3/sources/list-or-retrieve-sources"}]},{"group":"Artifacts","pages":[{"title":"Retrieve an artifact","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/artifacts/{id}","href":"/api-reference-v3/artifacts/retrieve-an-artifact"},{"title":"Retrieve an artifact content","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/artifacts/{id}/content","href":"/api-reference-v3/artifacts/retrieve-an-artifact-content"}]},{"group":"Agent","pages":[{"title":"List agent tools and MCP servers for a chat setting","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/agent/chat_settings/{id}/tools","href":"/api-reference-v3/agent/list-agent-tools-and-mcp-servers-for-a-chat-setting"}]},{"group":"Files","pages":[{"title":"List files accessible to the authenticated user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files","href":"/api-reference-v3/files/list-files-accessible-to-the-authenticated-user"},{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files","href":"/api-reference-v3/files/upload-a-file"},{"title":"Delete multiple files in a single request","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files/bulk-delete","href":"/api-reference-v3/files/delete-multiple-files-in-a-single-request"},{"title":"Retrieve a single file by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files/{id}","href":"/api-reference-v3/files/retrieve-a-single-file-by-id"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/files/{id}","href":"/api-reference-v3/files/delete-a-file"},{"title":"Update file metadata","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/files/{id}","href":"/api-reference-v3/files/update-file-metadata"},{"title":"Download a document file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files/{id}/download","href":"/api-reference-v3/files/download-a-document-file"},{"title":"Get document thumbnail","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files/{id}/thumbnail","href":"/api-reference-v3/files/get-document-thumbnail"}]},{"group":"Facets","pages":[{"title":"List content types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/content-types","href":"/api-reference-v3/facets/list-content-types"},{"title":"Define content types and attributes","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/content-types","href":"/api-reference-v3/facets/define-content-types-and-attributes"},{"title":"Batch define content types and attributes","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/content-types/batch","href":"/api-reference-v3/facets/batch-define-content-types-and-attributes"},{"title":"Resolve search scope","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/content-types/scope","href":"/api-reference-v3/facets/resolve-search-scope"},{"title":"List content type templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/content-types/templates","href":"/api-reference-v3/facets/list-content-type-templates"},{"title":"List file classifications and attribute values","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/files/{file_id}/facets","href":"/api-reference-v3/facets/list-file-classifications-and-attribute-values"},{"title":"Classify file and set attribute values","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files/{file_id}/facets","href":"/api-reference-v3/facets/classify-file-and-set-attribute-values"},{"title":"Batch classify and set attribute values","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files/{file_id}/facets/batch","href":"/api-reference-v3/facets/batch-classify-and-set-attribute-values"}]},{"group":"Tags","pages":[{"title":"Add tags to a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/files/{id}/tags","href":"/api-reference-v3/tags/add-tags-to-a-file"},{"title":"Remove a tag from a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/files/{id}/tags/{tag_id}","href":"/api-reference-v3/tags/remove-a-tag-from-a-file"},{"title":"List all tags for the authenticated user's company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/tags","href":"/api-reference-v3/tags/list-all-tags-for-the-authenticated-users-company"},{"title":"Create a new tag for the company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/tags","href":"/api-reference-v3/tags/create-a-new-tag-for-the-company"},{"title":"Delete a company tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/tags/{id}","href":"/api-reference-v3/tags/delete-a-company-tag"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/workspaces","href":"/api-reference-v3/workspaces/list-workspaces"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/workspaces","href":"/api-reference-v3/workspaces/create-a-workspace"},{"title":"Browse datasource folders","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/workspaces/datasource/browse","href":"/api-reference-v3/workspaces/browse-datasource-folders"},{"title":"Test datasource credentials","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/workspaces/datasource/test","href":"/api-reference-v3/workspaces/test-datasource-credentials"},{"title":"Retrieve a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/workspaces/{id}","href":"/api-reference-v3/workspaces/retrieve-a-workspace"},{"title":"Delete a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/workspaces/{id}","href":"/api-reference-v3/workspaces/delete-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/workspaces/{id}","href":"/api-reference-v3/workspaces/update-a-workspace"},{"title":"List workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/workspaces/{id}/members","href":"/api-reference-v3/workspaces/list-workspace-members"},{"title":"Replace all workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/workspaces/{id}/members","href":"/api-reference-v3/workspaces/replace-all-workspace-members"},{"title":"Add a member to a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/workspaces/{id}/members","href":"/api-reference-v3/workspaces/add-a-member-to-a-workspace"},{"title":"Remove a group from a custom workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/workspaces/{id}/members/groups/{group_id}","href":"/api-reference-v3/workspaces/remove-a-group-from-a-custom-workspace"},{"title":"Remove a user from a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/workspaces/{id}/members/users/{user_id}","href":"/api-reference-v3/workspaces/remove-a-user-from-a-workspace"}]},{"group":"Files Processing","pages":[{"title":"Ask a question over your documents","description":"Retrieval-augmented generation: searches your indexed corpus, then generates\nan LLM answer grounded in the retrieved passages.\n\n**Modes:**\n- `stream=false` (default): returns a single JSON response with `results` and `answer`.\n- `stream=true`: returns Server-Sent Events — `event: sources` (retrieved chunks),\n `event: token` (answer tokens), `event: done` (stream complete),\n or `event: error` (generation failure).\n\n**Model:** omit `model` to use the default model configured for your organization.\nPass `model=alfred-ft5` for the lighter, faster LightOn fine-tune, or\n`model=mistral-large-latest` for the flagship general-purpose model.\nCompany-specific custom models (`custom-{company_id}-{uuid}`) are also accepted.\nAny other value is rejected.\n\n**Structured output:** pass `response_format` with a JSON Schema object to constrain\nthe LLM answer to valid JSON matching your schema. The schema must have\n`type: \"object\"` and `properties`. When set, the `answer` field contains a\nJSON string conforming to the schema. Works with both sync and streaming modes.\nOmit for free-text answers (default).\n\n**Relevance scoring:** relevance scoring always runs in `scoring_and_filtering`\nmode — candidates are scored for relevance and only those above the quality\nthreshold are used as context. `score` equals the relevance score\n(`scores.relevance`, 0–1). Results are returned in descending order of `score`.\nIf the scoring model is temporarily unavailable, `score` falls back to the\ncombined retrieval score (higher is better, no fixed upper bound) and\n`scores.relevance` is null.\n\n**Scoping:** same rules as `/api/v3/search` — use `workspace_id` and/or `tag_id`\nto narrow results, or `file_id` to target specific files. `file_id` cannot be\ncombined with `workspace_id` or `tag_id`.\n\n**Facet filtering:** use `content_type` and `attribute` to narrow results by facet\nmetadata. Content type uses colon-separated paths (e.g. `legal:contract:nda`).\n**Repeated `attribute` entries are ANDed; values inside one entry are ORed with\n`|` (pipe, recommended).** Example: `attribute=fiscal_year:2024|2025\u0026attribute=status:active`\n→ (fiscal_year 2024 OR 2025) AND (status active). Supports operators (`>`, `>=`,\n`\u003c`, `\u003c=`), prefix (`name:prefix*`), smart dates, and content-type scoping.\n\nIf the reranker is temporarily unavailable, results are returned in retrieval\norder and each result item includes a `warnings` array. Each warning has a\n`code` matching the degraded `scores` key (e.g. `relevance`) and a `reason`\nclassifying the failure: `model_not_found`, `timeout`, `service_error`, or\n`unknown`. The `warnings` key is absent from result items when all pipeline\nsteps succeed.\n\nBilling: 1 search-with-generation credit per request.","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/ask","href":"/api-reference-v3/files-processing/ask-a-question-over-your-documents"},{"title":"Retrieve document chunks","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/retrieve","href":"/api-reference-v3/files-processing/retrieve-document-chunks"},{"title":"Search document chunks","description":"Embedding → hybrid vector search → optional reranking, returning ranked chunks\nwith provenance. No LLM generation is performed.\n\nBilling: 1 retrieval credit per request.\n\n**Relevance scoring (`relevance_scoring`):** controls the relevance scoring stage.\n- `scoring_and_filtering` (default): Score candidates for relevance and only\n return those above the quality threshold.\n- `scoring_only`: Score every candidate for relevance but return them all, even\n low-scoring ones. Useful for building your own filtering logic.\n- `none`: Skip the relevance scoring step and return all candidates unfiltered.\n Fastest option, useful when you handle scoring yourself.\n\nOmit `relevance_scoring` for the default; send `none` to skip scoring.\n`skip_rerank` is deprecated — `true` maps to `none`, `false` to `scoring_and_filtering`.\n\n**Result ordering:** results are returned in descending order of `score`.\nWith `scoring_and_filtering` or `scoring_only`, `score` equals the relevance\nscore (`scores.relevance`, 0–1). With `none`, `score` is the combined retrieval\nscore (higher is better, no fixed upper bound).\n\nIf the scoring model is temporarily unavailable, results are returned in\nretrieval order and a `warnings` array is included. Each warning has a `code`\nmatching the degraded `scores` key (e.g. `relevance`) and a `reason` classifying the\nfailure: `model_not_found`, `timeout`, `service_error`, or `unknown`.\nThe `warnings` key is absent when all pipeline steps succeed.\n\n**Scoping:** use `workspace_id` and/or `tag_id` to narrow results, or `file_id`\nto target specific files. `file_id` cannot be combined with `workspace_id` or\n`tag_id`. Filters that resolve to no authorized resources are rejected.\nWhen no filters are provided, search runs across all documents authorized for the\nAPI key.\n\n**Facet filtering:** use `content_type` and `attribute` to narrow results by facet\nmetadata. Content type uses colon-separated paths (e.g. `legal:contract:nda`).\n**Repeated `attribute` entries are ANDed; values inside one entry are ORed with\n`|` (pipe, recommended).** Example: `attribute=fiscal_year:2024|2025\u0026attribute=status:active`\n→ (fiscal_year 2024 OR 2025) AND (status active). Supports operators (`>`, `>=`,\n`\u003c`, `\u003c=`), prefix (`name:prefix*`), smart dates, and content-type scoping.\n\n**Modes:**\n- `text` (default): hybrid text search\n- `vision`: VLM-embedded page image search\n\n**Images:** set `include_image=true` to receive a base64-encoded page image with\neach result. In text mode the image is fetched from the VisionChunk covering the\nchunk's start page (empty string if no vision index exists for that page).\n\n**Bounding boxes (PDF only):** set `include_bboxes=true` to append a `bboxes` array to each\nresult, giving the merged rectangles of the chunk's text on the source PDF (raw\nPDF points, top-left origin with y extending downward) so you can overlay highlights without re-locating\nthe chunk. One rectangle per logical group; a chunk spanning two pages produces at\nleast one rectangle per page. Available for PDF documents in text mode only — returns an\nempty list for non-PDF, vision-mode, or pre-v2.2.1 chunks. When `include_bboxes=false`\n(default) the `bboxes` key is omitted.","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/search","href":"/api-reference-v3/files-processing/search-document-chunks"}]},{"group":"Users","pages":[{"title":"List company users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/users","href":"/api-reference-v3/users/list-company-users"},{"title":"Create a new company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/users","href":"/api-reference-v3/users/create-a-new-company-member"},{"title":"Get current user profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/users/me","href":"/api-reference-v3/users/get-current-user-profile"},{"title":"Update current user profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/users/me","href":"/api-reference-v3/users/update-current-user-profile"},{"title":"Retrieve a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/users/{id}","href":"/api-reference-v3/users/retrieve-a-company-member"},{"title":"Update a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/users/{id}","href":"/api-reference-v3/users/update-a-company-member"},{"title":"Delete a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/users/{id}","href":"/api-reference-v3/users/delete-a-company-member"},{"title":"Partially update a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/users/{id}","href":"/api-reference-v3/users/partially-update-a-company-member"},{"title":"List roles of a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/users/{id}/roles","href":"/api-reference-v3/users/list-roles-of-a-company-member"},{"title":"Update roles of a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/users/{id}/roles","href":"/api-reference-v3/users/update-roles-of-a-company-member"}]},{"group":"API Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/keys","href":"/api-reference-v3/api-keys/list-api-keys"},{"title":"Create API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/keys","href":"/api-reference-v3/api-keys/create-api-key"},{"title":"Retrieve API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/keys/{id}","href":"/api-reference-v3/api-keys/retrieve-api-key"},{"title":"Revoke API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/keys/{id}","href":"/api-reference-v3/api-keys/revoke-api-key"},{"title":"Update API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/keys/{id}","href":"/api-reference-v3/api-keys/update-api-key"}]},{"group":"User Groups","pages":[{"title":"List user groups","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/groups","href":"/api-reference-v3/user-groups/list-user-groups"},{"title":"Get group details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/groups/{id}","href":"/api-reference-v3/user-groups/get-group-details"},{"title":"Fully update a group (PUT)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/groups/{id}","href":"/api-reference-v3/user-groups/fully-update-a-group-put"},{"title":"Delete group of users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/groups/{id}","href":"/api-reference-v3/user-groups/delete-group-of-users"},{"title":"Partially update a group (PATCH)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /api/v3/groups/{id}","href":"/api-reference-v3/user-groups/partially-update-a-group-patch"},{"title":"List the members of a group you own","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /api/v3/groups/{id}/members","href":"/api-reference-v3/user-groups/list-the-members-of-a-group-you-own"},{"title":"Bulk replace the members of a custom group you own","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /api/v3/groups/{id}/members","href":"/api-reference-v3/user-groups/bulk-replace-the-members-of-a-custom-group-you-own"},{"title":"Add a new member to a custom group you own","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /api/v3/groups/{id}/members","href":"/api-reference-v3/user-groups/add-a-new-member-to-a-custom-group-you-own"},{"title":"Remove a user from a group you own","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /api/v3/groups/{id}/members/users/{user_id}","href":"/api-reference-v3/user-groups/remove-a-user-from-a-group-you-own"}]},{"group":"SCIM","pages":[{"title":"List or Retrieve a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/Groups","href":"/api-reference-v3/scim/list-or-retrieve-a-group"},{"title":"Create a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /scim/v2/Groups","href":"/api-reference-v3/scim/create-a-group"},{"title":"Delete a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /scim/v2/Groups","href":"/api-reference-v3/scim/delete-a-group"},{"title":"Update a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /scim/v2/Groups","href":"/api-reference-v3/scim/update-a-group"},{"title":"List or Retrieve resource types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/ResourceTypes","href":"/api-reference-v3/scim/list-or-retrieve-resource-types"},{"title":"List or Retrieve schemas","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/Schemas","href":"/api-reference-v3/scim/list-or-retrieve-schemas"},{"title":"Retrieve Service Provider Configuration","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/ServiceProviderConfig","href":"/api-reference-v3/scim/retrieve-service-provider-configuration"},{"title":"List or Retrieve users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml get /scim/v2/Users","href":"/api-reference-v3/scim/list-or-retrieve-users"},{"title":"Replace a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml put /scim/v2/Users","href":"/api-reference-v3/scim/replace-a-user"},{"title":"Create a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml post /scim/v2/Users","href":"/api-reference-v3/scim/create-a-user"},{"title":"Delete a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml delete /scim/v2/Users","href":"/api-reference-v3/scim/delete-a-user"},{"title":"Update a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3.yaml patch /scim/v2/Users","href":"/api-reference-v3/scim/update-a-user"}]}]},{"dropdown":"API V3 - Accès Company","icon":"square-terminal","groups":[{"group":"Usage","pages":[{"title":"Get your company's activity metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/metrics","href":"/api-reference-v3-company/usage/get-your-companys-activity-metrics"}]},{"group":"Models","pages":[{"title":"Set company external API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml put /api/v3/company/external_keys/{provider}","href":"/api-reference-v3-company/models/set-company-external-api-key"},{"title":"Deactivate company external API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/external_keys/{provider}","href":"/api-reference-v3-company/models/deactivate-company-external-api-key"},{"title":"List catalogued provider models","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/model-catalog","href":"/api-reference-v3-company/models/list-catalogued-provider-models"},{"title":"Export company model configuration","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/model-config/export","href":"/api-reference-v3-company/models/export-company-model-configuration"},{"title":"Import company model configuration","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/model-config/import","href":"/api-reference-v3-company/models/import-company-model-configuration"},{"title":"List custom models","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/models","href":"/api-reference-v3-company/models/list-custom-models"},{"title":"Create a custom model","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/models","href":"/api-reference-v3-company/models/create-a-custom-model"},{"title":"Get a custom model","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/models/{uuid}","href":"/api-reference-v3-company/models/get-a-custom-model"},{"title":"Delete a custom model","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/models/{uuid}","href":"/api-reference-v3-company/models/delete-a-custom-model"},{"title":"Update a custom model","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml patch /api/v3/company/models/{uuid}","href":"/api-reference-v3-company/models/update-a-custom-model"}]},{"group":"Workspaces","pages":[{"title":"List workspaces in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/workspaces","href":"/api-reference-v3-company/workspaces/list-workspaces-in-your-company"},{"title":"Create a workspace in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/workspaces","href":"/api-reference-v3-company/workspaces/create-a-workspace-in-your-company"},{"title":"Test datasource credentials","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/workspaces/datasource/test","href":"/api-reference-v3-company/workspaces/test-datasource-credentials"},{"title":"Retrieve a company workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/workspaces/{id}","href":"/api-reference-v3-company/workspaces/retrieve-a-company-workspace"},{"title":"Delete a company workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/workspaces/{id}","href":"/api-reference-v3-company/workspaces/delete-a-company-workspace"},{"title":"Update a company workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml patch /api/v3/company/workspaces/{id}","href":"/api-reference-v3-company/workspaces/update-a-company-workspace"},{"title":"Retrieve workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/workspaces/{id}/members","href":"/api-reference-v3-company/workspaces/retrieve-workspace-members"},{"title":"Bulk replace workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml put /api/v3/company/workspaces/{id}/members","href":"/api-reference-v3-company/workspaces/bulk-replace-workspace-members"},{"title":"Add a member to a workspace of your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/workspaces/{id}/members","href":"/api-reference-v3-company/workspaces/add-a-member-to-a-workspace-of-your-company"},{"title":"Remove a group from a workspace of your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/workspaces/{id}/members/groups/{group_id}","href":"/api-reference-v3-company/workspaces/remove-a-group-from-a-workspace-of-your-company"},{"title":"Remove a user from a workspace of your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/workspaces/{id}/members/users/{user_id}","href":"/api-reference-v3-company/workspaces/remove-a-user-from-a-workspace-of-your-company"}]},{"group":"Users","pages":[{"title":"List company users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/users","href":"/api-reference-v3-company/users/list-company-users"}]},{"group":"User Groups","pages":[{"title":"List the groups in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/groups","href":"/api-reference-v3-company/user-groups/list-the-groups-in-your-company"},{"title":"Create a new custom group in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/groups","href":"/api-reference-v3-company/user-groups/create-a-new-custom-group-in-your-company"},{"title":"Retrieve the information of a group in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/groups/{id}","href":"/api-reference-v3-company/user-groups/retrieve-the-information-of-a-group-in-your-company"},{"title":"Delete a custom group in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/groups/{id}","href":"/api-reference-v3-company/user-groups/delete-a-custom-group-in-your-company"},{"title":"Partially update a custom group in your company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml patch /api/v3/company/groups/{id}","href":"/api-reference-v3-company/user-groups/partially-update-a-custom-group-in-your-company"},{"title":"Get the list of members for a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml get /api/v3/company/groups/{id}/members","href":"/api-reference-v3-company/user-groups/get-the-list-of-members-for-a-group"},{"title":"Bulk replace all members for a custom group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml put /api/v3/company/groups/{id}/members","href":"/api-reference-v3-company/user-groups/bulk-replace-all-members-for-a-custom-group"},{"title":"Add a member to a custom group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml post /api/v3/company/groups/{id}/members","href":"/api-reference-v3-company/user-groups/add-a-member-to-a-custom-group"},{"title":"Remove a user from a custom group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml delete /api/v3/company/groups/{id}/members/users/{user_id}","href":"/api-reference-v3-company/user-groups/remove-a-user-from-a-custom-group"}]},{"group":"Companies","pages":[{"title":"Partially update your company (PATCH)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-company.yaml patch /api/v3/company","href":"/api-reference-v3-company/companies/partially-update-your-company-patch"}]}]},{"dropdown":"API V3 - Accès Instance","icon":"square-terminal","groups":[{"group":"Usage","pages":[{"title":"Get company activity metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}/metrics","href":"/api-reference-v3-instance/usage/get-company-activity-metrics"},{"title":"Get a company's month-to-date storage cost","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}/storage/cost","href":"/api-reference-v3-instance/usage/get-a-companys-month-to-date-storage-cost"},{"title":"Get 30-day usage histogram for a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}/usage","href":"/api-reference-v3-instance/usage/get-30-day-usage-histogram-for-a-company"},{"title":"Get a company's spend for the open billing period","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}/usage/current-period","href":"/api-reference-v3-instance/usage/get-a-companys-spend-for-the-open-billing-period"}]},{"group":"Models","pages":[{"title":"List managed ML models (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/ml-models","href":"/api-reference-v3-instance/models/list-managed-ml-models-instance-admin"},{"title":"Create a managed ML model (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/ml-models","href":"/api-reference-v3-instance/models/create-a-managed-ml-model-instance-admin"},{"title":"Get a managed ML model (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/ml-models/{uuid}","href":"/api-reference-v3-instance/models/get-a-managed-ml-model-instance-admin"},{"title":"Delete a managed ML model (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/ml-models/{uuid}","href":"/api-reference-v3-instance/models/delete-a-managed-ml-model-instance-admin"},{"title":"Update a managed ML model (instance admin)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml patch /api/v3/instance/ml-models/{uuid}","href":"/api-reference-v3-instance/models/update-a-managed-ml-model-instance-admin"},{"title":"List ML models","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/models","href":"/api-reference-v3-instance/models/list-ml-models"},{"title":"Get ML model details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/models/{uuid}","href":"/api-reference-v3-instance/models/get-ml-model-details"}]},{"group":"Workspaces","pages":[{"title":"List instance workspaces","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/workspaces","href":"/api-reference-v3-instance/workspaces/list-instance-workspaces"},{"title":"Create a new instance workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/workspaces","href":"/api-reference-v3-instance/workspaces/create-a-new-instance-workspace"},{"title":"Retrieve instance workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/workspaces/{id}","href":"/api-reference-v3-instance/workspaces/retrieve-instance-workspace"},{"title":"Partially update a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml patch /api/v3/instance/workspaces/{id}","href":"/api-reference-v3-instance/workspaces/partially-update-a-workspace"},{"title":"Get the list of members for any workspace. This endpoint can only be used by instance level admins.","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/workspaces/{id}/members","href":"/api-reference-v3-instance/workspaces/get-the-list-of-members-for-any-workspace-this-endpoint-can-only-be-used-by-instance-level-admins"},{"title":"Replace all workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml put /api/v3/instance/workspaces/{id}/members","href":"/api-reference-v3-instance/workspaces/replace-all-workspace-members"},{"title":"Add a member to a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/workspaces/{id}/members","href":"/api-reference-v3-instance/workspaces/add-a-member-to-a-workspace"},{"title":"Remove a group from a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/workspaces/{id}/members/groups/{group_id}","href":"/api-reference-v3-instance/workspaces/remove-a-group-from-a-workspace"},{"title":"Delete a user from a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/workspaces/{id}/members/users/{user_id}","href":"/api-reference-v3-instance/workspaces/delete-a-user-from-a-workspace"}]},{"group":"Users","pages":[{"title":"List instance users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/users","href":"/api-reference-v3-instance/users/list-instance-users"}]},{"group":"User Groups","pages":[{"title":"List the groups on the instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/groups","href":"/api-reference-v3-instance/user-groups/list-the-groups-on-the-instance"},{"title":"Create instance group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/groups","href":"/api-reference-v3-instance/user-groups/create-instance-group"},{"title":"Retrieve instance group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/groups/{id}","href":"/api-reference-v3-instance/user-groups/retrieve-instance-group"},{"title":"Delete a custom instance group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/groups/{id}","href":"/api-reference-v3-instance/user-groups/delete-a-custom-instance-group"},{"title":"Partially update instance group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml patch /api/v3/instance/groups/{id}","href":"/api-reference-v3-instance/user-groups/partially-update-instance-group"},{"title":"Get the list of members for a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/groups/{id}/members","href":"/api-reference-v3-instance/user-groups/get-the-list-of-members-for-a-group"},{"title":"Bulk replace all members for a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml put /api/v3/instance/groups/{id}/members","href":"/api-reference-v3-instance/user-groups/bulk-replace-all-members-for-a-group"},{"title":"Add a new member to a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/groups/{id}/members","href":"/api-reference-v3-instance/user-groups/add-a-new-member-to-a-group"},{"title":"Remove a user from a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/groups/{id}/members/users/{user_id}","href":"/api-reference-v3-instance/user-groups/remove-a-user-from-a-group"}]},{"group":"Companies","pages":[{"title":"List companies","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies","href":"/api-reference-v3-instance/companies/list-companies"},{"title":"Create a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml post /api/v3/instance/companies","href":"/api-reference-v3-instance/companies/create-a-company"},{"title":"Get company details","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml get /api/v3/instance/companies/{id}","href":"/api-reference-v3-instance/companies/get-company-details"},{"title":"Delete a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml delete /api/v3/instance/companies/{id}","href":"/api-reference-v3-instance/companies/delete-a-company"},{"title":"Partially update a company (PATCH)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v3-instance.yaml patch /api/v3/instance/companies/{id}","href":"/api-reference-v3-instance/companies/partially-update-a-company-patch"}]}]},{"dropdown":"API V2","icon":"square-terminal","groups":[{"group":"Files Search","pages":[{"title":"Filter most relevant chunks","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/filter/chunks","href":"/api-reference-v2/files-search/filter-most-relevant-chunks"},{"title":"Extract chunks from knowledge base","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/query","href":"/api-reference-v2/files-search/extract-chunks-from-knowledge-base"},{"title":"Reformulate an extraction query","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/query/reformulation","href":"/api-reference-v2/files-search/reformulate-an-extraction-query"}]},{"group":"Models","pages":[{"title":"Generate a chat completion (V2 — deprecated)","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/chat/completions","href":"/api-reference-v2/models/generate-a-chat-completion-v2-—-deprecated"},{"title":"Generate a text completion","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/completions","href":"/api-reference-v2/models/generate-a-text-completion"},{"title":"List available models","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/models","href":"/api-reference-v2/models/list-available-models"},{"title":"Create text tokens","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/tokenize","href":"/api-reference-v2/models/create-text-tokens"}]},{"group":"Files","pages":[{"title":"List available documents","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/files","href":"/api-reference-v2/files/list-available-documents"},{"title":"Upload a document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/files","href":"/api-reference-v2/files/upload-a-document"},{"title":"Retrieve a document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/files/{id}","href":"/api-reference-v2/files/retrieve-a-document"},{"title":"Delete a document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml delete /api/v2/files/{id}","href":"/api-reference-v2/files/delete-a-document"},{"title":"Generate an answer with a single document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/files/{id}/ask-question","href":"/api-reference-v2/files/generate-an-answer-with-a-single-document"},{"title":"Retrieve chunks from a document","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/files/{id}/chunks","href":"/api-reference-v2/files/retrieve-chunks-from-a-document"}]},{"group":"Workspaces","pages":[{"title":"List workspaces of a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/companies/{id}/workspaces/","href":"/api-reference-v2/workspaces/list-workspaces-of-a-company"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/companies/{id}/workspaces/create/","href":"/api-reference-v2/workspaces/create-a-workspace"},{"title":"Retrieve a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/workspaces/{id}","href":"/api-reference-v2/workspaces/retrieve-a-workspace"},{"title":"Update workspace members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /api/v2/workspaces/{id}/members/update/","href":"/api-reference-v2/workspaces/update-workspace-members"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /api/v2/workspaces/{id}/update/","href":"/api-reference-v2/workspaces/update-a-workspace"}]},{"group":"Upload Sessions","pages":[{"title":"Create an upload session","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/upload-session","href":"/api-reference-v2/upload-sessions/create-an-upload-session"},{"title":"Deactivate upload sessions","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/upload-session/deactivate","href":"/api-reference-v2/upload-sessions/deactivate-upload-sessions"},{"title":"Retrieve an upload session","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/upload-session/{uuid}","href":"/api-reference-v2/upload-sessions/retrieve-an-upload-session"},{"title":"Add a file to an upload session","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/upload-session/{uuid}","href":"/api-reference-v2/upload-sessions/add-a-file-to-an-upload-session"},{"title":"Delete an upload session","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml delete /api/v2/upload-session/{uuid}","href":"/api-reference-v2/upload-sessions/delete-an-upload-session"}]},{"group":"Users","pages":[{"title":"Create a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/companies/{id}/users/","href":"/api-reference-v2/users/create-a-company-member"},{"title":"List company members","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/users/","href":"/api-reference-v2/users/list-company-members"},{"title":"Retrieve a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/users/{id}","href":"/api-reference-v2/users/retrieve-a-company-member"},{"title":"Update groups of a company member","deprecated":true,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /api/v2/users/{id}/groups/update/","href":"/api-reference-v2/users/update-groups-of-a-company-member"},{"title":"Update roles of a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /api/v2/users/{id}/roles/update/","href":"/api-reference-v2/users/update-roles-of-a-company-member"},{"title":"Update a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /api/v2/users/{id}/update/","href":"/api-reference-v2/users/update-a-company-member"},{"title":"Update workspaces of a company member","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /api/v2/users/{id}/workspaces/update/","href":"/api-reference-v2/users/update-workspaces-of-a-company-member"}]},{"group":"Companies","pages":[{"title":"Create a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/companies/create/","href":"/api-reference-v2/companies/create-a-company"},{"title":"Retrieve a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/companies/{id}","href":"/api-reference-v2/companies/retrieve-a-company"},{"title":"Update a company","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /api/v2/companies/{id}/update/","href":"/api-reference-v2/companies/update-a-company"}]},{"group":"SCIM","pages":[{"title":"List or Retrieve a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/Groups","href":"/api-reference-v2/scim/list-or-retrieve-a-group"},{"title":"Create a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /scim/v2/Groups","href":"/api-reference-v2/scim/create-a-group"},{"title":"Delete a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml delete /scim/v2/Groups","href":"/api-reference-v2/scim/delete-a-group"},{"title":"Update a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /scim/v2/Groups","href":"/api-reference-v2/scim/update-a-group"},{"title":"List or Retrieve resource types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/ResourceTypes","href":"/api-reference-v2/scim/list-or-retrieve-resource-types"},{"title":"List or Retrieve schemas","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/Schemas","href":"/api-reference-v2/scim/list-or-retrieve-schemas"},{"title":"Retrieve Service Provider Configuration","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/ServiceProviderConfig","href":"/api-reference-v2/scim/retrieve-service-provider-configuration"},{"title":"List or Retrieve users","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /scim/v2/Users","href":"/api-reference-v2/scim/list-or-retrieve-users"},{"title":"Replace a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml put /scim/v2/Users","href":"/api-reference-v2/scim/replace-a-user"},{"title":"Create a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /scim/v2/Users","href":"/api-reference-v2/scim/create-a-user"},{"title":"Delete a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml delete /scim/v2/Users","href":"/api-reference-v2/scim/delete-a-user"},{"title":"Update a user","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml patch /scim/v2/Users","href":"/api-reference-v2/scim/update-a-user"}]},{"group":"Feedbacks","pages":[{"title":"List feedback types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/feedback/feedback-types/","href":"/api-reference-v2/feedbacks/list-feedback-types"},{"title":"List feedback types","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/feedback/feedback-types/{id}/","href":"/api-reference-v2/feedbacks/list-feedback-types-1"},{"title":"Create a completion feedback","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml post /api/v2/rate/{feedback_type_id}/{completion_id}","href":"/api-reference-v2/feedbacks/create-a-completion-feedback"}]},{"group":"Reporting","pages":[{"title":"Get company chat sessions report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/chat-sessions/","href":"/api-reference-v2/reporting/get-company-chat-sessions-report"},{"title":"Get feedbacks report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/chats-feedback/","href":"/api-reference-v2/reporting/get-feedbacks-report"},{"title":"Get company tools report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/tools/","href":"/api-reference-v2/reporting/get-company-tools-report"},{"title":"Get documents usage report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/used-documents/","href":"/api-reference-v2/reporting/get-documents-usage-report"},{"title":"Get company members report","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/reporting/users/","href":"/api-reference-v2/reporting/get-company-members-report"}]},{"group":"Platform Status","pages":[{"title":"Get platform load status","deprecated":null,"version":null,"openapi":"/api-reference/openapi-v2.yaml get /api/v2/platform/status","href":"/api-reference-v2/platform-status/get-platform-load-status"}]}]}]}]}]}]},"basePath":"","title":"Retrieve document chunks - LightOn Documentation","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}