Use this endpoint to fetch all relations associated with a specific source.
This is useful when you need to understand the relationships between entities within a source.
Provide the source ID in the request body along with your tenant information to get the relations for that source.
GET
/
list
/
graph-relations-by-id
Error
A valid request URL is required to generate request examples
Hit the Try it button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.
# Async usage is similar, just use async_client and awaitrelations = client.sources.get_graph_relations( tenant_id="tenant_1234", source_id="source_1234", sub_tenant_id="sub_tenant_4567")
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cortex SDK","colors":{"primary":"#7C3AED","light":"#A78BFA","dark":"#5B21B6"},"logo":{"light":"https://mintcdn.com/cortex-ad5578da/93r4PO4gUrI78Ocp/logo/light.svg?fit=max\u0026auto=format\u0026n=93r4PO4gUrI78Ocp\u0026q=85\u0026s=714ff10a4ad07c6395ce3055058ad6b0","dark":"https://mintcdn.com/cortex-ad5578da/93r4PO4gUrI78Ocp/logo/dark.svg?fit=max\u0026auto=format\u0026n=93r4PO4gUrI78Ocp\u0026q=85\u0026s=60bcfb5d423a574bd4d5d9e215e9c9ab"},"favicon":"/favicon.svg","navbar":{"links":[{"label":"Support","href":"mailto:founders@usecortex.ai"}],"primary":{"type":"button","label":"Website","href":"https://www.usecortex.ai"}},"contextual":{"options":["copy","chatgpt","claude","perplexity"]},"styling":{"latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cortex-ad5578da","hasAudioNarration":false,"actualSubdomain":"cortex-ad5578da","customDomains":[],"gitSource":{"type":"github","owner":"usefindr","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e71991916e8ce404fe66","collectionId":"5eb66c18-0ef1-4b97-af07-5d10c6c0b9a1","schemaVersion":"v2"},"entitlements":{},"buildId":"6ae929af9035b3471a2599bb:success","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Guides","count":19},{"language":"default","tag":"Essentials","count":11},{"language":"default","tag":"Embeddings","count":5},{"language":"default","tag":"Knowledge Management","count":5},{"language":"default","tag":"Use Cases","count":5},{"language":"default","tag":"Knowledge Ingestion","count":4},{"language":"default","tag":"Query \u0026 Retrieval","count":3},{"language":"default","tag":"API Documentation","count":3},{"language":"default","tag":"Get Started","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"*,*::before,*::after{box-sizing:border-box}#content-side-layout div.code-group{display:none}.panel.w-full.xl\\:w-\\[28rem\\].mb-6.relative.max-h-\\[calc\\(100\\%-32px\\)\\].overflow-y-auto:has(#table-of-contents-custom){max-height:none!important;overflow:visible!important}:where(.mt-8.lg\\:mt-0.flex.flex-col.gap-6.xl\\:hidden.max-h-\\[30rem\\]),:where([class*=\"mt-8\"][class*=\"lg:mt-0\"][class*=\"flex\"][class*=\"flex-col\"][class*=\"gap-6\"][class*=\"xl:hidden\"][class*=\"max-h-[30rem]\"]){display:none!important;visibility:hidden!important;opacity:0!important;height:0!important;width:0!important;padding:0!important;margin:0!important;position:absolute!important;clip:rect(0, 0, 0, 0)!important;overflow:hidden!important}#content-side-layout{max-width:18rem!important}#content-area{width:calc(100% - 20rem)!important}#chat-assistant-sheet{display:none!important}#navbar{position:fixed}@media (min-width: 1024px){#header.relative{margin-top:7rem}}"}],"page":{"pagePath":"api-reference/endpoint/graph-relations","slug":"/api-reference/endpoint/graph-relations","pageMetadata":{"title":"Graph Relations By Source Id","openapi":"GET /list/graph-relations-by-id","description":"Retrieve relations for a specific source.\n\nUse this endpoint to fetch all relations associated with a specific source.\n This is useful when you need to understand the relationships between entities within a source.\n\nProvide the source ID in the request body along with your tenant information to get the relations for that source.","href":"/api-reference/endpoint/graph-relations"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Retrieve relations for a specific source.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Use this endpoint to fetch all relations associated with a specific source.\\nThis is useful when you need to understand the relationships between entities within a source.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Provide the source ID in the request body along with your tenant information to get the relations for that source.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const TableOfContents=({title=`On this page`,items,minHeadingLevel=2,maxHeadingLevel=3,className=``,activeClassName=`text-primary dark:text-primary-light border-primary dark:border-primary-light hover:border-primary dark:hover:border-primary-light`,inactiveClassName=`hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300`})=>{const _components={a:`a`,..._provideComponents()};const[toc,setToc]=useState(items??[]);const[activeId,setActiveId]=useState(``);useEffect(()=>{if(items\u0026\u0026items.length)return;if(typeof document===`undefined`)return;const selectors=[];for(let lvl=minHeadingLevel;lvl\u003c=maxHeadingLevel;lvl++){selectors.push(`h${lvl}`)}const nodes=Array.from(document.querySelectorAll(selectors.join(`,`))).filter(el=>el.id);const built=[];let currentTop=null;nodes.forEach(el=>{const level=Number(el.tagName.slice(1));const node={id:el.id,label:el.textContent.trim(),href:`#${el.id}`,children:[]};if(level===minHeadingLevel){built.push(node);currentTop=node}else if(level>minHeadingLevel\u0026\u0026currentTop){currentTop.children.push(node)}else{built.push(node)}});setToc(built)},[items,minHeadingLevel,maxHeadingLevel]);useEffect(()=>{if(typeof document===`undefined`)return;const applyHash=()=>{const h=window.location.hash.replace(`#`,``);if(h)setActiveId(h)};applyHash();const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){setActiveId(entry.target.id)}})},{rootMargin:`0px 0px -70% 0px`,threshold:.1});const ids=toc.flatMap(i=>[i,...i.children??[]]).map(i=>i.id);ids.forEach(id=>{const el=document.getElementById(id);if(el)observer.observe(el)});window.addEventListener(`hashchange`,applyHash);return()=>{window.removeEventListener(`hashchange`,applyHash);observer.disconnect()}},[toc]);const Item=({node,depth=0})=>{const isActive=activeId===node.id;return _jsxs(`li`,{className:`toc-item mint-relative mint-ml-6`,\"data-depth\":depth,children:[_jsx(_components.a,{href:node.href,className:`mint-py-1 mint-block mint-font-medium ${isActive?activeClassName:inactiveClassName}`,style:depth>0?{marginLeft:`${depth}rem`}:{},onClick:()=>setActiveId(node.id),children:node.label}),node.children\u0026\u0026node.children.length>0\u0026\u0026_jsx(_Fragment,{children:node.children.map(child=>_jsx(Item,{node:child,depth:depth+1},child.href))})]})};const data=toc\u0026\u0026toc.length?toc:items||[];return _jsx(`div`,{className:`mint-text-gray-600 mint-text-sm mint-leading-6 mint-w-[18rem] mint-pb-4 mint--mt-10 mint-pt-10 mint-hidden xl:mint-block ${className}`,id:`table-of-contents-custom`,children:_jsxs(`ul`,{id:`table-of-contents-custom-content`,className:`toc`,children:[_jsx(`li`,{className:`toc-item mint-relative`,children:_jsxs(`div`,{className:`mint-text-gray-700 dark:mint-text-gray-300 mint-font-medium mint-flex mint-items-center mint-space-x-2 mint-py-1`,children:[_jsxs(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,xmlns:`http://www.w3.org/2000/svg`,className:`mint-h-3 mint-w-3`,children:[_jsx(`path`,{d:`M2.44434 12.6665H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 3.3335H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 8H7.33323`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),_jsx(`span`,{children:title})]})}),data.map(node=>_jsx(Item,{node},node.href))]})})};function _createMdxContent(props){const _components={code:`code`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tab,Tabs,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(Tip,{children:[` Hit the `,_jsx(_components.code,{children:`Try it`}),` button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.`]}),`\n`,_jsx(Heading,{level:`3`,id:`examples`,children:`Examples`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`API Request`,id:`api-request`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'GET'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.usecortex.ai/list/graph-relations-by-id?source_id=source-123'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'accept: application/json'`})]}),`\n`]})})})}),_jsx(Tab,{title:`TypeScript`,id:`typescript`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` relations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sources`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getGraphRelations`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tenant_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tenant_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` source_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"source_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sub_tenant_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sub_tenant_4567\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})}),_jsx(Tab,{title:`Python (Sync)`,id:`python-sync`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Async usage is similar, just use async_client and await`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`relations `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.sources.get_graph_relations(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tenant_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tenant_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` source_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"source_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` sub_tenant_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_tenant_4567\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{TableOfContents,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Graph Relations By Source Id","openapi":"GET /list/graph-relations-by-id","description":"Retrieve relations for a specific source.\n\nUse this endpoint to fetch all relations associated with a specific source.\n This is useful when you need to understand the relationships between entities within a source.\n\nProvide the source ID in the request body along with your tenant information to get the relations for that source.","href":"/api-reference/endpoint/graph-relations"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[151,3472,")=>null;function _cr"]]},"panelMdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const TableOfContents=({title=`On this page`,items,minHeadingLevel=2,maxHeadingLevel=3,className=``,activeClassName=`text-primary dark:text-primary-light border-primary dark:border-primary-light hover:border-primary dark:hover:border-primary-light`,inactiveClassName=`hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300`})=>{const _components={a:`a`,..._provideComponents()};const[toc,setToc]=useState(items??[]);const[activeId,setActiveId]=useState(``);useEffect(()=>{if(items\u0026\u0026items.length)return;if(typeof document===`undefined`)return;const selectors=[];for(let lvl=minHeadingLevel;lvl\u003c=maxHeadingLevel;lvl++){selectors.push(`h${lvl}`)}const nodes=Array.from(document.querySelectorAll(selectors.join(`,`))).filter(el=>el.id);const built=[];let currentTop=null;nodes.forEach(el=>{const level=Number(el.tagName.slice(1));const node={id:el.id,label:el.textContent.trim(),href:`#${el.id}`,children:[]};if(level===minHeadingLevel){built.push(node);currentTop=node}else if(level>minHeadingLevel\u0026\u0026currentTop){currentTop.children.push(node)}else{built.push(node)}});setToc(built)},[items,minHeadingLevel,maxHeadingLevel]);useEffect(()=>{if(typeof document===`undefined`)return;const applyHash=()=>{const h=window.location.hash.replace(`#`,``);if(h)setActiveId(h)};applyHash();const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){setActiveId(entry.target.id)}})},{rootMargin:`0px 0px -70% 0px`,threshold:.1});const ids=toc.flatMap(i=>[i,...i.children??[]]).map(i=>i.id);ids.forEach(id=>{const el=document.getElementById(id);if(el)observer.observe(el)});window.addEventListener(`hashchange`,applyHash);return()=>{window.removeEventListener(`hashchange`,applyHash);observer.disconnect()}},[toc]);const Item=({node,depth=0})=>{const isActive=activeId===node.id;return _jsxs(`li`,{className:`toc-item mint-relative mint-ml-6`,\"data-depth\":depth,children:[_jsx(_components.a,{href:node.href,className:`mint-py-1 mint-block mint-font-medium ${isActive?activeClassName:inactiveClassName}`,style:depth>0?{marginLeft:`${depth}rem`}:{},onClick:()=>setActiveId(node.id),children:node.label}),node.children\u0026\u0026node.children.length>0\u0026\u0026_jsx(_Fragment,{children:node.children.map(child=>_jsx(Item,{node:child,depth:depth+1},child.href))})]})};const data=toc\u0026\u0026toc.length?toc:items||[];return _jsx(`div`,{className:`mint-text-gray-600 mint-text-sm mint-leading-6 mint-w-[18rem] mint-pb-4 mint--mt-10 mint-pt-10 mint-hidden xl:mint-block ${className}`,id:`table-of-contents-custom`,children:_jsxs(`ul`,{id:`table-of-contents-custom-content`,className:`toc`,children:[_jsx(`li`,{className:`toc-item mint-relative`,children:_jsxs(`div`,{className:`mint-text-gray-700 dark:mint-text-gray-300 mint-font-medium mint-flex mint-items-center mint-space-x-2 mint-py-1`,children:[_jsxs(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,xmlns:`http://www.w3.org/2000/svg`,className:`mint-h-3 mint-w-3`,children:[_jsx(`path`,{d:`M2.44434 12.6665H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 3.3335H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 8H7.33323`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),_jsx(`span`,{children:title})]})}),data.map(node=>_jsx(Item,{node},node.href))]})})};function _createMdxContent(props){const{_MdxComponentBoundary}={..._provideComponents(),...props.components};if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsx(_MdxComponentBoundary,{name:`TableOfContents`,children:_jsx(TableOfContents,{})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{TableOfContents,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Graph Relations By Source Id","openapi":"GET /list/graph-relations-by-id","description":"Retrieve relations for a specific source.\n\nUse this endpoint to fetch all relations associated with a specific source.\n This is useful when you need to understand the relationships between entities within a source.\n\nProvide the source ID in the request body along with your tenant information to get the relations for that source.","href":"/api-reference/endpoint/graph-relations"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[19,69,"jsx:_jsx}=arguments["],[151,3472,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Examples","slug":"examples","depth":3,"children":[]}],"panel":{"content":"export const TableOfContents = ({title = 'On this page', items, minHeadingLevel = 2, maxHeadingLevel = 3, className = '', activeClassName = 'text-primary dark:text-primary-light border-primary dark:border-primary-light hover:border-primary dark:hover:border-primary-light', inactiveClassName = 'hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300'}) => {\n const [toc, setToc] = useState(items ?? []);\n const [activeId, setActiveId] = useState('');\n useEffect(() => {\n if (items \u0026\u0026 items.length) return;\n if (typeof document === 'undefined') return;\n const selectors = [];\n for (let lvl = minHeadingLevel; lvl \u003c= maxHeadingLevel; lvl++) {\n selectors.push(`h${lvl}`);\n }\n const nodes = Array.from(document.querySelectorAll(selectors.join(','))).filter(el => el.id);\n const built = [];\n let currentTop = null;\n nodes.forEach(el => {\n const level = Number(el.tagName.slice(1));\n const node = {\n id: el.id,\n label: el.textContent.trim(),\n href: `#${el.id}`,\n children: []\n };\n if (level === minHeadingLevel) {\n built.push(node);\n currentTop = node;\n } else if (level > minHeadingLevel \u0026\u0026 currentTop) {\n currentTop.children.push(node);\n } else {\n built.push(node);\n }\n });\n setToc(built);\n }, [items, minHeadingLevel, maxHeadingLevel]);\n useEffect(() => {\n if (typeof document === 'undefined') return;\n const applyHash = () => {\n const h = window.location.hash.replace('#', '');\n if (h) setActiveId(h);\n };\n applyHash();\n const observer = new IntersectionObserver(entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n setActiveId(entry.target.id);\n }\n });\n }, {\n rootMargin: '0px 0px -70% 0px',\n threshold: 0.1\n });\n const ids = toc.flatMap(i => [i, ...i.children ?? []]).map(i => i.id);\n ids.forEach(id => {\n const el = document.getElementById(id);\n if (el) observer.observe(el);\n });\n window.addEventListener('hashchange', applyHash);\n return () => {\n window.removeEventListener('hashchange', applyHash);\n observer.disconnect();\n };\n }, [toc]);\n const Item = ({node, depth = 0}) => {\n const isActive = activeId === node.id;\n return \u003cli className=\"toc-item relative ml-6\" data-depth={depth}>\n \u003ca href={node.href} className={`py-1 block font-medium ${isActive ? activeClassName : inactiveClassName}`} style={depth > 0 ? {\n marginLeft: `${depth}rem`\n } : {}} onClick={() => setActiveId(node.id)}>\n {node.label}\n \u003c/a>\n {node.children \u0026\u0026 node.children.length > 0 \u0026\u0026 \u003c>\n {node.children.map(child => \u003cItem node={child} depth={depth + 1} key={child.href} />)}\n \u003c/>}\n \u003c/li>;\n };\n const data = toc \u0026\u0026 toc.length ? toc : items || [];\n return \u003cdiv className={`text-gray-600 text-sm leading-6 w-[18rem] pb-4 -mt-10 pt-10 hidden xl:block ${className}`} id=\"table-of-contents-custom\">\n \u003cul id=\"table-of-contents-custom-content\" className=\"toc\">\n \u003cli className=\"toc-item relative\">\n \u003cdiv className=\"text-gray-700 dark:text-gray-300 font-medium flex items-center space-x-2 py-1\">\n \u003csvg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" xmlns=\"http://www.w3.org/2000/svg\" className=\"h-3 w-3\">\n \u003cpath d=\"M2.44434 12.6665H13.5554\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\u003c/path>\n \u003cpath d=\"M2.44434 3.3335H13.5554\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\u003c/path>\n \u003cpath d=\"M2.44434 8H7.33323\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\u003c/path>\n \u003c/svg>\n \u003cspan>{title}\u003c/span>\n \u003c/div>\n \u003c/li>\n {data.map(node => \u003cItem node={node} key={node.href} />)}\n \u003c/ul>\n \u003c/div>;\n};\n\n\u003cTableOfContents />\n"},"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-relative {\n position: relative\n}\n.mint--mt-10 {\n margin-top: -2.5rem\n}\n.mint-ml-6 {\n margin-left: 1.5rem\n}\n.mint-block {\n display: block\n}\n.mint-flex {\n display: flex\n}\n.mint-hidden {\n display: none\n}\n.mint-h-3 {\n height: 0.75rem\n}\n.mint-w-3 {\n width: 0.75rem\n}\n.mint-w-\\[18rem\\] {\n width: 18rem\n}\n.mint-items-center {\n align-items: center\n}\n.mint-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))\n}\n.mint-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem\n}\n.mint-pb-4 {\n padding-bottom: 1rem\n}\n.mint-pt-10 {\n padding-top: 2.5rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-font-medium {\n font-weight: 500\n}\n.mint-leading-6 {\n line-height: 1.5rem\n}\n.mint-text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1))\n}\n.mint-text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1))\n}\n@media (min-width: 1280px) {\n .xl\\:mint-block {\n display: block\n }\n}","openApiReferenceData":{"operation":{"tags":["list"],"summary":"Graph Relations By Id","description":"Retrieve relations for a specific source.\n\nUse this endpoint to fetch all relations associated with a specific source.\n This is useful when you need to understand the relationships between entities within a source.\n\nProvide the source ID in the request body along with your tenant information to get the relations for that source.","operationId":"graph_relations_by_id_list_graph_relations_by_id_get","security":["d82430b5-cc20-4101-b968-9fdc8cc9056a"],"parameters":["775da7c3-5550-42fc-afee-bf0a44e7f5fd","38fccb10-3dcd-4f5e-994e-bc3c285ac56e","1f5c9a8f-d0b9-4a4c-87bf-202025724d49"],"responses":{"200":"660c2807-3a90-42b5-ad14-2ab3476543fc","400":"849af03e-a017-4e8c-aa3a-8df4cc40498d","401":"715053c3-6a55-4ea2-8db2-bb797749bda9","403":"bb970828-7181-4060-884c-5bee15971181","404":"4729a01e-a836-4c1b-98d8-6e32db3c82cd","422":"e11735b9-c73a-4c46-a194-dc69c4e054b9","500":"becba92e-3da9-4fc3-9d38-e4b38972b8ef","503":"c7619b23-8abd-46bd-876a-87d63389ad60"},"x-fern-sdk-group-name":"sources","x-fern-sdk-method-name":"get_graph_relations_by_id","x-fern-sdk-audience":["public"],"method":"get","type":"path","servers":["27177c36-ced5-48ec-934a-74f1d3c21f2f","ec4a38bd-f056-41fa-92b7-9e831f0c977f","c80917a8-4b03-45cd-ba80-6a4329afc4a3"],"path":"/list/graph-relations-by-id","baseUrlOptions":["/","https://api.usecortex.ai","https://preprod.usecortex.ai"],"title":"Graph Relations By Id","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"775da7c3-5550-42fc-afee-bf0a44e7f5fd":{"name":"source_id","in":"query","required":true,"schema":{"type":"string","description":"The source ID to fetch relations for","title":"Source Id","example":"CortexDoc1234","isRequired":true,"uniqueKey":"","typeLabel":"string"},"description":"The source ID to fetch relations for"},"38fccb10-3dcd-4f5e-994e-bc3c285ac56e":{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","description":"Unique identifier for the tenant/organization","default":"","title":"Tenant Id","example":"tenant_1234","isRequired":false,"uniqueKey":"","typeLabel":"string"},"description":"Unique identifier for the tenant/organization"},"1f5c9a8f-d0b9-4a4c-87bf-202025724d49":{"name":"sub_tenant_id","in":"query","required":false,"schema":{"oneOf":[{"type":"string","title":"Sub Tenant Id","description":"Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.","example":"sub_tenant_4567","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Sub Tenant Id","description":"Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.","example":"sub_tenant_4567","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used."}},"responses":{"660c2807-3a90-42b5-ad14-2ab3476543fc":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"relations":{"items":{"oneOf":[{"type":"object","title":"TripletWithEvidence","description":"Triple with multiple evidence items from different chunks","required":["source","target","relations","chunk_id"],"properties":{"source":{"properties":{"name":{"type":"string","title":"Name","description":"Normalized entity name","example":"\u003cname>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.source.name","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"PERSON, ORGANIZATION, PROJECT, PRODUCT, ERROR_CODE, etc.","example":"\u003ctype>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.source.type","typeLabel":"string"},"entity_id":{"type":"string","title":"Entity Id","description":"Internal unique entity ID from graph database","example":"\u003centity_id>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.source.entity_id","typeLabel":"string"},"namespace":{"type":"string","title":"Namespace","description":"Context category like 'employees', 'projects'","default":"default","example":"\u003cnamespace>","uniqueKey":"relations.items.[INDEX].oneOf.0.source.namespace","typeLabel":"string"},"identifier":{"oneOf":[{"type":"string","title":"Identifier","description":"Unique ID like email, employee_id, URL","uniqueKey":"relations.items.[INDEX].oneOf.0.source.identifier.oneOf.0","typeLabel":"string"},{"type":"null","title":"Identifier","description":"Unique ID like email, employee_id, URL","uniqueKey":"relations.items.[INDEX].oneOf.0.source.identifier.oneOf.1","typeLabel":"null"}],"uniqueKey":"relations.items.[INDEX].oneOf.0.source.identifier","typeLabel":"string | null"}},"type":"object","required":["name","type","entity_id"],"title":"Entity","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.source","typeLabel":"Entity · object"},"target":{"properties":{"name":{"type":"string","title":"Name","description":"Normalized entity name","example":"\u003cname>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.target.name","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"PERSON, ORGANIZATION, PROJECT, PRODUCT, ERROR_CODE, etc.","example":"\u003ctype>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.target.type","typeLabel":"string"},"entity_id":{"type":"string","title":"Entity Id","description":"Internal unique entity ID from graph database","example":"\u003centity_id>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.target.entity_id","typeLabel":"string"},"namespace":{"type":"string","title":"Namespace","description":"Context category like 'employees', 'projects'","default":"default","example":"\u003cnamespace>","uniqueKey":"relations.items.[INDEX].oneOf.0.target.namespace","typeLabel":"string"},"identifier":{"oneOf":[{"type":"string","title":"Identifier","description":"Unique ID like email, employee_id, URL","uniqueKey":"relations.items.[INDEX].oneOf.0.target.identifier.oneOf.0","typeLabel":"string"},{"type":"null","title":"Identifier","description":"Unique ID like email, employee_id, URL","uniqueKey":"relations.items.[INDEX].oneOf.0.target.identifier.oneOf.1","typeLabel":"null"}],"uniqueKey":"relations.items.[INDEX].oneOf.0.target.identifier","typeLabel":"string | null"}},"type":"object","required":["name","type","entity_id"],"title":"Entity","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.target","typeLabel":"Entity · object"},"relations":{"items":{"properties":{"canonical_predicate":{"type":"string","title":"Canonical Predicate","description":"Relationship phrase like 'works for', 'reports to'","example":"\u003ccanonical_predicate>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].canonical_predicate","typeLabel":"string"},"raw_predicate":{"type":"string","title":"Raw Predicate","description":"Original predicate from text","example":"\u003craw_predicate>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].raw_predicate","typeLabel":"string"},"context":{"type":"string","title":"Context","description":"Rich contextual description of the relationship with surrounding information, details about how/why/when, and any relevant background. Should be comprehensive enough to understand the relationship without referring back to source.","example":"\u003ccontext>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].context","typeLabel":"string"},"relationship_id":{"type":"string","title":"Relationship Id","description":"Unique ID for this relationship from graph database","example":"\u003crelationship_id>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].relationship_id","typeLabel":"string"},"confidence":{"type":"number","maximum":1,"minimum":0,"title":"Confidence","description":"Confidence score","default":0.8,"example":1,"uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].confidence","typeLabel":"number"},"temporal_details":{"oneOf":[{"type":"string","title":"Temporal Details","description":"Temporal timing information extracted from text (e.g., 'last week', 'in 2023', 'yesterday')","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].temporal_details.oneOf.0","typeLabel":"string"},{"type":"null","title":"Temporal Details","description":"Temporal timing information extracted from text (e.g., 'last week', 'in 2023', 'yesterday')","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].temporal_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].temporal_details","typeLabel":"string | null"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Timestamp when this relation was introduced","example":"\u003ctimestamp>","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].timestamp","typeLabel":"string\u003cdate-time>"},"chunk_id":{"oneOf":[{"type":"string","title":"Chunk Id","description":"ID of the chunk this relation was extracted from","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].chunk_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Chunk Id","description":"ID of the chunk this relation was extracted from","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].chunk_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].chunk_id","typeLabel":"string | null"},"source_entity_id":{"oneOf":[{"type":"string","title":"Source Entity Id","description":"The entity ID of source node","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].source_entity_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Source Entity Id","description":"The entity ID of source node","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].source_entity_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].source_entity_id","typeLabel":"string | null"},"target_entity_id":{"oneOf":[{"type":"string","title":"Target Entity Id","description":"The entity ID of target node","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].target_entity_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Target Entity Id","description":"The entity ID of target node","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].target_entity_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX].target_entity_id","typeLabel":"string | null"}},"type":"object","required":["canonical_predicate","raw_predicate","context","relationship_id"],"title":"RelationEvidence","description":"Single piece of evidence for a relationship between two entities","uniqueKey":"relations.items.[INDEX].oneOf.0.relations.items.[INDEX]","typeLabel":"RelationEvidence · object"},"type":"array","title":"Relations","description":"Array of relation evidences","example":[],"isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.relations","typeLabel":"RelationEvidence · object[]"},"chunk_id":{"type":"string","title":"Chunk Id","description":"The chunk_id these relations are associated with","example":"\u003cchunk_id>","isRequired":true,"uniqueKey":"relations.items.[INDEX].oneOf.0.chunk_id","typeLabel":"string"}},"uniqueKey":"relations.items.[INDEX].oneOf.0","typeLabel":"TripletWithEvidence · object"},{"type":"null","uniqueKey":"relations.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"relations.items.[INDEX]","typeLabel":"TripletWithEvidence · object | null"},"type":"array","title":"Relations","description":"List of relations retrieved","example":[],"isRequired":true,"uniqueKey":"relations","typeLabel":"(TripletWithEvidence · object | null)[]"},"success":{"type":"boolean","title":"Success","description":"Indicates whether the request was successful","default":true,"example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","description":"Response message describing the operation result","default":"Relations retrieved successfully","uniqueKey":"message","typeLabel":"string"}},"type":"object","required":["relations"],"title":"SourceGraphRelationsResponse","uniqueKey":"","typeLabel":"SourceGraphRelationsResponse · object"},"examples":{"Example":{"title":"Example","value":{"relations":[],"success":true,"message":"Relations retrieved successfully"}}},"exampleType":"generated"}},"exampleType":"generated"},"849af03e-a017-4e8c-aa3a-8df4cc40498d":{"description":"Bad Request - Invalid input parameters","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"715053c3-6a55-4ea2-8db2-bb797749bda9":{"description":"Unauthorized - Authentication required","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"bb970828-7181-4060-884c-5bee15971181":{"description":"Forbidden - Access denied","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"4729a01e-a836-4c1b-98d8-6e32db3c82cd":{"description":"Not Found - Resource does not exist","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e11735b9-c73a-4c46-a194-dc69c4e054b9":{"description":"Unprocessable Entity - Validation failed","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"becba92e-3da9-4fc3-9d38-e4b38972b8ef":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"c7619b23-8abd-46bd-876a-87d63389ad60":{"description":"Service Unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"d82430b5-cc20-4101-b968-9fdc8cc9056a":{"HTTPBearer":{"type":"http","scheme":"bearer","scopes":[]}}},"servers":{"27177c36-ced5-48ec-934a-74f1d3c21f2f":{"url":"/","description":"Local","x-fern-server-name":"cortex-backend-local"},"ec4a38bd-f056-41fa-92b7-9e831f0c977f":{"url":"https://api.usecortex.ai","description":"Production","x-fern-server-name":"cortex-prod","x-fern-audiences":["public"]},"c80917a8-4b03-45cd-ba80-6a4329afc4a3":{"url":"https://preprod.usecortex.ai","description":"Staging","x-fern-server-name":"cortex-staging"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"cortex-ad5578da","siteName":"Cortex SDK","title":"Graph Relations By Source Id - Cortex SDK","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-13T13:26:41.731Z","originalFileLocation":"api-reference/endpoint/graph-relations.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=\"Retrieve relations for a specific source. Use this endpoint to fetch all relations associated with a specific source. This is useful when you need to understand the relationships between entities within a source. Provide the source ID in the request body along with your tenant information to get the relations for that source.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cortex SDK\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Graph Relations By Source Id - Cortex SDK\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve relations for a specific source. Use this endpoint to fetch all relations associated with a specific source. This is useful when you need to understand the relationships between entities within a source. Provide the source ID in the request body along with your tenant information to get the relations for that source.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cortex SDK\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cortex-ad5578da.mintlify.site/_mintlify/api/og/v2?division=Knowledge+Management\u0026amp;title=Graph+Relations+By+Source+Id\u0026amp;description=Retrieve+relations+for+a+specific+source.%0A%0AUse+this+endpoint+to+fetch+all+relations+associated+with+a+specific+source.%0A+This+is+useful+when+you+need+to+understa\u0026amp;theme=cb97804abd2d20d4ce133d0c\u0026amp;signature=dc8479a5737e386619cd908fd07db5714ad77e9852a11feae3aff5b97adb5dc8\">\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=\"Graph Relations By Source Id - Cortex SDK\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve relations for a specific source. Use this endpoint to fetch all relations associated with a specific source. This is useful when you need to understand the relationships between entities within a source. Provide the source ID in the request body along with your tenant information to get the relations for that source.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cortex-ad5578da.mintlify.site/_mintlify/api/og/v2?division=Knowledge+Management\u0026amp;title=Graph+Relations+By+Source+Id\u0026amp;description=Retrieve+relations+for+a+specific+source.%0A%0AUse+this+endpoint+to+fetch+all+relations+associated+with+a+specific+source.%0A+This+is+useful+when+you+need+to+understa\u0026amp;theme=cb97804abd2d20d4ce133d0c\u0026amp;signature=dc8479a5737e386619cd908fd07db5714ad77e9852a11feae3aff5b97adb5dc8\">\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/cortex-ad5578da/ALVAenBL80cTIEFP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cortex SDK\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C3AED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/graph-relations.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://cortex-ad5578da.mintlify.app/#organization\",\"name\":\"Cortex SDK\",\"url\":\"https://cortex-ad5578da.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cortex-ad5578da/93r4PO4gUrI78Ocp/logo/light.svg?fit=max\u0026auto=format\u0026n=93r4PO4gUrI78Ocp\u0026q=85\u0026s=714ff10a4ad07c6395ce3055058ad6b0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://cortex-ad5578da.mintlify.app#website\",\"name\":\"Cortex SDK\",\"url\":\"https://cortex-ad5578da.mintlify.app\",\"publisher\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations#webpage\",\"url\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations\",\"name\":\"Graph Relations By Source Id\",\"description\":\"Retrieve relations for a specific source. Use this endpoint to fetch all relations associated with a specific source. This is useful when you need to understand the relationships between entities within a source. Provide the source ID in the request body along with your tenant information to get the relations for that source.\",\"dateModified\":\"2026-01-13T13:26:41.731Z\",\"isPartOf\":{\"@id\":\"https://cortex-ad5578da.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Knowledge Management\",\"item\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/list-sources\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Graph Relations By Source Id\",\"item\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations#apireference\",\"headline\":\"Graph Relations By Source Id\",\"name\":\"Graph Relations By Source Id\",\"description\":\"Retrieve relations for a specific source. Use this endpoint to fetch all relations associated with a specific source. This is useful when you need to understand the relationships between entities within a source. Provide the source ID in the request body along with your tenant information to get the relations for that source.\",\"url\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations\",\"mainEntityOfPage\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/graph-relations#webpage\"},\"dateModified\":\"2026-01-13T13:26:41.731Z\",\"publisher\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://cortex-ad5578da.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cortex SDK\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Cortex SDK","nav":{"global":{},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Error Responses","href":"/api-reference/error-responses"},{"title":"SDKs - Node and Python","href":"/api-reference/sdks"}]},{"group":"Tenant Management","pages":[{"title":"Create Tenant","openapi":"POST /tenants/create","href":"/api-reference/endpoint/create-tenant"},{"title":"Get Tenant Stats","openapi":"GET /tenants/stats","href":"/api-reference/endpoint/tenant-stats"}]},{"group":"Knowledge Ingestion","pages":[{"title":"Upload Document","openapi":"POST /ingestion/upload-document","href":"/api-reference/endpoint/upload-document"},{"title":"Upload Content","openapi":"POST /ingestion/upload-content","href":"/api-reference/endpoint/upload-content"},{"title":"Upload App Sources","openapi":"POST /upload/upload_app_sources","href":"/api-reference/endpoint/upload-app"},{"title":"Verify Processing","openapi":"POST /ingestion/verify-processing","href":"/api-reference/endpoint/verify-processing"}]},{"group":"Query \u0026 Retrieval","pages":[{"title":"Hybrid Search","openapi":"POST /search/hybrid-search","href":"/api-reference/endpoint/hybrid-search"},{"title":"Full Text Search","openapi":"POST /search/full-text-search","href":"/api-reference/endpoint/full-text-search"},{"title":"QnA","openapi":"POST /search/qna","tag":"DEPRECATING","href":"/api-reference/endpoint/qna"}]},{"group":"Knowledge Management","pages":[{"title":"List Sources","openapi":"GET /list/list-sources","href":"/api-reference/endpoint/list-sources"},{"title":"List Sources By ID","openapi":"POST /list/list-sources-by-id","href":"/api-reference/endpoint/list-sources-by-id"},{"title":"Fetch Content","openapi":"POST /fetch/fetch-source-content","href":"/api-reference/endpoint/fetch-source-content"},{"title":"Delete Sources","openapi":"DELETE /delete/delete-sources","description":null,"href":"/api-reference/endpoint/delete-sources"},{"title":"Graph Relations By Source Id","openapi":"GET /list/graph-relations-by-id","href":"/api-reference/endpoint/graph-relations"}]},{"group":"Embeddings","pages":[{"title":"Create Embeddings Tenant","openapi":"POST /embeddings/create_tenant","description":null,"href":"/api-reference/endpoint/create-embeddings-tenant"},{"title":"Upload Embeddings","openapi":"POST /embeddings/insert-raw-embeddings","href":"/api-reference/endpoint/insert-raw-embeddings"},{"title":"Search Embeddings","openapi":"POST /embeddings/search-raw-embeddings","href":"/api-reference/endpoint/search-raw-embeddings"},{"title":"Filter Raw Embeddings","openapi":"POST /embeddings/filter-raw-embeddings","href":"/api-reference/endpoint/filter-raw-embeddings"},{"title":"Delete Embeddings","openapi":"DELETE /embeddings/delete-raw-embeddings","href":"/api-reference/endpoint/delete-raw-embeddings"}]},{"group":"User Memories","pages":[{"title":"Add User Memory","openapi":"POST /memories/add-memories","href":"/api-reference/endpoint/add-memories"},{"title":"Delete User Memory","openapi":"DELETE /memories/delete-memory","href":"/api-reference/endpoint/delete-memory"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Graph Relations By Source Id - Cortex SDK","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}