Determines which parts of the provided context contributed to the model’s response. Attribution can be returned for a specific highlight within the response, or broken into segments across the full response.
Authorizations
Authorization
string
header
required
Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.
Body
application/json
Request model for context attribution.
Computes which parts of the context contributed to the model's response
using the ContextCite algorithm.
context
string
required
The source text given to the model.
Minimum string length: 1
query
string
required
The question sent to the model.
Minimum string length: 1
response
string
required
The model's response to the question.
Minimum string length: 1
highlight
string | null
Specific portion of the response to attribute. If omitted, attributes all segments.
Minimum string length: 1
granularity
enum<string>
default:sentence
Granularity for partitioning the context.
Available options:
sentence,
paragraph
top_k
integer
default:5
Number of top attributed sources to return per segment.
Required range: x >= 1
num_ablations
integer | null
Number of ablation experiments to run. If omitted, the endpoint computes the number dynamically. Accepts a value from 32 to 256.
return_diagnostics
boolean
default:false
If true, includes diagnostic information in the response.
Response
Success
Response model for context attribution.
response_text
string
required
The full text of the response.
segments
SegmentAttribution · object[]
Attribution results for each response segment. Populated when highlight is not provided.
Show child attributes
highlight
string | null
The highlighted portion of the response (if provided in request).
Context sources for the highlight. Present only when you provide highlight.
A context source that originated from a tool call.
This model contains the core attribution fields plus tool-specific metadata
nested in the tool field.
ToolResponseSource
RawContextSource
SystemPromptSource
Show child attributes
diagnostics
ContextAttributionDiagnostics · object | null
Diagnostic information. Populated only when return_diagnostics is true.
Show child attributes
Last modified on October 30, 2026
⌘I
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Seekr Documentation","colors":{"primary":"#007774","light":"#00DAD3","dark":"#007774"},"logo":{"light":"https://mintcdn.com/seekr/xCjyiASvtfX59CGv/logo/light.svg?fit=max\u0026auto=format\u0026n=xCjyiASvtfX59CGv\u0026q=85\u0026s=5631304b029d4cfaefb138711ec30bd9","dark":"https://mintcdn.com/seekr/xCjyiASvtfX59CGv/logo/dark.svg?fit=max\u0026auto=format\u0026n=xCjyiASvtfX59CGv\u0026q=85\u0026s=5757dbcccbf86fd9503b6b579ffeabbe","href":"/"},"favicon":"https://mintcdn.com/seekr/xCjyiASvtfX59CGv/favicon.png?fit=max\u0026auto=format\u0026n=xCjyiASvtfX59CGv\u0026q=85\u0026s=7d7b7568b4fc9d19a790b3f0b5c28d87","appearance":{"default":"system"},"background":{"color":{"light":"#F7F7F7","dark":"#101010"}},"navbar":{"links":[{"href":"https://apps.seekr.com/signup?_gl=1*1t0lzvp*_gcl_au*MjY4NjQ1Mzg3LjE3ODEyNDExMjU.","label":"Get started"}],"primary":{"type":"button","label":"Request a demo","href":"https://www.seekr.com/request-a-demo/"}},"footer":{"socials":{"youtube":"https://www.youtube.com/@seekrtechnologies","x":"https://x.com/seekrtechnology","linkedin":"https://www.linkedin.com/company/seekrtechnologies"}},"seo":{"metatags":{"google-site-verification":"RDMpUYE1uCSa_-TiRs1E4lMyGuAOUVkzmji5t4kVsEM","canonical":"https://docs.seekr.com"}},"fonts":{"heading":{"family":"Geist"},"body":{"family":"Geist"}},"styling":{"eyebrows":"breadcrumbs","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"thumbnails":{"appearance":"dark","background":"https://mintcdn.com/seekr/-zCoynlpxo7UthaS/images/og-background.png?fit=max\u0026auto=format\u0026n=-zCoynlpxo7UthaS\u0026q=85\u0026s=b40b0a1967ede7eaf3cdc61d29d8a437"},"interaction":{"drilldown":false},"metadata":{"timestamp":true},"navigation":{"global":{"tabs":[{"tab":"Self-managed","icon":"server","href":"/self-managed/flow"}],"anchors":[{"anchor":"About us","icon":"circle-info","href":"https://www.seekr.com/about/"},{"anchor":"Contact us","icon":"headset","href":"https://www.seekr.com/contact-us/"},{"anchor":"Blog","icon":"newspaper","href":"https://www.seekr.com/resource-center/?type=blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"seekr","hasAudioNarration":false,"actualSubdomain":"seekr","customDomains":["docs.seekr.com"],"gitSource":{"type":"github","owner":"seekr-technologies","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afde434c798e7e2f2a86843","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"SeekrFlow","count":263},{"language":"default","tag":"Developer","count":185},{"language":"default","tag":"API Reference","count":149},{"language":"default","tag":"Endpoints","count":147},{"language":"default","tag":"Guides","count":52},{"language":"default","tag":"SDK","count":36},{"language":"default","tag":"SeekrFlow SDK","count":36},{"language":"default","tag":"Agents","count":29},{"language":"default","tag":"Self-managed","count":29},{"language":"default","tag":"Fine-tuning","count":28}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"print.css","content":"@media print{#navbar,#sidebar,#table-of-contents,#pagination,#banner,#footer,footer,advanced-footer,.contextual-feedback-container{display:none!important}.card,.card *{border:none!important;box-shadow:none!important;background:none!important;border-radius:0!important;ring:none!important}card-group,columns{display:block!important}callout{border-left:2px solid #000!important;background:none!important;padding:0.25rem 0.5rem!important}#content-area{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}code-block{page-break-inside:avoid}step{page-break-inside:avoid}}"},{"filePath":"style.css","content":"@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600\u0026display=swap');table code{white-space:nowrap}.font-mono,code,kbd,samp,pre,pre code{font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace!important}.prose :not(pre)>code{font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace!important;padding-left:0.2em!important;padding-right:0.2em!important;background-color:rgba(65, 68, 71, 0.08)!important}.dark .prose :not(pre)>code{background-color:rgba(255, 255, 255, 0.10)!important}.eyebrow{color:#D03722!important;font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace!important;text-transform:uppercase!important;font-weight:600!important}.dark .eyebrow{color:#E2513D!important}.breadcrumb-item,.breadcrumb-item a,.breadcrumb-item svg{color:#D03722!important;font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace!important;text-transform:uppercase!important;font-weight:600!important}.dark .breadcrumb-item,.dark .breadcrumb-item a,.dark .breadcrumb-item svg{color:#E2513D!important}.breadcrumb-item svg{opacity:0.55!important}.breadcrumb-item a:hover{color:#A82B1B!important}.dark .breadcrumb-item a:hover{color:#F2705C!important}.card{background-color:#FFFFFF!important;border-color:#D5D6D7!important}.dark .card{background-color:#272628!important;border-color:#414447!important}.code-group{background-color:#FFFFFF!important;border-color:#D5D6D7!important}.code-block-background{background-color:#FFFFFF!important}.code-group .code-block-background{background-color:#F7F7F7!important}.dark .code-group{background-color:#272628!important;border-color:#414447!important}.dark .code-block-background{background-color:#272628!important}.prose{color:#101010!important}.dark .prose{color:#FFFFFF!important}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6,.prose strong,.prose b,.prose th{color:#101010!important}.dark .prose h1,.dark .prose h2,.dark .prose h3,.dark .prose h4,.dark .prose h5,.dark .prose h6,.dark .prose strong,.dark .prose b,.dark .prose th{color:#FFFFFF!important}.prose-gray{--tw-prose-bullets: #101010 !important;--tw-prose-counters: #101010 !important}.dark .prose-gray{--tw-prose-bullets: #FFFFFF !important;--tw-prose-counters: #FFFFFF !important}.prose :is(p,li,td,th,dd,blockquote,h1,h2,h3,h4,h5,h6) a,.prose :is(p,li,td,th,dd,blockquote,h1,h2,h3,h4,h5,h6) a *{color:#007774!important}.dark .prose :is(p,li,td,th,dd,blockquote,h1,h2,h3,h4,h5,h6) a,.dark .prose :is(p,li,td,th,dd,blockquote,h1,h2,h3,h4,h5,h6) a *{color:#00DAD3!important}[data-component-part=\"step-number\"] .rounded-full{background-color:transparent!important;border:2px solid #D5D6D7!important;border-radius:9999px!important;color:#101010!important;font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace!important}[data-component-part=\"step-number\"] .rounded-full *{color:#101010!important}.dark [data-component-part=\"step-number\"] .rounded-full{border-color:#414447!important;color:#FFFFFF!important}.dark [data-component-part=\"step-number\"] .rounded-full *{color:#FFFFFF!important}[data-component-part=\"step-line\"]{background-image:linear-gradient(to bottom, #D5D6D7, #D5D6D7 80%, transparent)!important}.dark [data-component-part=\"step-line\"]{background-image:linear-gradient(to bottom, #414447, #414447 80%, transparent)!important}.callout [data-component-part=\"callout-content\"]{color:#101010!important}.dark .callout [data-component-part=\"callout-content\"]{color:#FFFFFF!important}.callout[data-callout-type=\"info\"]{background-color:rgba(65, 68, 71, 0.06)!important;border-color:#D5D6D7!important}[data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg{color:#414447!important}.dark .callout[data-callout-type=\"info\"]{background-color:rgba(255, 255, 255, 0.05)!important;border-color:#595C5F!important}.dark [data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg{color:#D5D6D7!important}.callout[data-callout-type=\"tip\"]{background-color:#E9FFF5!important;border-color:#79EEB7!important}[data-callout-type=\"tip\"] [data-component-part=\"callout-icon\"] svg{color:#269B63!important}.dark .callout[data-callout-type=\"tip\"]{background-color:rgba(38, 155, 99, 0.20)!important;border-color:#269B63!important}.dark [data-callout-type=\"tip\"] [data-component-part=\"callout-icon\"] svg{color:#3FD78F!important}.callout[data-callout-type=\"note\"]{background-color:#E0EFFF!important;border-color:#8CC6FF!important}[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:#0B5EB8!important}.dark .callout[data-callout-type=\"note\"]{background-color:rgba(11, 94, 184, 0.20)!important;border-color:#0B5EB8!important}.dark [data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:#44B4FF!important}.callout[data-callout-type=\"warning\"]{background-color:#FFF7E8!important;border-color:#FFC369!important}[data-callout-type=\"warning\"] [data-component-part=\"callout-icon\"] svg{color:#E18F0D!important}.dark .callout[data-callout-type=\"warning\"]{background-color:rgba(225, 143, 13, 0.20)!important;border-color:#E18F0D!important}.dark [data-callout-type=\"warning\"] [data-component-part=\"callout-icon\"] svg{color:#FFBA4B!important}.callout[data-callout-type=\"danger\"]{background-color:#FFF2F2!important;border-color:#FF7077!important}[data-callout-type=\"danger\"] [data-component-part=\"callout-icon\"] svg{color:#D30214!important}.dark .callout[data-callout-type=\"danger\"]{background-color:rgba(211, 2, 20, 0.20)!important;border-color:#D30214!important}.dark [data-callout-type=\"danger\"] [data-component-part=\"callout-icon\"] svg{color:#FF7077!important}svg[id^=\"mermaid-\"] .node rect,svg[id^=\"mermaid-\"] .node polygon,svg[id^=\"mermaid-\"] .node circle,svg[id^=\"mermaid-\"] .node path{fill:#FFFFFF!important;stroke:#007774!important}.dark svg[id^=\"mermaid-\"] .node rect,.dark svg[id^=\"mermaid-\"] .node polygon,.dark svg[id^=\"mermaid-\"] .node circle,.dark svg[id^=\"mermaid-\"] .node path{fill:#272628!important;stroke:#00DAD3!important}svg[id^=\"mermaid-\"] .nodeLabel,svg[id^=\"mermaid-\"] .node .label,svg[id^=\"mermaid-\"] .node text{color:#101010!important;fill:#101010!important}.dark svg[id^=\"mermaid-\"] .nodeLabel,.dark svg[id^=\"mermaid-\"] .node .label,.dark svg[id^=\"mermaid-\"] .node text{color:#FFFFFF!important;fill:#FFFFFF!important}svg[id^=\"mermaid-\"] .flowchart-link,svg[id^=\"mermaid-\"] .edgePath .path{stroke:#414447!important}svg[id^=\"mermaid-\"] .marker,svg[id^=\"mermaid-\"] marker path{fill:#414447!important;stroke:#414447!important}.dark svg[id^=\"mermaid-\"] .flowchart-link,.dark svg[id^=\"mermaid-\"] .edgePath .path{stroke:#595C5F!important}.dark svg[id^=\"mermaid-\"] .marker,.dark svg[id^=\"mermaid-\"] marker path{fill:#595C5F!important;stroke:#595C5F!important}svg[id^=\"mermaid-\"] .edgeLabel,svg[id^=\"mermaid-\"] .edgeLabel p{color:#101010!important;background-color:#F7F7F7!important}svg[id^=\"mermaid-\"] .edgeLabel rect{fill:#F7F7F7!important;opacity:1!important}.dark svg[id^=\"mermaid-\"] .edgeLabel,.dark svg[id^=\"mermaid-\"] .edgeLabel p{color:#FFFFFF!important;background-color:#101010!important}.dark svg[id^=\"mermaid-\"] .edgeLabel rect{fill:#101010!important}html[data-current-path=\"/\"] .nav-tabs,html[data-current-path=\"/\"] [data-component-part=\"products-selector-trigger\"]{display:none!important}html[data-current-path^=\"/self-managed\"] .nav-tabs .nav-tabs-item[href=\"/self-managed/flow\"]:last-child{display:none!important}div:has(>[data-component-part=\"version-select-trigger\"]){order:1!important}"}],"page":{"pagePath":"flow/reference/get_context_attribution_v1_explainability_context_attributor_post","slug":"/flow/reference/get_context_attribution_v1_explainability_context_attributor_post","pageMetadata":{"title":"Get context attribution","description":"Compute context attribution scores for a model response given its source text.","openapi":"post /v1/explainability/context-attributor","href":"/flow/reference/get_context_attribution_v1_explainability_context_attributor_post"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Compute context attribution scores for a model response given its source text.\"\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{jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components};return _jsx(_components.p,{children:`Determines which parts of the provided context contributed to the model’s response. Attribution can be returned for a specific highlight within the response, or broken into segments across the full response.`})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get context attribution","description":"Compute context attribution scores for a model response given its source text.","openapi":"post /v1/explainability/context-attributor","href":"/flow/reference/get_context_attribution_v1_explainability_context_attributor_post"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Explainability"],"summary":"Get Context Attribution","description":"Compute context attribution scores for a model response given its source text.","operationId":"get_context_attribution_v1_explainability_context_attributor_post","requestBody":"ba98f8a5-8a42-4e84-9c17-313cf4b06cac","responses":{"200":"aba463b8-c99a-4e9e-a343-7a7e6e443278","422":"353ddfcb-3086-4400-8c27-4f9fe5256a65"},"security":["6d2c8570-0014-4279-8699-194c6d8ab184"],"method":"post","type":"path","servers":["9b05389a-4a02-4121-be9d-f608c5215d38"],"path":"/v1/explainability/context-attributor","baseUrlOptions":["https://flow.seekr.com"],"title":"Get Context Attribution","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"context":{"type":"string","minLength":1,"title":"Context","description":"The source text given to the model.","isRequired":true,"uniqueKey":"context","typeLabel":"string"},"query":{"type":"string","minLength":1,"title":"Query","description":"The question sent to the model.","isRequired":true,"uniqueKey":"query","typeLabel":"string"},"response":{"type":"string","minLength":1,"title":"Response","description":"The model's response to the question.","isRequired":true,"uniqueKey":"response","typeLabel":"string"},"highlight":{"oneOf":[{"type":"string","title":"Highlight","description":"Specific portion of the response to attribute. If omitted, attributes all segments.","minLength":1,"uniqueKey":"highlight.oneOf.0","typeLabel":"string"},{"type":"null","title":"Highlight","description":"Specific portion of the response to attribute. If omitted, attributes all segments.","uniqueKey":"highlight.oneOf.1","typeLabel":"null"}],"uniqueKey":"highlight","typeLabel":"string | null"},"granularity":{"type":"string","enum":["sentence","paragraph"],"title":"BaseGranularityType","description":"Granularity for partitioning the context.","default":"sentence","uniqueKey":"granularity","typeLabel":"enum\u003cstring>"},"top_k":{"type":"integer","minimum":1,"title":"Top K","description":"Number of top attributed sources to return per segment.","default":5,"uniqueKey":"top_k","typeLabel":"integer"},"num_ablations":{"oneOf":[{"type":"integer","title":"Num Ablations","description":"Number of ablation experiments to run. If omitted, the endpoint computes the number dynamically. Accepts a value from `32` to `256`.","uniqueKey":"num_ablations.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Num Ablations","description":"Number of ablation experiments to run. If omitted, the endpoint computes the number dynamically. Accepts a value from `32` to `256`.","uniqueKey":"num_ablations.oneOf.1","typeLabel":"null"}],"uniqueKey":"num_ablations","typeLabel":"integer | null"},"return_diagnostics":{"type":"boolean","title":"Return Diagnostics","description":"If true, includes diagnostic information in the response.","default":false,"uniqueKey":"return_diagnostics","typeLabel":"boolean"}},"additionalProperties":false,"type":"object","required":["context","query","response"],"title":"ContextAttributionRequest","description":"Request model for context attribution.\n\nComputes which parts of the context contributed to the model's response\nusing the ContextCite algorithm.","uniqueKey":"","typeLabel":"ContextAttributionRequest · object"},"examples":{"Example":{"title":"Example","value":{"context":"\u003cstring>","query":"\u003cstring>","response":"\u003cstring>","highlight":"\u003cstring>","granularity":"sentence","top_k":5,"num_ablations":123,"return_diagnostics":false}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"aba463b8-c99a-4e9e-a343-7a7e6e443278":{"description":"Success","content":{"application/json":{"schema":{"properties":{"response_text":{"type":"string","title":"Response Text","description":"The full text of the response.","isRequired":true,"uniqueKey":"response_text","typeLabel":"string"},"segments":{"items":{"properties":{"segment_index":{"type":"integer","title":"Segment Index","description":"Index of this segment in the response (0-based).","isRequired":true,"uniqueKey":"segments.items.[INDEX].segment_index","typeLabel":"integer"},"segment_text":{"type":"string","title":"Segment Text","description":"The text content of this segment.","isRequired":true,"uniqueKey":"segments.items.[INDEX].segment_text","typeLabel":"string"},"char_offset":{"type":"integer","title":"Char Offset","description":"Character offset of this segment in the response.","isRequired":true,"uniqueKey":"segments.items.[INDEX].char_offset","typeLabel":"integer"},"sources":{"items":{"oneOf":[{"type":"object","title":"ToolResponseSource","description":"A context source that originated from a tool call.\n\nThis model contains the core attribution fields plus tool-specific metadata\nnested in the `tool` field.","required":["id","text","attribution","offset","tool_name","tool_call_id","tool"],"properties":{"id":{"type":"integer","title":"Id","description":"Index of this source in the original context partition.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.id","typeLabel":"integer"},"text":{"type":"string","title":"Text","description":"The source text content.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.text","typeLabel":"string"},"attribution":{"type":"number","title":"Attribution","description":"Attribution score in range (-1, 1). Positive values indicate support.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.attribution","typeLabel":"number"},"offset":{"type":"integer","title":"Offset","description":"Character offset of this source in the original context.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.offset","typeLabel":"integer"},"tool_name":{"type":"string","title":"Tool Name","description":"Name of the tool that produced this source.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool_name","typeLabel":"string"},"tool_call_id":{"type":"string","title":"Tool Call Id","description":"Unique identifier for the tool call.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool_call_id","typeLabel":"string"},"tool":{"oneOf":[{"type":"object","title":"WebSearchToolContent","description":"Content specific to web search sources.","required":["url","search_query"],"properties":{"url":{"type":"string","title":"Url","description":"URL of the web page.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.0.url","typeLabel":"string"},"search_query":{"type":"string","title":"Search Query","description":"Search query the tool ran.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.0.search_query","typeLabel":"string"},"type":{"type":"string","const":"web_search","title":"Type","default":"web_search","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.0.type","typeLabel":"string"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Title of the web page.","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.0.title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Title of the web page.","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.0.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.0.title","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.0","typeLabel":"WebSearchToolContent · object"},{"type":"object","title":"FileSearchToolContent","description":"Content specific to file search sources.","properties":{"type":{"type":"string","const":"file_search","title":"Type","default":"file_search","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.type","typeLabel":"string"},"file_path":{"oneOf":[{"type":"string","title":"File Path","description":"Path of the file.","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.file_path.oneOf.0","typeLabel":"string"},{"type":"null","title":"File Path","description":"Path of the file.","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.file_path.oneOf.1","typeLabel":"null"}],"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.file_path","typeLabel":"string | null"},"file_id":{"oneOf":[{"type":"string","title":"File Id","description":"ID of the file.","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.file_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"File Id","description":"ID of the file.","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.file_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.file_id","typeLabel":"string | null"},"query":{"oneOf":[{"type":"string","title":"Query","description":"Search query the tool ran.","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.query.oneOf.0","typeLabel":"string"},{"type":"null","title":"Query","description":"Search query the tool ran.","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.query.oneOf.1","typeLabel":"null"}],"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1.query","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.1","typeLabel":"FileSearchToolContent · object"},{"type":"object","title":"CodeInterpreterToolContent","description":"Content specific to code interpreter sources.","required":["code"],"properties":{"code":{"type":"string","title":"Code","description":"Code the tool ran.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.2.code","typeLabel":"string"},"type":{"type":"string","const":"code_interpreter","title":"Type","default":"code_interpreter","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.2","typeLabel":"CodeInterpreterToolContent · object"},{"type":"object","title":"MCPToolContent","description":"Content for generic MCP tool calls.\n\nThis is the canonical type for any tool call that does not have a\ndedicated first-class handler (web_search, file_search,\ncode_interpreter). In practice this covers all MCP tools, including\n\"agents as tools\" (subagents) — at the persistence layer those are\nindistinguishable from any other MCP tool call.","required":["tool_name"],"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"Name of the tool.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.3.tool_name","typeLabel":"string"},"type":{"type":"string","const":"mcp_tool","title":"Type","default":"mcp_tool","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.3.type","typeLabel":"string"},"tool_input":{"oneOf":[{"type":"object","title":"Tool Input","description":"The arguments sent to the tool, such as the prompt sent to a subagent. Truncated to about 2,000 characters when serialized. Mirrors the sensitivity classification of the underlying run.","additionalProperties":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.3.tool_input.oneOf.0","typeLabel":"Tool Input · object"},{"type":"null","title":"Tool Input","description":"The arguments sent to the tool, such as the prompt sent to a subagent. Truncated to about 2,000 characters when serialized. Mirrors the sensitivity classification of the underlying run.","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.3.tool_input.oneOf.1","typeLabel":"null"}],"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.3.tool_input","typeLabel":"Tool Input · object | null"}},"isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool.oneOf.3","typeLabel":"MCPToolContent · object"}],"isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.tool","typeLabel":"WebSearchToolContent · object | FileSearchToolContent · object | CodeInterpreterToolContent · object | MCPToolContent · object"},"source_type":{"type":"string","const":"tool_response","title":"Source Type","default":"tool_response","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0.source_type","typeLabel":"string"}},"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.0","typeLabel":"ToolResponseSource · object"},{"type":"object","title":"RawContextSource","description":"A context source from raw context (not from a tool).\n\nThis model is used for context that was provided directly, not retrieved\nby a tool call.","required":["id","text","attribution","offset"],"properties":{"id":{"type":"integer","title":"Id","description":"Index of this source in the original context partition.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.1.id","typeLabel":"integer"},"text":{"type":"string","title":"Text","description":"The source text content.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.1.text","typeLabel":"string"},"attribution":{"type":"number","title":"Attribution","description":"Attribution score in range (-1, 1). Positive values indicate support.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.1.attribution","typeLabel":"number"},"offset":{"type":"integer","title":"Offset","description":"Character offset of this source in the original context.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.1.offset","typeLabel":"integer"},"source_type":{"type":"string","const":"raw","title":"Source Type","default":"raw","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.1.source_type","typeLabel":"string"}},"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.1","typeLabel":"RawContextSource · object"},{"type":"object","title":"SystemPromptSource","description":"A context source that originated from the agent's system prompt.\n\nIndicates that the response segment was influenced by the agent's\noperator-defined instructions rather than retrieved documents or tool outputs.\nCharacter offsets are relative to the system prompt string itself.","required":["id","text","attribution","offset"],"properties":{"id":{"type":"integer","title":"Id","description":"Index of this source in the system prompt partition.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.2.id","typeLabel":"integer"},"text":{"type":"string","title":"Text","description":"The source text content (a sentence or chunk of the system prompt).","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.2.text","typeLabel":"string"},"attribution":{"type":"number","title":"Attribution","description":"Attribution score in range (-1, 1). Positive values indicate support.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.2.attribution","typeLabel":"number"},"offset":{"type":"integer","title":"Offset","description":"Character offset of this source within the system prompt string.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.2.offset","typeLabel":"integer"},"source_type":{"type":"string","const":"system_prompt","title":"Source Type","default":"system_prompt","uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.2.source_type","typeLabel":"string"}},"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX].oneOf.2","typeLabel":"SystemPromptSource · object"}],"uniqueKey":"segments.items.[INDEX].sources.items.[INDEX]","typeLabel":"ToolResponseSource · object | RawContextSource · object | SystemPromptSource · object"},"type":"array","title":"Sources","description":"Context sources attributed to this segment.","isRequired":true,"uniqueKey":"segments.items.[INDEX].sources","typeLabel":"(ToolResponseSource · object | RawContextSource · object | SystemPromptSource · object)[]"}},"type":"object","required":["segment_index","segment_text","char_offset","sources"],"title":"SegmentAttribution","description":"Attribution results for a single response segment (e.g., a sentence).","uniqueKey":"segments.items.[INDEX]","typeLabel":"SegmentAttribution · object"},"type":"array","title":"Segments","description":"Attribution results for each response segment. Populated when highlight is not provided.","default":[],"uniqueKey":"segments","typeLabel":"SegmentAttribution · object[]"},"highlight":{"oneOf":[{"type":"string","title":"Highlight","description":"The highlighted portion of the response (if provided in request).","uniqueKey":"highlight.oneOf.0","typeLabel":"string"},{"type":"null","title":"Highlight","description":"The highlighted portion of the response (if provided in request).","uniqueKey":"highlight.oneOf.1","typeLabel":"null"}],"uniqueKey":"highlight","typeLabel":"string | null"},"sources":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"ToolResponseSource","description":"A context source that originated from a tool call.\n\nThis model contains the core attribution fields plus tool-specific metadata\nnested in the `tool` field.","required":["id","text","attribution","offset","tool_name","tool_call_id","tool"],"properties":{"id":{"type":"integer","title":"Id","description":"Index of this source in the original context partition.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.id","typeLabel":"integer"},"text":{"type":"string","title":"Text","description":"The source text content.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.text","typeLabel":"string"},"attribution":{"type":"number","title":"Attribution","description":"Attribution score in range (-1, 1). Positive values indicate support.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.attribution","typeLabel":"number"},"offset":{"type":"integer","title":"Offset","description":"Character offset of this source in the original context.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.offset","typeLabel":"integer"},"tool_name":{"type":"string","title":"Tool Name","description":"Name of the tool that produced this source.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool_name","typeLabel":"string"},"tool_call_id":{"type":"string","title":"Tool Call Id","description":"Unique identifier for the tool call.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool_call_id","typeLabel":"string"},"tool":{"oneOf":[{"type":"object","title":"WebSearchToolContent","description":"Content specific to web search sources.","required":["url","search_query"],"properties":{"url":{"type":"string","title":"Url","description":"URL of the web page.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.0.url","typeLabel":"string"},"search_query":{"type":"string","title":"Search Query","description":"Search query the tool ran.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.0.search_query","typeLabel":"string"},"type":{"type":"string","const":"web_search","title":"Type","default":"web_search","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.0.type","typeLabel":"string"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Title of the web page.","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.0.title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Title of the web page.","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.0.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.0.title","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.0","typeLabel":"WebSearchToolContent · object"},{"type":"object","title":"FileSearchToolContent","description":"Content specific to file search sources.","properties":{"type":{"type":"string","const":"file_search","title":"Type","default":"file_search","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.type","typeLabel":"string"},"file_path":{"oneOf":[{"type":"string","title":"File Path","description":"Path of the file.","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.file_path.oneOf.0","typeLabel":"string"},{"type":"null","title":"File Path","description":"Path of the file.","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.file_path.oneOf.1","typeLabel":"null"}],"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.file_path","typeLabel":"string | null"},"file_id":{"oneOf":[{"type":"string","title":"File Id","description":"ID of the file.","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.file_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"File Id","description":"ID of the file.","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.file_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.file_id","typeLabel":"string | null"},"query":{"oneOf":[{"type":"string","title":"Query","description":"Search query the tool ran.","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.query.oneOf.0","typeLabel":"string"},{"type":"null","title":"Query","description":"Search query the tool ran.","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.query.oneOf.1","typeLabel":"null"}],"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1.query","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.1","typeLabel":"FileSearchToolContent · object"},{"type":"object","title":"CodeInterpreterToolContent","description":"Content specific to code interpreter sources.","required":["code"],"properties":{"code":{"type":"string","title":"Code","description":"Code the tool ran.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.2.code","typeLabel":"string"},"type":{"type":"string","const":"code_interpreter","title":"Type","default":"code_interpreter","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.2.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.2","typeLabel":"CodeInterpreterToolContent · object"},{"type":"object","title":"MCPToolContent","description":"Content for generic MCP tool calls.\n\nThis is the canonical type for any tool call that does not have a\ndedicated first-class handler (web_search, file_search,\ncode_interpreter). In practice this covers all MCP tools, including\n\"agents as tools\" (subagents) — at the persistence layer those are\nindistinguishable from any other MCP tool call.","required":["tool_name"],"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"Name of the tool.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.3.tool_name","typeLabel":"string"},"type":{"type":"string","const":"mcp_tool","title":"Type","default":"mcp_tool","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.3.type","typeLabel":"string"},"tool_input":{"oneOf":[{"type":"object","title":"Tool Input","description":"The arguments sent to the tool, such as the prompt sent to a subagent. Truncated to about 2,000 characters when serialized. Mirrors the sensitivity classification of the underlying run.","additionalProperties":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.3.tool_input.oneOf.0","typeLabel":"Tool Input · object"},{"type":"null","title":"Tool Input","description":"The arguments sent to the tool, such as the prompt sent to a subagent. Truncated to about 2,000 characters when serialized. Mirrors the sensitivity classification of the underlying run.","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.3.tool_input.oneOf.1","typeLabel":"null"}],"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.3.tool_input","typeLabel":"Tool Input · object | null"}},"isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool.oneOf.3","typeLabel":"MCPToolContent · object"}],"isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.tool","typeLabel":"WebSearchToolContent · object | FileSearchToolContent · object | CodeInterpreterToolContent · object | MCPToolContent · object"},"source_type":{"type":"string","const":"tool_response","title":"Source Type","default":"tool_response","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0.source_type","typeLabel":"string"}},"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"ToolResponseSource · object"},{"type":"object","title":"RawContextSource","description":"A context source from raw context (not from a tool).\n\nThis model is used for context that was provided directly, not retrieved\nby a tool call.","required":["id","text","attribution","offset"],"properties":{"id":{"type":"integer","title":"Id","description":"Index of this source in the original context partition.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.1.id","typeLabel":"integer"},"text":{"type":"string","title":"Text","description":"The source text content.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.1.text","typeLabel":"string"},"attribution":{"type":"number","title":"Attribution","description":"Attribution score in range (-1, 1). Positive values indicate support.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.1.attribution","typeLabel":"number"},"offset":{"type":"integer","title":"Offset","description":"Character offset of this source in the original context.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.1.offset","typeLabel":"integer"},"source_type":{"type":"string","const":"raw","title":"Source Type","default":"raw","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.1.source_type","typeLabel":"string"}},"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"RawContextSource · object"},{"type":"object","title":"SystemPromptSource","description":"A context source that originated from the agent's system prompt.\n\nIndicates that the response segment was influenced by the agent's\noperator-defined instructions rather than retrieved documents or tool outputs.\nCharacter offsets are relative to the system prompt string itself.","required":["id","text","attribution","offset"],"properties":{"id":{"type":"integer","title":"Id","description":"Index of this source in the system prompt partition.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.2.id","typeLabel":"integer"},"text":{"type":"string","title":"Text","description":"The source text content (a sentence or chunk of the system prompt).","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.2.text","typeLabel":"string"},"attribution":{"type":"number","title":"Attribution","description":"Attribution score in range (-1, 1). Positive values indicate support.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.2.attribution","typeLabel":"number"},"offset":{"type":"integer","title":"Offset","description":"Character offset of this source within the system prompt string.","isRequired":true,"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.2.offset","typeLabel":"integer"},"source_type":{"type":"string","const":"system_prompt","title":"Source Type","default":"system_prompt","uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.2.source_type","typeLabel":"string"}},"uniqueKey":"sources.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"SystemPromptSource · object"}],"uniqueKey":"sources.oneOf.0.items.[INDEX]","typeLabel":"ToolResponseSource · object | RawContextSource · object | SystemPromptSource · object"},"title":"Sources","description":"Context sources for the highlight. Present only when you provide `highlight`.","uniqueKey":"sources.oneOf.0","typeLabel":"(ToolResponseSource · object | RawContextSource · object | SystemPromptSource · object)[]"},{"type":"null","title":"Sources","description":"Context sources for the highlight. Present only when you provide `highlight`.","uniqueKey":"sources.oneOf.1","typeLabel":"null"}],"uniqueKey":"sources","typeLabel":"(ToolResponseSource · object | RawContextSource · object | SystemPromptSource · object)[] | null"},"diagnostics":{"oneOf":[{"type":"object","title":"ContextAttributionDiagnostics","description":"Diagnostic information. Populated only when `return_diagnostics` is true.","required":["num_sources","num_ablations","lasso_alpha","mask_probability"],"properties":{"num_sources":{"type":"integer","title":"Num Sources","description":"Number of context sources after partitioning.","isRequired":true,"uniqueKey":"diagnostics.oneOf.0.num_sources","typeLabel":"integer"},"num_ablations":{"type":"integer","title":"Num Ablations","description":"Number of ablation experiments performed.","isRequired":true,"uniqueKey":"diagnostics.oneOf.0.num_ablations","typeLabel":"integer"},"lasso_alpha":{"type":"number","title":"Lasso Alpha","description":"LASSO regularization strength used.","isRequired":true,"uniqueKey":"diagnostics.oneOf.0.lasso_alpha","typeLabel":"number"},"mask_probability":{"type":"number","title":"Mask Probability","description":"Probability of including each source in ablations.","isRequired":true,"uniqueKey":"diagnostics.oneOf.0.mask_probability","typeLabel":"number"},"tool_context_note":{"oneOf":[{"type":"string","title":"Tool Context Note","description":"The reason the run had no tool context to attribute against. Returned only when the attribution used the system prompt alone, and `null` when the run had tool sources.","uniqueKey":"diagnostics.oneOf.0.tool_context_note.oneOf.0","typeLabel":"string"},{"type":"null","title":"Tool Context Note","description":"The reason the run had no tool context to attribute against. Returned only when the attribution used the system prompt alone, and `null` when the run had tool sources.","uniqueKey":"diagnostics.oneOf.0.tool_context_note.oneOf.1","typeLabel":"null"}],"uniqueKey":"diagnostics.oneOf.0.tool_context_note","typeLabel":"string | null"},"y_vector_stats":{"oneOf":[{"type":"object","title":"Y Vector Stats","description":"Statistics of the aggregated Y vector (mean, std, min, max, range).","additionalProperties":true,"uniqueKey":"diagnostics.oneOf.0.y_vector_stats.oneOf.0","typeLabel":"Y Vector Stats · object"},{"type":"null","title":"Y Vector Stats","description":"Statistics of the aggregated Y vector (mean, std, min, max, range).","uniqueKey":"diagnostics.oneOf.0.y_vector_stats.oneOf.1","typeLabel":"null"}],"uniqueKey":"diagnostics.oneOf.0.y_vector_stats","typeLabel":"Y Vector Stats · object | null"},"raw_coef_stats":{"oneOf":[{"type":"object","title":"Raw Coef Stats","description":"Statistics of raw LASSO coefficients before tanh (min, max, absmax, nonzero, sparsity).","additionalProperties":true,"uniqueKey":"diagnostics.oneOf.0.raw_coef_stats.oneOf.0","typeLabel":"Raw Coef Stats · object"},{"type":"null","title":"Raw Coef Stats","description":"Statistics of raw LASSO coefficients before tanh (min, max, absmax, nonzero, sparsity).","uniqueKey":"diagnostics.oneOf.0.raw_coef_stats.oneOf.1","typeLabel":"null"}],"uniqueKey":"diagnostics.oneOf.0.raw_coef_stats","typeLabel":"Raw Coef Stats · object | null"},"scaler_stats":{"oneOf":[{"type":"object","title":"Scaler Stats","description":"StandardScaler statistics (mean, scale arrays).","additionalProperties":true,"uniqueKey":"diagnostics.oneOf.0.scaler_stats.oneOf.0","typeLabel":"Scaler Stats · object"},{"type":"null","title":"Scaler Stats","description":"StandardScaler statistics (mean, scale arrays).","uniqueKey":"diagnostics.oneOf.0.scaler_stats.oneOf.1","typeLabel":"null"}],"uniqueKey":"diagnostics.oneOf.0.scaler_stats","typeLabel":"Scaler Stats · object | null"}},"uniqueKey":"diagnostics.oneOf.0","typeLabel":"ContextAttributionDiagnostics · object"},{"type":"null","description":"Diagnostic information. Populated only when `return_diagnostics` is true.","uniqueKey":"diagnostics.oneOf.1","typeLabel":"null"}],"uniqueKey":"diagnostics","typeLabel":"ContextAttributionDiagnostics · object | null"}},"type":"object","required":["response_text"],"title":"ContextAttributionResult","description":"Response model for context attribution.","uniqueKey":"","typeLabel":"ContextAttributionResult · object"},"examples":{"Example":{"title":"Example","value":{"response_text":"\u003cstring>","segments":[],"highlight":"\u003cstring>","sources":[{"id":123,"text":"\u003cstring>","attribution":123,"offset":123,"tool_name":"\u003cstring>","tool_call_id":"\u003cstring>","tool":{"url":"\u003cstring>","search_query":"\u003cstring>","type":"web_search","title":"\u003cstring>"},"source_type":"tool_response"}],"diagnostics":{"num_sources":123,"num_ablations":123,"lasso_alpha":123,"mask_probability":123,"tool_context_note":"\u003cstring>","y_vector_stats":{},"raw_coef_stats":{},"scaler_stats":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"353ddfcb-3086-4400-8c27-4f9fe5256a65":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","description":"Location of the error, as a list of path segments.","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","description":"Description of the error.","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","description":"Type of the error.","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"title":"Input","description":"Input that caused the error.","uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","description":"Extra context about the error.","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","description":"List of validation errors.","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"6d2c8570-0014-4279-8699-194c6d8ab184":{"APIKeyHeader":{"type":"apiKey","description":"Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.","in":"header","name":"Authorization","scopes":[],"schemeName":"APIKeyHeader"}}},"servers":{"9b05389a-4a02-4121-be9d-f608c5215d38":{"url":"https://flow.seekr.com","description":"SeekrBuild server base URL"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","description":"Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.","in":"header","name":"Authorization","scopes":[],"schemeName":"APIKeyHeader"},"schema":{"title":"Authorization","type":"string","description":"Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"Authorization"}],"title":"APIKeyHeader"}]},"originalFileLocation":"explainability.json"},"subdomain":"seekr","siteName":"Seekr Documentation","title":"Get context attribution - Seekr Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T17:47:26.540Z","gitLastModified":"2026-10-30T17:47:12.000Z","originalFileLocation":"flow/reference/get_context_attribution_v1_explainability_context_attributor_post.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Compute context attribution scores for a model response given its source text.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Seekr 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/seekr/stRf9o-EBn2ru4KI/_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/seekr/stRf9o-EBn2ru4KI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/seekr/stRf9o-EBn2ru4KI/_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/seekr/stRf9o-EBn2ru4KI/_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/seekr/stRf9o-EBn2ru4KI/_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/seekr/stRf9o-EBn2ru4KI/_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/seekr/stRf9o-EBn2ru4KI/_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/seekr/stRf9o-EBn2ru4KI/_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/seekr/stRf9o-EBn2ru4KI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get context attribution - Seekr Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Compute context attribution scores for a model response given its source text.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Seekr Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://seekr.mintlify.site/_mintlify/api/og/v2?division=Explainability\u0026amp;title=Get+context+attribution\u0026amp;description=Compute+context+attribution+scores+for+a+model+response+given+its+source+text.\u0026amp;theme=9a27bdefa0f9491fcbf5cd7a\u0026amp;signature=fc1af06f28e87d9ad3cea91df9761b2896b01554dbf746f739f645cc8f6ce15d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get context attribution - Seekr Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Compute context attribution scores for a model response given its source text.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://seekr.mintlify.site/_mintlify/api/og/v2?division=Explainability\u0026amp;title=Get+context+attribution\u0026amp;description=Compute+context+attribution+scores+for+a+model+response+given+its+source+text.\u0026amp;theme=9a27bdefa0f9491fcbf5cd7a\u0026amp;signature=fc1af06f28e87d9ad3cea91df9761b2896b01554dbf746f739f645cc8f6ce15d\">\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/seekr/stRf9o-EBn2ru4KI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Seekr Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#007774\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"RDMpUYE1uCSa_-TiRs1E4lMyGuAOUVkzmji5t4kVsEM\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/flow/reference/get_context_attribution_v1_explainability_context_attributor_post.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.seekr.com/#organization\",\"name\":\"Seekr Documentation\",\"url\":\"https://docs.seekr.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/seekr/xCjyiASvtfX59CGv/logo/light.svg?fit=max\u0026auto=format\u0026n=xCjyiASvtfX59CGv\u0026q=85\u0026s=5631304b029d4cfaefb138711ec30bd9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.seekr.com#website\",\"name\":\"Seekr Documentation\",\"url\":\"https://docs.seekr.com\",\"publisher\":{\"@id\":\"https://docs.seekr.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post#webpage\",\"url\":\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post\",\"name\":\"Get context attribution\",\"description\":\"Compute context attribution scores for a model response given its source text.\",\"dateModified\":\"2026-10-30T17:47:12.000Z\",\"isPartOf\":{\"@id\":\"https://docs.seekr.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.seekr.com/flow/reference/list_agents_v2_flow_agents__get\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get context attribution\",\"item\":\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post#apireference\",\"headline\":\"Get context attribution\",\"name\":\"Get context attribution\",\"description\":\"Compute context attribution scores for a model response given its source text.\",\"url\":\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post\",\"mainEntityOfPage\":{\"@id\":\"https://docs.seekr.com/flow/reference/get_context_attribution_v1_explainability_context_attributor_post#webpage\"},\"dateModified\":\"2026-10-30T17:47:12.000Z\",\"publisher\":{\"@id\":\"https://docs.seekr.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.seekr.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Seekr Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Seekr Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/flow/reference/get_context_attribution_v1_explainability_context_attributor_post.md","siteName":"Seekr Documentation","nav":{"global":{"tabs":[{"tab":"Self-managed","icon":"server","href":"/self-managed/flow"}],"anchors":[{"anchor":"About us","icon":"circle-info","href":"https://www.seekr.com/about/"},{"anchor":"Contact us","icon":"headset","href":"https://www.seekr.com/contact-us/"},{"anchor":"Blog","icon":"newspaper","href":"https://www.seekr.com/resource-center/?type=blog"}]},"products":[{"product":"SeekrFlow","icon":"circle-nodes","description":"Build, tune, and deploy enterprise AI agents","tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":"/flow/what-is-seekrflow"}]},{"tab":"Developer","icon":"code","menu":[{"item":"SDK","icon":"cube","pages":[{"title":"SDK","href":"/flow/sdk/getting-started"}]},{"item":"API Reference","icon":"terminal","groups":[{"group":"Overview","pages":[{"title":"Get started with the API","sidebarTitle":"Get started","href":"/flow/reference/getting-started-with-your-api"},{"title":"Error handling","href":"/flow/reference/error-handling"}]},{"group":"Endpoints","pages":[{"group":"Agents","pages":[{"title":"List agents","openapi":"get /v2/flow/agents/","href":"/flow/reference/list_agents_v2_flow_agents__get"},{"title":"Create agent","openapi":"post /v2/flow/agents/create","href":"/flow/reference/create_v2_flow_agents_create_post"},{"title":"Get agent","openapi":"get /v2/flow/agents/{agent_id}","href":"/flow/reference/get_agent_by_id_v2_flow_agents__agent_id__get"},{"title":"Update agent","openapi":"patch /v2/flow/agents/{agent_id}","href":"/flow/reference/patch_v2_flow_agents__agent_id__patch"},{"title":"Preview agent update","openapi":"patch /v2/flow/agents/{agent_id}/diff","href":"/flow/reference/diff_v2_flow_agents__agent_id__diff_patch"},{"title":"Replace agent","openapi":"put /v2/flow/agents/{agent_id}/update","deprecated":true,"href":"/flow/reference/update_v2_flow_agents__agent_id__update_put"},{"title":"Promote agent","openapi":"put /v2/flow/agents/{agent_id}/promote","href":"/flow/reference/promote_v2_flow_agents__agent_id__promote_put"},{"title":"Demote agent","openapi":"put /v2/flow/agents/{agent_id}/demote","href":"/flow/reference/demote_v2_flow_agents__agent_id__demote_put"},{"title":"Delete agent","openapi":"delete /v2/flow/agents/{agent_id}","href":"/flow/reference/delete_v2_flow_agents__agent_id__delete"},{"group":"V1 (deprecated)","pages":[{"title":"List agents v1","openapi":"get /v1/flow/agents/","deprecated":true,"href":"/flow/reference/list_agents_v1_flow_agents__get"},{"title":"Create agent v1","openapi":"post /v1/flow/agents/create","deprecated":true,"href":"/flow/reference/create_v1_flow_agents_create_post"},{"title":"Get agent v1","openapi":"get /v1/flow/agents/{agent_id}","deprecated":true,"href":"/flow/reference/get_agent_by_id_v1_flow_agents__agent_id__get"},{"title":"Update agent v1","openapi":"patch /v1/flow/agents/{agent_id}","deprecated":true,"href":"/flow/reference/patch_v1_flow_agents__agent_id__patch"},{"title":"Preview agent update v1","openapi":"patch /v1/flow/agents/{agent_id}/diff","deprecated":true,"href":"/flow/reference/diff_v1_flow_agents__agent_id__diff_patch"},{"title":"Replace agent v1","openapi":"put /v1/flow/agents/{agent_id}/update","deprecated":true,"href":"/flow/reference/update_v1_flow_agents__agent_id__update_put"},{"title":"Promote agent v1","openapi":"put /v1/flow/agents/{agent_id}/promote","deprecated":true,"href":"/flow/reference/promote_v1_flow_agents__agent_id__promote_put"},{"title":"Demote agent v1","openapi":"put /v1/flow/agents/{agent_id}/demote","deprecated":true,"href":"/flow/reference/demote_v1_flow_agents__agent_id__demote_put"},{"title":"Delete agent v1","openapi":"delete /v1/flow/agents/{agent_id}","deprecated":true,"href":"/flow/reference/delete_v1_flow_agents__agent_id__delete"}]}]},{"group":"Alignment","pages":[{"title":"List alignment jobs","openapi":"get /v1/flow/alignment","deprecated":true,"href":"/flow/reference/alignment_list_v1_flow_alignment_get"},{"title":"List file conversion jobs","openapi":"get /v1/flow/alignment/ingestion","deprecated":true,"href":"/flow/reference/ingestion_list_v1_flow_alignment_ingestion_get"},{"title":"Convert PDF files to markdown","openapi":"post /v1/flow/alignment/ingestion","deprecated":true,"href":"/flow/reference/ingest_files_v1_flow_alignment_ingestion_post"},{"title":"Get file conversion job","openapi":"get /v1/flow/alignment/ingestion/{ingestion_job_id}","deprecated":true,"href":"/flow/reference/ingestion_get_v1_flow_alignment_ingestion__ingestion_job_id__get"},{"title":"Get alignment job","openapi":"get /v1/flow/alignment/{alignment_job_id}","deprecated":true,"href":"/flow/reference/alignment_get_v1_flow_alignment__alignment_job_id__get"},{"title":"Delete alignment job","openapi":"delete /v1/flow/alignment/{alignment_job_id}","deprecated":true,"href":"/flow/reference/alignment_delete_v1_flow_alignment__alignment_job_id__delete"},{"title":"Generate training pairs","openapi":"post /v1/flow/alignment/generate","deprecated":true,"href":"/flow/reference/alignment_generate_v1_flow_alignment_generate_post"},{"title":"Cancel alignment job","openapi":"post /v1/flow/alignment/{alignment_job_id}/cancel","deprecated":true,"href":"/flow/reference/cancel_alignment_job_v1_flow_alignment__alignment_job_id__cancel_post"},{"title":"Get alignment metadata","openapi":"get /v1/flow/alignment/{alignment_job_id}/outputs","deprecated":true,"href":"/flow/reference/alignment_outputs_v1_flow_alignment__alignment_job_id__outputs_get"}]},{"group":"Data jobs","root":{"title":"Data jobs","href":"/flow/reference/data-jobs"},"pages":[{"title":"Submit data job","openapi":"post /v1/flow/data-jobs","href":"/flow/reference/submit_data_job_v1_flow_data_jobs_post"},{"title":"List data jobs","openapi":"get /v1/flow/data-jobs","href":"/flow/reference/get_data_jobs_v1_flow_data_jobs_get"},{"title":"Get data job","openapi":"get /v1/flow/data-jobs/{data_job_id}","href":"/flow/reference/get_data_job_v1_flow_data_jobs__data_job_id__get"},{"title":"Update data job","openapi":"patch /v1/flow/data-jobs/{data_job_id}","href":"/flow/reference/patch_data_job_v1_flow_data_jobs__data_job_id__patch"},{"title":"Start data job alignment","openapi":"post /v1/flow/data-jobs/{data_job_id}/start","href":"/flow/reference/start_data_job_alignment_v1_flow_data_jobs__data_job_id__start_post"},{"title":"Add files to data job","openapi":"post /v1/flow/data-jobs/{data_job_id}/add-files","href":"/flow/reference/add_files_to_data_job_v1_flow_data_jobs__data_job_id__add_files_post"},{"title":"Remove files from data job","openapi":"post /v1/flow/data-jobs/{data_job_id}/remove-files","href":"/flow/reference/remove_files_from_data_job_v1_flow_data_jobs__data_job_id__remove_files_post"},{"title":"Clone data job","openapi":"post /v1/flow/data-jobs/{data_job_id}/clone","href":"/flow/reference/clone_data_job_v1_flow_data_jobs__data_job_id__clone_post"},{"title":"Cancel data job","openapi":"post /v1/flow/data-jobs/{data_job_id}/cancel","href":"/flow/reference/cancel_data_job_v1_flow_data_jobs__data_job_id__cancel_post"},{"title":"Generate system prompt","openapi":"post /v1/flow/data-jobs/gen_system_prompt","href":"/flow/reference/generate_system_prompt_v1_flow_data_jobs_gen_system_prompt_post"},{"title":"Delete data job","openapi":"delete /v1/flow/data-jobs/{data_job_id}","href":"/flow/reference/delete_data_job_v1_flow_data_jobs__data_job_id__delete"}]},{"group":"Deployments","pages":[{"title":"Create deployment","openapi":"post /v1/flow/deployments","href":"/flow/reference/deploy_v1_flow_deployments_post"},{"title":"List deployments","openapi":"get /v1/flow/deployments","href":"/flow/reference/get_deployments_v1_flow_deployments_get"},{"title":"Get deployment","openapi":"get /v1/flow/deployments/{deployment_id}","href":"/flow/reference/deployment_by_id_v1_flow_deployments__deployment_id__get"},{"title":"Update deployment","openapi":"patch /v1/flow/deployments/{deployment_id}","href":"/flow/reference/update_deployment_v1_flow_deployments__deployment_id__patch"},{"title":"Promote deployment","openapi":"put /v1/flow/deployments/{deployment_id}/promote","href":"/flow/reference/promote_v1_flow_deployments__deployment_id__promote_put"},{"title":"Demote deployment","openapi":"put /v1/flow/deployments/{deployment_id}/demote","href":"/flow/reference/demote_v1_flow_deployments__deployment_id__demote_put"},{"title":"Get deployment metrics","openapi":"get /v1/flow/metrics/deployments","href":"/flow/reference/get_deployment_metrics_v1_flow_metrics_deployments_get"},{"title":"Get deployment event","description":"Retrieve the event history for a specific deployment.","openapi":"get /v1/flow/events/deployments/{deployment_id}","href":"/flow/reference/get_deployment_events_by_id_v1_flow_events_deployments__deployment_id__get"}]},{"group":"Explainability","pages":[{"title":"Get context attribution","openapi":"post /v1/explainability/context-attributor","href":"/flow/reference/get_context_attribution_v1_explainability_context_attributor_post"},{"title":"Get context attribution from run","description":"Compute context attribution scores for the response generated during a specific agent run.","openapi":"post /v1/explainability/context-attributor-from-run","href":"/flow/reference/get_context_attribution_from_run_v1_explainability_context_attributor_from_run_post"}]},{"group":"Files","pages":[{"title":"Upload file","openapi":"put /v1/flow/files","href":"/flow/reference/file_upload_v1_flow_files_put"},{"title":"Bulk upload files","openapi":"put /v1/flow/bulk_files","deprecated":true,"href":"/flow/reference/bulk_file_upload_v1_flow_bulk_files_put"},{"title":"List files","openapi":"get /v1/flow/files","href":"/flow/reference/list_files_v1_flow_files_get"},{"title":"Get file details","openapi":"get /v1/flow/files/{file_id}","href":"/flow/reference/file_download_v1_flow_files__file_id__get"},{"title":"Get file contents","openapi":"get /v1/flow/files/{file_id}/content","href":"/flow/reference/file_download_content_v1_flow_files__file_id__content_get"},{"title":"Get file token count","openapi":"get /v1/flow/files/token-counts","href":"/flow/reference/file_token_counts_v1_flow_files_token_counts_get"},{"title":"Change file name","openapi":"put /v1/flow/files/{file_id}/rename","href":"/flow/reference/rename_file_v1_flow_files__file_id__rename_put"},{"title":"Delete file","openapi":"delete /v1/flow/files/{file_id}","href":"/flow/reference/delete_file_v1_flow_files__file_id__delete"},{"title":"Validate file metadata","openapi":"post /v1/flow/files/validate_metadata","deprecated":true,"href":"/flow/reference/file_validate_metadata_v1_flow_files_validate_metadata_post"},{"title":"Get file event","openapi":"get /v1/flow/events/files/{file_id}","href":"/flow/reference/get_file_events_by_id_v1_flow_events_files__file_id__get"},{"title":"List file vector databases","openapi":"get /v1/flow/files/{file_id}/vector-dbs","href":"/flow/reference/get_file_vector_dbs_v1_flow_files__file_id__vector_dbs_get"},{"title":"List file data jobs","openapi":"get /v1/flow/files/{file_id}/data-jobs","href":"/flow/reference/get_file_data_jobs_v1_flow_files__file_id__data_jobs_get"},{"title":"List derived files","openapi":"get /v1/flow/files/{file_id}/derived-files","href":"/flow/reference/get_file_derived_files_v1_flow_files__file_id__derived_files_get"},{"title":"Convert PDF files to markdown","openapi":"post /v1/flow/ingestion","href":"/flow/reference/ingest_files_v1_flow_ingestion_post"},{"title":"List file conversion jobs","openapi":"get /v1/flow/ingestion","href":"/flow/reference/ingestion_list_v1_flow_ingestion_get"},{"title":"Get file conversion job","openapi":"get /v1/flow/ingestion/{ingestion_job_id}","href":"/flow/reference/ingestion_get_v1_flow_ingestion__ingestion_job_id__get"}]},{"group":"Fine-tuning","pages":[{"title":"Create fine-tuning job","openapi":"post /v1/flow/fine-tune","href":"/flow/reference/fine_tune_v1_flow_fine_tune_post"},{"title":"List fine-tuning jobs","openapi":"get /v1/flow/fine-tunes","href":"/flow/reference/list_fine_tune_v1_flow_fine_tunes_get"},{"title":"Get fine-tuning job","openapi":"get /v1/flow/fine-tunes/{fine_tune_id}","href":"/flow/reference/get_fine_tune_v1_flow_fine_tunes__fine_tune_id__get"},{"title":"Modify fine-tuning job","openapi":"patch /v1/flow/fine-tunes/{fine_tune_id}","href":"/flow/reference/patch_fine_tune_v1_flow_fine_tunes__fine_tune_id__patch"},{"title":"Cancel fine-tuning job","openapi":"put /v1/flow/fine-tunes/{fine_tune_id}/cancel","href":"/flow/reference/cancel_fine_tune_v1_flow_fine_tunes__fine_tune_id__cancel_put"},{"title":"Delete fine-tuning job","openapi":"delete /v1/flow/fine-tunes/{fine_tune_id}","href":"/flow/reference/delete_fine_tune_v1_flow_fine_tunes__fine_tune_id__delete"},{"title":"Create or update project","openapi":"post /v1/flow/projects","href":"/flow/reference/upsert_project_v1_flow_projects_post"},{"title":"List projects","openapi":"get /v1/flow/projects","href":"/flow/reference/get_projects_v1_flow_projects_get"},{"title":"Get project","openapi":"get /v1/flow/projects/{project_id}","href":"/flow/reference/get_project_by_id_v1_flow_projects__project_id__get"},{"title":"Delete project","openapi":"delete /v1/flow/projects/{project_id}","href":"/flow/reference/delete_project_v1_flow_projects__project_id__delete"},{"title":"Get fine-tuning event","openapi":"get /v1/flow/events/finetunes/{finetune_id}","href":"/flow/reference/get_finetune_events_by_id_v1_flow_events_finetunes__finetune_id__get"},{"title":"Get influential training data","openapi":"get /v1/flow/explain/models/{model_id}/influential-finetuning-data","href":"/flow/reference/get_influential_training_data_route_v1_flow_explain_models__model_id__influential_finetuning_data_get"},{"title":"Download fine-tune","openapi":"get /v1/flow/fine-tunes/{fine_tune_id}/download","href":"/flow/reference/download_fine_tune_v1_flow_fine_tunes__fine_tune_id__download_get"},{"title":"Get fine-tune lineage","openapi":"get /v1/flow/fine-tunes/{fine_tune_id}/lineage","href":"/flow/reference/get_fine_tune_lineage_v1_flow_fine_tunes__fine_tune_id__lineage_get"}]},{"group":"Functions","pages":[{"title":"Create function","openapi":"post /v1/functions","href":"/flow/reference/upload_python_function_v1_functions_post"},{"title":"List functions","openapi":"get /v1/functions","href":"/flow/reference/list_python_function_endpoint_v1_functions_get"},{"title":"Get function","openapi":"get /v1/functions/{function_id}","href":"/flow/reference/get_python_function_endpoint_v1_functions__function_id__get"},{"title":"Update function","openapi":"patch /v1/functions/{function_id}","href":"/flow/reference/update_python_function_endpoint_v1_functions__function_id__patch"},{"title":"Delete function","openapi":"delete /v1/functions/{function_id}","href":"/flow/reference/delete_python_function_endpoint_v1_functions__function_id__delete"}]},{"group":"Health","pages":[{"title":"Get health","openapi":"get /v1/flow/health","href":"/flow/reference/get_health_external_v1_flow_health_get"},{"title":"Check inference health","openapi":"get /v1/inference/health","href":"/flow/reference/health_v1_inference_health_get"}]},{"group":"Inference","pages":[{"title":"Create chat completion","openapi":"post /v1/inference/chat/completions","href":"/flow/reference/route_chat_completion_v1_inference_chat_completions_post"},{"title":"Create completion","openapi":"post /v1/inference/completions","href":"/flow/reference/route_completion_v1_inference_completions_post"},{"title":"Create embedding","openapi":"post /v1/inference/embeddings","href":"/flow/reference/route_embeddings_v1_inference_embeddings_post"},{"title":"Transcribe audio","openapi":"post /v1/inference/audio/transcriptions","href":"/flow/reference/route_v1_audio_transcriptions_v1_inference_audio_transcriptions_post"},{"group":"Batch inference","pages":[{"title":"Create inference job","openapi":"post /v1/inference/jobs","href":"/flow/reference/create_inference_job_v1_inference_jobs_post"},{"title":"Add inference job requests","openapi":"post /v1/inference/jobs/{job_id}/requests","href":"/flow/reference/append_inference_job_requests_v1_inference_jobs__job_id__requests_post"},{"title":"Get inference job request","openapi":"get /v1/inference/jobs/{job_id}/requests/{index}","href":"/flow/reference/read_inference_job_request_v1_inference_jobs__job_id__requests__index__get"},{"title":"Submit inference job","openapi":"post /v1/inference/jobs/{job_id}/submit","href":"/flow/reference/submit_inference_job_v1_inference_jobs__job_id__submit_post"},{"title":"Get inference job status","openapi":"get /v1/inference/jobs/{job_id}","href":"/flow/reference/read_inference_job_status_v1_inference_jobs__job_id__get"},{"title":"List inference job results","openapi":"get /v1/inference/jobs/{job_id}/results","href":"/flow/reference/read_inference_job_results_v1_inference_jobs__job_id__results_get"},{"title":"Acknowledge inference job results","openapi":"post /v1/inference/jobs/{job_id}/results/ack","href":"/flow/reference/acknowledge_inference_job_results_v1_inference_jobs__job_id__results_ack_post"},{"title":"Cancel inference job","openapi":"post /v1/inference/jobs/{job_id}/cancel","href":"/flow/reference/cancel_inference_job_v1_inference_jobs__job_id__cancel_post"}]}]},{"group":"Models","pages":[{"title":"List models","openapi":"get /v1/flow/models","href":"/flow/reference/ml_models_v1_flow_models_get"},{"title":"Get model","openapi":"get /v1/flow/models/info","href":"/flow/reference/ml_model_by_model_id_v1_flow_models_info_get"},{"title":"Get model revision","openapi":"get /v1/flow/models/hf_revision","href":"/flow/reference/ml_model_hf_revision_by_model_name_v1_flow_models_hf_revision_get"}]},{"group":"Observability","root":{"title":"Observability","href":"/flow/reference/observability"},"pages":[{"title":"Query spans","openapi":"post /v1/observability/spans","href":"/flow/reference/query_spans_v1_observability_spans_post"},{"title":"Get span","openapi":"get /v1/observability/spans/{span_id}","href":"/flow/reference/retrieve_span_v1_observability_spans__span_id__get"}]},{"group":"Ranking","pages":[{"title":"Rerank documents","openapi":"post /v1/inference/rerank","href":"/flow/reference/route_v1_rerank_v1_inference_rerank_post"},{"title":"Score text","openapi":"post /v1/inference/score","href":"/flow/reference/route_v1_score_v1_inference_score_post"}]},{"group":"Runs","pages":[{"title":"Run agent","openapi":"post /v1/threads/{thread_id}/runs","href":"/flow/reference/run_agent_v1_threads__thread_id__runs_post"},{"title":"List runs","openapi":"get /v1/threads/{thread_id}/runs","href":"/flow/reference/list_runs_endpoint_v1_threads__thread_id__runs_get"},{"title":"Stream agent run","openapi":"post /v1/threads/{thread_id}/runs/stream","href":"/flow/reference/run_agent_stream_v1_threads__thread_id__runs_stream_post"},{"title":"Cancel run","openapi":"post /v1/threads/{thread_id}/runs/{run_id}/cancel","href":"/flow/reference/cancel_run_v1_threads__thread_id__runs__run_id__cancel_post"},{"title":"Attach to run stream","openapi":"get /v1/threads/{thread_id}/runs/{run_id}/attach","href":"/flow/reference/attach_to_run_v1_threads__thread_id__runs__run_id__attach_get"},{"title":"Get run","openapi":"get /v1/threads/{thread_id}/runs/{run_id}","href":"/flow/reference/get_run_endpoint_v1_threads__thread_id__runs__run_id__get"},{"title":"Stream agent run (Vercel AI SDK)","openapi":"post /v1/threads/{thread_id}/runs/stream/vercel","href":"/flow/reference/run_agent_stream_vercel_v1_threads__thread_id__runs_stream_vercel_post"}]},{"group":"Threads","pages":[{"title":"Create thread","openapi":"post /v1/threads","href":"/flow/reference/create_thread_endpoint_v1_threads_post"},{"title":"List threads","openapi":"get /v1/threads","href":"/flow/reference/list_threads_endpoint_v1_threads_get"},{"title":"Get thread","openapi":"get /v1/threads/{thread_id}","href":"/flow/reference/get_thread_endpoint_v1_threads__thread_id__get"},{"title":"Delete thread","openapi":"delete /v1/threads/{thread_id}","href":"/flow/reference/delete_thread_endpoint_v1_threads__thread_id__delete"},{"title":"Create message","openapi":"post /v1/threads/{thread_id}/messages","href":"/flow/reference/create_message_endpoint_v1_threads__thread_id__messages_post"},{"title":"List messages","openapi":"get /v1/threads/{thread_id}/messages","href":"/flow/reference/list_messages_endpoint_v1_threads__thread_id__messages_get"},{"title":"Get message","openapi":"get /v1/threads/{thread_id}/messages/{message_id}","href":"/flow/reference/get_message_endpoint_v1_threads__thread_id__messages__message_id__get"},{"title":"Update message","openapi":"patch /v1/threads/{thread_id}/messages/{message_id}","href":"/flow/reference/update_message_endpoint_v1_threads__thread_id__messages__message_id__patch"},{"title":"Delete message","openapi":"delete /v1/threads/{thread_id}/messages/{message_id}","href":"/flow/reference/delete_message_endpoint_v1_threads__thread_id__messages__message_id__delete"}]},{"group":"Tools","pages":[{"title":"List tools","openapi":"get /v1/flow/tools","href":"/flow/reference/list_tools_v1_flow_tools_get"},{"title":"Create tool","openapi":"post /v1/flow/tools","href":"/flow/reference/create_tool_v1_flow_tools_post"},{"title":"Get tool","openapi":"get /v1/flow/tools/{tool_id}","href":"/flow/reference/get_tool_v1_flow_tools__tool_id__get"},{"title":"Update tool","openapi":"patch /v1/flow/tools/{tool_id}","href":"/flow/reference/patch_tool_v1_flow_tools__tool_id__patch"},{"title":"Preview tool update","openapi":"patch /v1/flow/tools/{tool_id}/diff","href":"/flow/reference/diff_tool_changes_v1_flow_tools__tool_id__diff_patch"},{"title":"Replace tool","openapi":"put /v1/flow/tools/{tool_id}","deprecated":true,"href":"/flow/reference/update_tool_v1_flow_tools__tool_id__put"},{"title":"Clone tool","openapi":"post /v1/flow/tools/{tool_id}/duplicate","href":"/flow/reference/duplicate_tool_v1_flow_tools__tool_id__duplicate_post"},{"title":"List linked agents","openapi":"get /v1/flow/tools/{tool_id}/agents","href":"/flow/reference/get_agents_for_tool_v1_flow_tools__tool_id__agents_get"},{"title":"Delete tool","openapi":"delete /v1/flow/tools/{tool_id}","href":"/flow/reference/delete_tool_v1_flow_tools__tool_id__delete"}]},{"group":"Vector database","root":{"title":"Vector database","href":"/flow/reference/vector-database"},"pages":[{"title":"Create vector database","openapi":"post /v1/flow/vectordb","href":"/flow/reference/create_vector_database_route_v1_flow_vectordb_post"},{"title":"List vector databases","openapi":"get /v1/flow/vectordb","href":"/flow/reference/list_vector_databases_v1_flow_vectordb_get"},{"title":"Get vector database","openapi":"get /v1/flow/vectordb/{database_id}","href":"/flow/reference/get_vector_database_route_v1_flow_vectordb__database_id__get"},{"title":"Update vector database","openapi":"patch /v1/flow/vectordb/{database_id}","href":"/flow/reference/update_vector_database_route_v1_flow_vectordb__database_id__patch"},{"title":"Delete vector database","openapi":"delete /v1/flow/vectordb/{database_id}","href":"/flow/reference/delete_vector_database_route_v1_flow_vectordb__database_id__delete"},{"title":"Create vector database ingestion job","openapi":"post /v1/flow/vectordb/{database_id}/ingestion","href":"/flow/reference/create_vector_database_ingestion_job_v1_flow_vectordb__database_id__ingestion_post"},{"title":"List vector database ingestion jobs","openapi":"get /v1/flow/vectordb/{database_id}/ingestion","href":"/flow/reference/list_vector_database_ingestion_jobs_v1_flow_vectordb__database_id__ingestion_get"},{"title":"Get vector database ingestion job status","openapi":"get /v1/flow/vectordb/{database_id}/ingestion/{job_id}","href":"/flow/reference/get_vector_database_ingestion_job_v1_flow_vectordb__database_id__ingestion__job_id__get"},{"title":"List files in vector database","openapi":"get /v1/flow/vectordb/{database_id}/files","href":"/flow/reference/list_vector_database_files_v1_flow_vectordb__database_id__files_get"},{"title":"Delete file in vector database","openapi":"delete /v1/flow/vectordb/{database_id}/files/{file_id}","href":"/flow/reference/delete_vector_database_file_v1_flow_vectordb__database_id__files__file_id__delete"},{"title":"Get vector database chunk","openapi":"get /v1/flow/vectordb/{database_id}/chunk/{chunk_id}","href":"/flow/reference/get_vector_database_chunk_v1_flow_vectordb__database_id__chunk__chunk_id__get"},{"title":"List chunks","openapi":"post /v1/flow/vectordb/{database_id}/chunks","href":"/flow/reference/list_vector_database_chunks_v1_flow_vectordb__database_id__chunks_post"},{"title":"Update chunk metadata","openapi":"patch /v1/flow/vectordb/{database_id}/metadata","href":"/flow/reference/update_vector_database_metadata_v1_flow_vectordb__database_id__metadata_patch"},{"title":"Get metadata snapshot","openapi":"get /v1/flow/vectordb/{database_id}/metadata","href":"/flow/reference/get_vector_database_metadata_snapshot_v1_flow_vectordb__database_id__metadata_get"},{"title":"Generate metadata snapshot","openapi":"post /v1/flow/vectordb/{database_id}/metadata","href":"/flow/reference/generate_vector_database_metadata_snapshot_v1_flow_vectordb__database_id__metadata_post"},{"title":"List vector database tools","openapi":"get /v1/flow/vectordb/{database_id}/tools","href":"/flow/reference/get_tools_for_vector_database_v1_flow_vectordb__database_id__tools_get"},{"title":"List vector database data jobs","openapi":"get /v1/flow/vectordb/{database_id}/data-jobs","href":"/flow/reference/get_data_jobs_for_vector_database_v1_flow_vectordb__database_id__data_jobs_get"}]},{"group":"Versions","pages":[{"title":"Get versions","openapi":"get /v1/flow/versions","href":"/flow/reference/get_versions_v1_flow_versions_get"}]}]}]}]},{"tab":"Recipes","icon":"flask","pages":[{"title":"Recipes","href":"/flow/recipes"}]},{"tab":"Release notes","icon":"bullhorn","pages":[{"title":"Release notes","href":"/flow/changelog/2026"}]}]},{"product":"SeekrGuard","icon":"shield-halved","description":"Evaluate AI models for safety, quality, and risk","pages":[{"title":"SeekrGuard","href":"/guard/what-is-seekrguard"}]},{"product":"Self-managed","icon":"server","description":"Deploy and operate the Seekr platform in your own environment","pages":[{"title":"Self-managed","href":"/self-managed/flow"}]}]},"basePath":"","title":"Get context attribution - Seekr Documentation","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B6WFFOBL.js","utils-BN5um1KA.js","cloneDeep-C3md22mN.js","_Uint8Array-DLlL8L26.js","isObject-FP1Yky1u.js","utils-BSmbkXJR.js","addUniqueKeysToSchema-2tqcVnUE.js","snippetPresets-CtWfvr2J.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DkKHBy30.js","isEqual-O3q7y6pq.js","usePlaygroundInputsStore-Brc5H9UJ.js","shallow-C4L4xvbs.js","getApiPlaygroundDisplay-2bxyq_aI.js","CodeSnippet-BJu8ddd5.js","CodeSnippets-dazWmoqB.js","Page-CnLhKuUV.js","getPastedJson-Chy3Qa1S.js","icon-CyO7h3jh.js","MethodPill-Dle0_91v.js","DuplicateIcon-CVvWAf4a.js","createIcon-Di07A27B.js","DynamicMarkdown-C4w9kavL.js","SectionHeading-XiBebVYC.js","axios-vUo_bRtp.js","Markdown-DTeL0SpS.js","dist-OCScizqf.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-KcneGfMY.js"]}