from morphik import Morphik# Initialize with your URIclient = Morphik("YOUR_COPIED_URI")# Ingest a filewith open('document.pdf', 'rb') as f: doc = client.ingest_file(f)print(f"Document ID: {doc.id}")
import Morphik from 'morphik';import * as fs from 'fs';// Initialize with your tokenconst client = new Morphik({ apiKey: 'YOUR_COPIED_TOKEN'});// Ingest a fileconst file = fs.createReadStream('document.pdf');const doc = await client.ingest.ingestFile({ file });console.log('Document ID:', doc.external_id);
from morphik import Morphik# Initialize with your URIclient = Morphik("YOUR_COPIED_URI")# Query with RAGresponse = client.query( "What are the key points in this document?", k=5, use_colpali=True)print(response.answer)
import Morphik from 'morphik';const client = new Morphik({ apiKey: 'YOUR_COPIED_TOKEN'});// Query with RAGconst response = await client.query.generateCompletion({ query: 'What are the key points in this document?', k: 5, use_colpali: true});console.log(response.completion);
curl -X POST https://api.morphik.ai/query \ -H "Authorization: Bearer YOUR_COPIED_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "query": "What are the key points in this document?", "k": 5, "use_colpali": true }'
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Morphik Documentation","colors":{"primary":"#000000","light":"#6B7280","dark":"#111827"},"logo":{"light":"https://mintcdn.com/databridge/DOquaEmX3ZFpdpaS/logo/light.png?fit=max\u0026auto=format\u0026n=DOquaEmX3ZFpdpaS\u0026q=85\u0026s=fdfc76422f7ad5f822941fb2306c2fd2","dark":"https://mintcdn.com/databridge/eYNTu58F8b1Z2Eq-/logo/dark.png?fit=max\u0026auto=format\u0026n=eYNTu58F8b1Z2Eq-\u0026q=85\u0026s=06c64dde532002ebbcb027d22c8fd3a8","href":"https://morphik.ai"},"favicon":"/favicon.png","api":{"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml","playground":{"display":"interactive","proxy":true}},"appearance":{"default":"light","strict":false},"background":{"color":{"light":"#FFFFFF","dark":"#0F0F0F"}},"navbar":{"links":[{"label":"Support","href":"mailto:founders@morphik.ai"},{"label":"Community","href":"https://discord.com/invite/BwMtv3Zaju"},{"label":"GitHub","href":"https://github.com/morphik-org/morphik-core"}]},"footer":{"socials":{"x":"https://x.com/ArnavAgrawal03","github":"https://github.com/morphik-org/morphik-core"}},"fonts":{"family":"Inter"},"contextual":{"options":["copy","view","chatgpt","claude"]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"databridge","hasAudioNarration":false,"actualSubdomain":"databridge","customDomains":["morphik.ai"],"gitSource":{"type":"github","owner":"morphik-org","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6ae925ab38a52af76f40445a:success","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":85},{"language":"default","tag":"Python SDK","count":62},{"language":"default","tag":"Guides","count":26},{"language":"default","tag":"Data Organization","count":16},{"language":"default","tag":"Documents","count":14},{"language":"default","tag":"EE - Connectors","count":12},{"language":"default","tag":"Folders","count":10},{"language":"default","tag":"Document Retrieval","count":8},{"language":"default","tag":"Document Updates","count":8},{"language":"default","tag":"Document Management","count":7}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/getting-started","slug":"/api-reference/getting-started","pageMetadata":{"title":"Getting Started with Morphik API","description":"Quick guide to start using the Morphik API","href":"/api-reference/getting-started","hidden":false},"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: \"Quick guide to start using the Morphik API\"\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];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Tab,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`get-your-credentials`,children:`Get Your Credentials`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/databridge/eYNTu58F8b1Z2Eq-/assets/copy_uri.png?fit=max\u0026auto=format\u0026n=eYNTu58F8b1Z2Eq-\u0026q=85\u0026s=c808871149228d2db24a430ddea83def`,alt:`Copy URI from Morphik Dashboard`,\"data-og-width\":`1214`,width:`1214`,\"data-og-height\":`910`,height:`910`,\"data-path\":`assets/copy_uri.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/databridge/eYNTu58F8b1Z2Eq-/assets/copy_uri.png?w=280\u0026fit=max\u0026auto=format\u0026n=eYNTu58F8b1Z2Eq-\u0026q=85\u0026s=162080fa9efb547c7d388e207fee8e84 280w, https://mintcdn.com/databridge/eYNTu58F8b1Z2Eq-/assets/copy_uri.png?w=560\u0026fit=max\u0026auto=format\u0026n=eYNTu58F8b1Z2Eq-\u0026q=85\u0026s=7cec9d4403813fd6497397799f7879f4 560w, https://mintcdn.com/databridge/eYNTu58F8b1Z2Eq-/assets/copy_uri.png?w=840\u0026fit=max\u0026auto=format\u0026n=eYNTu58F8b1Z2Eq-\u0026q=85\u0026s=a9d769c9c69f31c4727ba5e3fa40aa2d 840w, https://mintcdn.com/databridge/eYNTu58F8b1Z2Eq-/assets/copy_uri.png?w=1100\u0026fit=max\u0026auto=format\u0026n=eYNTu58F8b1Z2Eq-\u0026q=85\u0026s=7af3a2702485e35d1017469a50c83a73 1100w, https://mintcdn.com/databridge/eYNTu58F8b1Z2Eq-/assets/copy_uri.png?w=1650\u0026fit=max\u0026auto=format\u0026n=eYNTu58F8b1Z2Eq-\u0026q=85\u0026s=a645bd85640aac9738fd0633527fe8c2 1650w, https://mintcdn.com/databridge/eYNTu58F8b1Z2Eq-/assets/copy_uri.png?w=2500\u0026fit=max\u0026auto=format\u0026n=eYNTu58F8b1Z2Eq-\u0026q=85\u0026s=7304109d8d7b3f7ed4611e61b923abbe 2500w`}),`\n`,_jsx(_components.p,{children:`From the Morphik dashboard:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Python SDK`}),`: Click “Copy URI”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`TypeScript/API`}),`: Click “Copy Token”`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`TypeScript/JavaScript`,id:`typescript%2Fjavascript`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` morphik`})]}),`\n`]})})})}),_jsx(Tab,{title:`Python`,id:`python`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` morphik`})]}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`ingest-a-document`,children:`Ingest a Document`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Python SDK`,id:`python-sdk`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` morphik `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Morphik`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Initialize with your URI`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Morphik(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_COPIED_URI\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Ingest a file`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'document.pdf'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'rb'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` doc `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.ingest_file(f)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Document ID: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`doc.id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})})}),_jsx(Tab,{title:`TypeScript SDK`,id:`typescript-sdk`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`12`,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:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Morphik`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'morphik'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` *`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'fs'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Initialize with your token`})}),`\n`,_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:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Morphik`}),_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:` apiKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_COPIED_TOKEN'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Ingest a file`})}),`\n`,_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:` file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createReadStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'document.pdf'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_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:` doc`}),_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:`ingest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ingestFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`file`}),_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:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Document ID:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`doc`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`external_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})}),_jsx(Tab,{title:`API (cURL)`,id:`api-curl`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.morphik.ai/ingest/file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_COPIED_TOKEN\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: multipart/form-data\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@document.pdf\"`})]}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`query-your-documents`,children:`Query Your Documents`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Python SDK`,id:`python-sdk-2`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`13`,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:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` morphik `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Morphik`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Initialize with your URI`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Morphik(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_COPIED_URI\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Query with RAG`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.query(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"What are the key points in this document?\"`}),_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:` k`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_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:` use_colpali`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.answer)`})]}),`\n`]})})})}),_jsx(Tab,{title:`TypeScript SDK`,id:`typescript-sdk-2`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`14`,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:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Morphik`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'morphik'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_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:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Morphik`}),_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:` apiKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_COPIED_TOKEN'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Query with RAG`})}),`\n`,_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:` response`}),_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:`query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`generateCompletion`}),_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:` query:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'What are the key points in this document?'`}),_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:` k:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_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:` use_colpali:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`completion`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})}),_jsx(Tab,{title:`API (cURL)`,id:`api-curl-2`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`8`,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:`8`,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:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.morphik.ai/query`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_COPIED_TOKEN\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"query\": \"What are the key points in this document?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"k\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"use_colpali\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{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":"Getting Started with Morphik API","description":"Quick guide to start using the Morphik API","href":"/api-reference/getting-started","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get Your Credentials","slug":"get-your-credentials","depth":2,"children":[]},{"title":"Installation","slug":"installation","depth":2,"children":[]},{"title":"Ingest a Document","slug":"ingest-a-document","depth":2,"children":[]},{"title":"Query Your Documents","slug":"query-your-documents","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"databridge","siteName":"Morphik Documentation","title":"Getting Started with Morphik API - Morphik Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-22T23:19:39.964Z","originalFileLocation":"api-reference/getting-started.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=\"light\"}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=\"Quick guide to start using the Morphik API\">\u003cmeta data-mint-head name=\"application-name\" content=\"Morphik Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Getting Started with Morphik API - Morphik Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Quick guide to start using the Morphik API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Morphik Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://morphik.ai/docs/api-reference/getting-started\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://databridge.mintlify.site/docs/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Getting+Started+with+Morphik+API\u0026amp;description=Quick+guide+to+start+using+the+Morphik+API\u0026amp;theme=83ee97c449cd477808afddfd\u0026amp;signature=4851e8a871e2fe5eead9b59a8fd3d5430a32b4339c73cdb9da53bbae481061bf\">\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=\"Getting Started with Morphik API - Morphik Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Quick guide to start using the Morphik API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://databridge.mintlify.site/docs/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Getting+Started+with+Morphik+API\u0026amp;description=Quick+guide+to+start+using+the+Morphik+API\u0026amp;theme=83ee97c449cd477808afddfd\u0026amp;signature=4851e8a871e2fe5eead9b59a8fd3d5430a32b4339c73cdb9da53bbae481061bf\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/databridge/GwARqmEiOtZ6Hg51/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Morphik Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://morphik.ai/docs/api-reference/getting-started\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/getting-started.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://morphik.ai/#organization\",\"name\":\"Morphik Documentation\",\"url\":\"https://morphik.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/databridge/DOquaEmX3ZFpdpaS/logo/light.png?fit=max\u0026auto=format\u0026n=DOquaEmX3ZFpdpaS\u0026q=85\u0026s=fdfc76422f7ad5f822941fb2306c2fd2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://morphik.ai/docs#website\",\"name\":\"Morphik Documentation\",\"url\":\"https://morphik.ai/docs\",\"publisher\":{\"@id\":\"https://morphik.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://morphik.ai/docs/api-reference/getting-started#webpage\",\"url\":\"https://morphik.ai/docs/api-reference/getting-started\",\"name\":\"Getting Started with Morphik API\",\"description\":\"Quick guide to start using the Morphik API\",\"dateModified\":\"2026-01-22T23:19:39.964Z\",\"isPartOf\":{\"@id\":\"https://morphik.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://morphik.ai/docs/api-reference/getting-started#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://morphik.ai/docs/api-reference/getting-started#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Morphik Documentation\",\"item\":\"https://morphik.ai/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting Started with Morphik API\",\"item\":\"https://morphik.ai/docs/api-reference/getting-started\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://morphik.ai/docs/api-reference/getting-started#article\",\"headline\":\"Getting Started with Morphik API\",\"name\":\"Getting Started with Morphik API\",\"description\":\"Quick guide to start using the Morphik API\",\"url\":\"https://morphik.ai/docs/api-reference/getting-started\",\"mainEntityOfPage\":{\"@id\":\"https://morphik.ai/docs/api-reference/getting-started#webpage\"},\"dateModified\":\"2026-01-22T23:19:39.964Z\",\"publisher\":{\"@id\":\"https://morphik.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://morphik.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Morphik Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Morphik Documentation","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"Getting Started with Morphik API","href":"/api-reference/getting-started"}]},{"group":"API Reference","pages":[{"title":"Get Available Models","description":"Get list of available models from configuration.\n\nReturns models grouped by type (chat, embedding, etc.) with their metadata.","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /models","href":"/api-reference/get-available-models"},{"title":"Retrieve Chunks","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /retrieve/chunks","href":"/api-reference/retrieve-chunks"},{"title":"Retrieve Chunks Grouped","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /retrieve/chunks/grouped","href":"/api-reference/retrieve-chunks-grouped"},{"title":"Retrieve Documents","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /retrieve/docs","href":"/api-reference/retrieve-documents"},{"title":"Search Documents By Name","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /search/documents","href":"/api-reference/search-documents-by-name"},{"title":"Batch Get Documents","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /batch/documents","href":"/api-reference/batch-get-documents"},{"title":"Batch Get Chunks","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /batch/chunks","href":"/api-reference/batch-get-chunks"},{"title":"Query Completion","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /query","href":"/api-reference/query-completion"},{"title":"Get Chat History","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /chat/{chat_id}","href":"/api-reference/get-chat-history"},{"title":"Get Available Models For Selection","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /models/available","href":"/api-reference/get-available-models-for-selection"},{"title":"Generate Cloud Uri","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /cloud/generate_uri","href":"/api-reference/generate-cloud-uri"},{"title":"List Cloud Apps","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /apps","href":"/api-reference/list-cloud-apps"},{"title":"Delete Cloud App","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml delete /apps","href":"/api-reference/delete-cloud-app"},{"title":"Rotate App Token","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /apps/rotate_token","href":"/api-reference/rotate-app-token"},{"title":"Rename Cloud App","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml patch /apps/rename","href":"/api-reference/rename-cloud-app"},{"title":"List Chat Conversations","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /chats","href":"/api-reference/list-chat-conversations"},{"title":"Update Chat Title","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml patch /chats/{chat_id}/title","href":"/api-reference/update-chat-title"}]},{"group":"models","pages":[{"title":"Save Model","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /models","href":"/api-reference/models/save-model"},{"title":"List Custom Models","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /models/custom","href":"/api-reference/models/list-custom-models"},{"title":"Delete Model","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml delete /models/{model_id}","href":"/api-reference/models/delete-model"},{"title":"List Api Keys","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /api-keys","href":"/api-reference/models/list-api-keys"},{"title":"Save Api Key","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /api-keys","href":"/api-reference/models/save-api-key"}]},{"group":"health","pages":[{"title":"Ping Health","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /ping","href":"/api-reference/health/ping-health"},{"title":"Health Check","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /health","href":"/api-reference/health/health-check"}]},{"group":"Ingestion","pages":[{"title":"Ingest Text","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ingest/text","href":"/api-reference/ingestion/ingest-text"},{"title":"Ingest File","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ingest/file","href":"/api-reference/ingestion/ingest-file"},{"title":"Batch Ingest Files","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ingest/files","href":"/api-reference/ingestion/batch-ingest-files"},{"title":"Requeue Ingest Jobs","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ingest/requeue","href":"/api-reference/ingestion/requeue-ingest-jobs"},{"title":"Query Document","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ingest/document/query","href":"/api-reference/ingestion/query-document"}]},{"group":"Documents","pages":[{"title":"List Docs","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /documents/list_docs","href":"/api-reference/documents/list-docs"},{"title":"List Docs","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /documents","href":"/api-reference/documents/list-docs-1"},{"title":"Get Document","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /documents/{document_id}","href":"/api-reference/documents/get-document"},{"title":"Delete Document","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml delete /documents/{document_id}","href":"/api-reference/documents/delete-document"},{"title":"Get Document Status","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /documents/{document_id}/status","href":"/api-reference/documents/get-document-status"},{"title":"Get Document Summary","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /documents/{document_id}/summary","href":"/api-reference/documents/get-document-summary"},{"title":"Upsert Document Summary","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml put /documents/{document_id}/summary","href":"/api-reference/documents/upsert-document-summary"},{"title":"Get Document By Filename","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /documents/filename/{filename}","href":"/api-reference/documents/get-document-by-filename"},{"title":"Get Document Download Url","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /documents/{document_id}/download_url","href":"/api-reference/documents/get-document-download-url"},{"title":"Download Document File","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /documents/{document_id}/file","href":"/api-reference/documents/download-document-file"},{"title":"Update Document Text","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /documents/{document_id}/update_text","href":"/api-reference/documents/update-document-text"},{"title":"Update Document File","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /documents/{document_id}/update_file","href":"/api-reference/documents/update-document-file"},{"title":"Update Document Metadata","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /documents/{document_id}/update_metadata","href":"/api-reference/documents/update-document-metadata"},{"title":"Extract Document Pages","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /documents/pages","href":"/api-reference/documents/extract-document-pages"}]},{"group":"Folders","pages":[{"title":"List Folders","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /folders","href":"/api-reference/folders/list-folders"},{"title":"Create Folder","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /folders","href":"/api-reference/folders/create-folder"},{"title":"Folder Details","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /folders/details","href":"/api-reference/folders/folder-details"},{"title":"List Folder Summaries","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /folders/summary","href":"/api-reference/folders/list-folder-summaries"},{"title":"Get Folder Summary","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /folders/{folder_id_or_name}/summary","href":"/api-reference/folders/get-folder-summary"},{"title":"Upsert Folder Summary","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml put /folders/{folder_id_or_name}/summary","href":"/api-reference/folders/upsert-folder-summary"},{"title":"Add Document To Folder","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /folders/{folder_id_or_name}/documents/{document_id}","href":"/api-reference/folders/add-document-to-folder"},{"title":"Remove Document From Folder","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml delete /folders/{folder_id_or_name}/documents/{document_id}","href":"/api-reference/folders/remove-document-from-folder"},{"title":"Get Folder","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /folders/{folder_id_or_name}","href":"/api-reference/folders/get-folder"},{"title":"Delete Folder","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml delete /folders/{folder_id_or_name}","href":"/api-reference/folders/delete-folder"}]},{"group":"Logs","pages":[{"title":"Get Logs","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /logs/","href":"/api-reference/logs/get-logs"}]},{"group":"Usage","pages":[{"title":"Get App Storage Usage","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /usage/app-storage","href":"/api-reference/usage/get-app-storage-usage"}]},{"group":"EE - Connectors","pages":[{"title":"Get Auth Status For Connector","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /ee/connectors/{connector_type}/auth_status","href":"/api-reference/ee--connectors/get-auth-status-for-connector"},{"title":"Get Initiate Auth Url","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /ee/connectors/{connector_type}/auth/initiate_url","href":"/api-reference/ee--connectors/get-initiate-auth-url"},{"title":"Connector Oauth Callback","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /ee/connectors/{connector_type}/oauth2callback","href":"/api-reference/ee--connectors/connector-oauth-callback"},{"title":"Finalize Manual Auth","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ee/connectors/{connector_type}/auth/finalize","href":"/api-reference/ee--connectors/finalize-manual-auth"},{"title":"List Files For Connector","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /ee/connectors/{connector_type}/files","href":"/api-reference/ee--connectors/list-files-for-connector"},{"title":"Ingest File","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ee/connectors/{connector_type}/ingest","href":"/api-reference/ee--connectors/ingest-file"},{"title":"Ingest Repository","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ee/connectors/{connector_type}/ingest-repository","href":"/api-reference/ee--connectors/ingest-repository"},{"title":"Get Status","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ee/connectors/status","href":"/api-reference/ee--connectors/get-status"},{"title":"Initiate Auth","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ee/connectors/initiate-auth","href":"/api-reference/ee--connectors/initiate-auth"},{"title":"Finalize Auth","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ee/connectors/finalize-auth","href":"/api-reference/ee--connectors/finalize-auth"},{"title":"Disconnect","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ee/connectors/disconnect","href":"/api-reference/ee--connectors/disconnect"},{"title":"List Files","deprecated":null,"version":null,"openapi":"https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ee/connectors/list-files","href":"/api-reference/ee--connectors/list-files"}]}]},{"tab":"Python SDK","pages":[{"title":"Python SDK","href":"/python-sdk/morphik"}]},{"tab":"Knowledge Base","pages":[{"title":"Knowledge Base","href":"/knowledge-base/how-do-i-set-up-rag"}]}]},"basePath":"","title":"Getting Started with Morphik API - Morphik Documentation","buildId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","deploymentId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-B_-GSaTf.js","lightbox-handle-r17bVUz3.js"]}