# Morphik Documentation ## Docs - [Batch Get Chunks](https://databridge-datetime-fix.mintlify.app/api-reference/batch-get-chunks.md): Retrieve specific chunks by their document ID and chunk number in a single batch operation. - [Batch Get Documents](https://databridge-datetime-fix.mintlify.app/api-reference/batch-get-documents.md): Retrieve multiple documents by their IDs in a single batch operation. - [Delete Cloud App](https://databridge-datetime-fix.mintlify.app/api-reference/delete-cloud-app.md): Delete all resources associated with a given cloud application. - [Complete Document Chat](https://databridge-datetime-fix.mintlify.app/api-reference/document/complete-document-chat.md): Stream a chat completion response for a document chat conversation. - [Get Document Chat History](https://databridge-datetime-fix.mintlify.app/api-reference/document/get-document-chat-history.md): Retrieve the message history for a document chat conversation. - [Delete Document](https://databridge-datetime-fix.mintlify.app/api-reference/documents/delete-document.md): Delete a document and all associated data. - [Download Document File](https://databridge-datetime-fix.mintlify.app/api-reference/documents/download-document-file.md): Download the actual file content for a document. This endpoint is used for local storage when file:// URLs cannot be accessed by browsers. - [Extract Document Pages](https://databridge-datetime-fix.mintlify.app/api-reference/documents/extract-document-pages.md): Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images. - [Get Document](https://databridge-datetime-fix.mintlify.app/api-reference/documents/get-document.md): Retrieve a single document by its external identifier. - [Get Document By Filename](https://databridge-datetime-fix.mintlify.app/api-reference/documents/get-document-by-filename.md): Get document by filename. - [Get Document Download Url](https://databridge-datetime-fix.mintlify.app/api-reference/documents/get-document-download-url.md): Get a download URL for a specific document. - [Get Document Status](https://databridge-datetime-fix.mintlify.app/api-reference/documents/get-document-status.md): Get the processing status of a document. - [List Docs](https://databridge-datetime-fix.mintlify.app/api-reference/documents/list-docs.md): Flexible document listing with aggregates, projections, and advanced pagination. - [List Documents](https://databridge-datetime-fix.mintlify.app/api-reference/documents/list-documents.md): List accessible documents with metadata filtering. - [Update Document File](https://databridge-datetime-fix.mintlify.app/api-reference/documents/update-document-file.md): Update a document with content from a file using the specified strategy. - [Update Document Metadata](https://databridge-datetime-fix.mintlify.app/api-reference/documents/update-document-metadata.md): Update only a document's metadata. - [Update Document Text](https://databridge-datetime-fix.mintlify.app/api-reference/documents/update-document-text.md): Update a document with new text content using the specified strategy. - [Connector Oauth Callback](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/connector-oauth-callback.md): Handles the OAuth 2.0 callback from the authentication provider. Validates state, finalizes authentication, and stores credentials. - [Disconnect](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/disconnect.md): Disconnect from a connector and remove credentials. - [Finalize Auth](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/finalize-auth.md): Finalize the OAuth flow and exchange the code for a token. - [Finalize Manual Auth](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/finalize-manual-auth.md): Finalize authentication using manual credentials. - [Get Auth Status For Connector](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/get-auth-status-for-connector.md): Checks the current authentication status for the given connector type. - [Get Initiate Auth Url](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/get-initiate-auth-url.md): Return the provider's *authorization_url* for the given connector. - [Get Status](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/get-status.md): Get the authentication status for a connector. - [Ingest File](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/ingest-file.md): Ingest a single file from a connector. - [Ingest Repository](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/ingest-repository.md): Ingest an entire GitHub repository. - [Initiate Auth](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/initiate-auth.md): Initiate the OAuth flow for a connector. - [List Files](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/list-files.md): List files from a connector. - [List Files For Connector](https://databridge-datetime-fix.mintlify.app/api-reference/ee--connectors/list-files-for-connector.md): Lists files and folders from the specified connector. - [Add Document To Folder](https://databridge-datetime-fix.mintlify.app/api-reference/folders/add-document-to-folder.md): Add a document to a folder. - [Create Folder](https://databridge-datetime-fix.mintlify.app/api-reference/folders/create-folder.md): Create a new folder. - [Delete Folder](https://databridge-datetime-fix.mintlify.app/api-reference/folders/delete-folder.md): Delete a folder and all associated documents. - [Folder Details](https://databridge-datetime-fix.mintlify.app/api-reference/folders/folder-details.md): Retrieve folder metadata with optional document statistics and projections. - [Get Folder](https://databridge-datetime-fix.mintlify.app/api-reference/folders/get-folder.md): Get a folder by ID or name. - [List Folder Summaries](https://databridge-datetime-fix.mintlify.app/api-reference/folders/list-folder-summaries.md): Return compact folder list (id, name, doc_count, updated_at). - [List Folders](https://databridge-datetime-fix.mintlify.app/api-reference/folders/list-folders.md): List all folders the user has access to. - [Remove Document From Folder](https://databridge-datetime-fix.mintlify.app/api-reference/folders/remove-document-from-folder.md): Remove a document from a folder. - [Generate Cloud Uri](https://databridge-datetime-fix.mintlify.app/api-reference/generate-cloud-uri.md): Generate an authenticated URI for a cloud-hosted Morphik application. - [Generate Local Uri](https://databridge-datetime-fix.mintlify.app/api-reference/generate-local-uri.md): Generate a development URI for running Morphik locally. - [Get Available Models](https://databridge-datetime-fix.mintlify.app/api-reference/get-available-models.md): Get list of available models from configuration. - [Get Available Models For Selection](https://databridge-datetime-fix.mintlify.app/api-reference/get-available-models-for-selection.md): Get list of available models for UI selection. - [Get Chat History](https://databridge-datetime-fix.mintlify.app/api-reference/get-chat-history.md): Retrieve the message history for a chat conversation. - [Getting Started with Morphik API](https://databridge-datetime-fix.mintlify.app/api-reference/getting-started.md): Quick guide to start using the Morphik API - [Check Workflow Status](https://databridge-datetime-fix.mintlify.app/api-reference/graph/check-workflow-status.md): Check the status of a graph build/update workflow. - [Create Graph](https://databridge-datetime-fix.mintlify.app/api-reference/graph/create-graph.md): Create a new graph based on document contents. - [Delete Graph](https://databridge-datetime-fix.mintlify.app/api-reference/graph/delete-graph.md): Delete a graph by name. - [Get Graph](https://databridge-datetime-fix.mintlify.app/api-reference/graph/get-graph.md): Get a graph by name. - [Get Graph Status](https://databridge-datetime-fix.mintlify.app/api-reference/graph/get-graph-status.md): Lightweight endpoint to check graph status with automatic status synchronization. - [Get Graph Visualization](https://databridge-datetime-fix.mintlify.app/api-reference/graph/get-graph-visualization.md): Get graph visualization data. - [List Graphs](https://databridge-datetime-fix.mintlify.app/api-reference/graph/list-graphs.md): List all graphs the user has access to. - [Update Graph](https://databridge-datetime-fix.mintlify.app/api-reference/graph/update-graph.md): Update an existing graph with new documents. - [Health Check](https://databridge-datetime-fix.mintlify.app/api-reference/health/health-check.md): Comprehensive health check endpoint that queries all underlying services. - [Ping Health](https://databridge-datetime-fix.mintlify.app/api-reference/health/ping-health.md): Simple health check endpoint that returns 200 OK. - [Batch Ingest Files](https://databridge-datetime-fix.mintlify.app/api-reference/ingestion/batch-ingest-files.md): Batch ingest **multiple files** (async). - [Ingest File](https://databridge-datetime-fix.mintlify.app/api-reference/ingestion/ingest-file.md): Ingest a **file** asynchronously. - [Ingest Text](https://databridge-datetime-fix.mintlify.app/api-reference/ingestion/ingest-text.md): Ingest a **text** document. - [Query Document](https://databridge-datetime-fix.mintlify.app/api-reference/ingestion/query-document.md): Execute a one-off analysis for a document using Morphik On-the-Fly, optionally enforcing structured output and scheduling a follow-up ingestion. - [Requeue Ingest Jobs](https://databridge-datetime-fix.mintlify.app/api-reference/ingestion/requeue-ingest-jobs.md): Requeue ingestion jobs for documents stuck in processing or marked as failed. - [List Chat Conversations](https://databridge-datetime-fix.mintlify.app/api-reference/list-chat-conversations.md): List chat conversations available to the current user. - [List Cloud Apps](https://databridge-datetime-fix.mintlify.app/api-reference/list-cloud-apps.md): List provisioned apps for the specified organization/user. - [Get Logs](https://databridge-datetime-fix.mintlify.app/api-reference/logs/get-logs.md): Return recent logs for the authenticated user (scoped by app_id). - [Morphik Management API](https://databridge-datetime-fix.mintlify.app/api-reference/management-api.md): Learn how to provision and manage isolated Morphik application environments. - [Create Custom Model](https://databridge-datetime-fix.mintlify.app/api-reference/model-config/create-custom-model.md): Create a new custom model. - [Create Model Config](https://databridge-datetime-fix.mintlify.app/api-reference/model-config/create-model-config.md): Create a new model configuration. - [Delete Model Config](https://databridge-datetime-fix.mintlify.app/api-reference/model-config/delete-model-config.md): Delete a model configuration. - [Get Model Config](https://databridge-datetime-fix.mintlify.app/api-reference/model-config/get-model-config.md): Get a specific model configuration. - [List Custom Models](https://databridge-datetime-fix.mintlify.app/api-reference/model-config/list-custom-models.md): List all custom models for the authenticated user. - [List Model Configs](https://databridge-datetime-fix.mintlify.app/api-reference/model-config/list-model-configs.md): List all model configurations for the authenticated user and app. - [Update Model Config](https://databridge-datetime-fix.mintlify.app/api-reference/model-config/update-model-config.md): Update an existing model configuration. - [Delete Model](https://databridge-datetime-fix.mintlify.app/api-reference/models/delete-model.md): Delete a custom model. - [List Api Keys](https://databridge-datetime-fix.mintlify.app/api-reference/models/list-api-keys.md): List all configured API keys (sanitized). - [List Custom Models](https://databridge-datetime-fix.mintlify.app/api-reference/models/list-custom-models.md): List all custom models for the authenticated user. - [Save Api Key](https://databridge-datetime-fix.mintlify.app/api-reference/models/save-api-key.md): Save API key for a provider. - [Save Model](https://databridge-datetime-fix.mintlify.app/api-reference/models/save-model.md): Save a custom model configuration. - [Query Completion](https://databridge-datetime-fix.mintlify.app/api-reference/query-completion.md): Generate completion using relevant chunks as context. - [Retrieve Chunks](https://databridge-datetime-fix.mintlify.app/api-reference/retrieve-chunks.md): Retrieve relevant chunks. - [Retrieve Chunks Grouped](https://databridge-datetime-fix.mintlify.app/api-reference/retrieve-chunks-grouped.md): Retrieve relevant chunks with grouped response format. - [Retrieve Documents](https://databridge-datetime-fix.mintlify.app/api-reference/retrieve-documents.md): Retrieve relevant documents. - [Search Documents By Name](https://databridge-datetime-fix.mintlify.app/api-reference/search-documents-by-name.md): Search documents by filename using full-text search. - [Update Chat Title](https://databridge-datetime-fix.mintlify.app/api-reference/update-chat-title.md): Update the title of a chat conversation. - [When Multimodal Models Go Blind](https://databridge-datetime-fix.mintlify.app/blogs/gpt-vs-morphik-multimodal.md): A technical exploration of why even natively multimodal LLMs struggle with diagram interpretation in documents - [LLM Science Battle](https://databridge-datetime-fix.mintlify.app/blogs/llm-science-battle.md): Drowning in Discoveries? How LLMs (and Morphik) Are Learning to Read Science - [Vibe-Coding Memory](https://databridge-datetime-fix.mintlify.app/blogs/memory-vibe-coding.md): What I Learnt From Vibe-Coding an Alternative to ChatGPT's New Memory Feature - [Why We Stopped Parsing Documents for RAG (And You Should Too)](https://databridge-datetime-fix.mintlify.app/blogs/stop-parsing-docs.md) - [Retrieving Images](https://databridge-datetime-fix.mintlify.app/concepts/colpali.md): Using Late-interaction and Contrastive learning to achieve state-of-the-art performance in visual retrieval - [Knowledge Graphs and Graph RAG](https://databridge-datetime-fix.mintlify.app/concepts/knowledge-graphs.md): Leveraging graph-based relationships for improved context and retrieval in RAG systems - [Metadata Filtering](https://databridge-datetime-fix.mintlify.app/concepts/metadata-filtering.md): Canonical reference for Morphik’s metadata filter DSL and typed comparisons. - [Introduction to RAG](https://databridge-datetime-fix.mintlify.app/concepts/naive-rag.md): An overview of Retrieval Augmented Generation with Vector Similarity Search - [User and Folder Scoping](https://databridge-datetime-fix.mintlify.app/concepts/user-folder-scoping.md): Organizing data with user and folder scoping in Morphik - [Configure Morphik](https://databridge-datetime-fix.mintlify.app/configuration.md): Exploring the tunable knobs via `morphik.toml` - [Agent Workflows](https://databridge-datetime-fix.mintlify.app/cookbooks/agent-workflows.md): Practical examples of using the Morphik Agent for complex analysis tasks - [API Basic Operations](https://databridge-datetime-fix.mintlify.app/cookbooks/api-basic-operations.md): End-to-end walkthrough of ingestion, retrieval, and LLM integration using the Morphik REST API. - [Complex Metadata Filtering](https://databridge-datetime-fix.mintlify.app/cookbooks/complex-metadata-filtering.md): Advanced document filtering using dates, arrays, decimals, and multiple operators for precise retrieval. - [Generating Completions with Retrieved Chunks](https://databridge-datetime-fix.mintlify.app/cookbooks/generating-completions-with-retrieved-chunks.md): Send Morphik document chunks to OpenAI using presigned URLs or base64-encoded images for vision model completions. - [Python SDK Basic Operations](https://databridge-datetime-fix.mintlify.app/cookbooks/python-basic-operations.md): End-to-end walkthrough of ingestion, retrieval, and LLM integration using the Morphik Python SDK. - [TypeScript Basic Operations](https://databridge-datetime-fix.mintlify.app/cookbooks/typescript-basic-operations.md): End-to-end walkthrough of ingestion, retrieval, and LLM handoff with the Morphik TypeScript SDK. - [Getting Started](https://databridge-datetime-fix.mintlify.app/getting-started.md): Get up and running with Morphik - [What is Morphik?](https://databridge-datetime-fix.mintlify.app/introduction.md): An overview of Morphik - [How do I set up RAG?](https://databridge-datetime-fix.mintlify.app/knowledge-base/how-do-i-set-up-rag.md): Overview of building a retrieval augmented generation workflow - [How do I handle multi-modal inputs?](https://databridge-datetime-fix.mintlify.app/knowledge-base/how-to-handle-multi-modal-inputs.md): Combining text, images, and other data types in a search system - [How can I improve retrieval accuracy?](https://databridge-datetime-fix.mintlify.app/knowledge-base/how-to-improve-retrieval-accuracy.md): Best practices for getting the most relevant results from your data - [How should I chunk my documents?](https://databridge-datetime-fix.mintlify.app/knowledge-base/how-to-manage-document-chunking.md): Guidance on splitting data for optimal retrieval - [How do I perform search over documents?](https://databridge-datetime-fix.mintlify.app/knowledge-base/how-to-perform-search-over-documents.md): Techniques for searching document collections efficiently - [Local Inference](https://databridge-datetime-fix.mintlify.app/local-inference.md): Run Morphik completely offline with local embedding and completion models - [add_document_to_folder](https://databridge-datetime-fix.mintlify.app/python-sdk/add_document_to_folder.md): Add an existing document to a folder - [batch_get_chunks](https://databridge-datetime-fix.mintlify.app/python-sdk/batch_get_chunks.md): Retrieve specific chunks by their document ID and chunk number - [batch_get_documents](https://databridge-datetime-fix.mintlify.app/python-sdk/batch_get_documents.md): Retrieve multiple documents by their IDs in a single batch operation - [check_workflow_status](https://databridge-datetime-fix.mintlify.app/python-sdk/check_workflow_status.md): Poll the status of an asynchronous graph build/update workflow - [close](https://databridge-datetime-fix.mintlify.app/python-sdk/close.md): Close the HTTP session or client - [create_folder](https://databridge-datetime-fix.mintlify.app/python-sdk/create_folder.md): Create a new folder for organizing documents - [create_graph](https://databridge-datetime-fix.mintlify.app/python-sdk/create_graph.md): Create a graph from documents - [delete_document](https://databridge-datetime-fix.mintlify.app/python-sdk/delete_document.md): Delete a document and all its associated data - [delete_document_by_filename](https://databridge-datetime-fix.mintlify.app/python-sdk/delete_document_by_filename.md): Delete a document by its filename - [delete_folder](https://databridge-datetime-fix.mintlify.app/python-sdk/delete_folder.md): Delete a folder and its documents - [extract_document_pages](https://databridge-datetime-fix.mintlify.app/python-sdk/extract_document_pages.md): Extract specific pages from a document - [Folder Management](https://databridge-datetime-fix.mintlify.app/python-sdk/folders.md): Organize and isolate data into logical folder groups in Morphik - [get_chat_history](https://databridge-datetime-fix.mintlify.app/python-sdk/get_chat_history.md): Fetch the full message history for a specific chat conversation - [get_document](https://databridge-datetime-fix.mintlify.app/python-sdk/get_document.md): Get document metadata by ID - [get_document_by_filename](https://databridge-datetime-fix.mintlify.app/python-sdk/get_document_by_filename.md): Get document metadata by filename - [get_document_download_url](https://databridge-datetime-fix.mintlify.app/python-sdk/get_document_download_url.md): Generate a presigned URL to download a document's raw file content - [get_document_file](https://databridge-datetime-fix.mintlify.app/python-sdk/get_document_file.md): Download the raw file content of a document - [get_document_status](https://databridge-datetime-fix.mintlify.app/python-sdk/get_document_status.md): Get the current processing status of a document - [get_folder](https://databridge-datetime-fix.mintlify.app/python-sdk/get_folder.md): Retrieve a folder by name or UUID - [get_folders_details](https://databridge-datetime-fix.mintlify.app/python-sdk/get_folders_details.md): Get detailed information about folders with optional document statistics - [get_folders_summary](https://databridge-datetime-fix.mintlify.app/python-sdk/get_folders_summary.md): Get summary information for all accessible folders - [get_graph](https://databridge-datetime-fix.mintlify.app/python-sdk/get_graph.md): Get a graph by name - [get_graph_status](https://databridge-datetime-fix.mintlify.app/python-sdk/get_graph_status.md): Get the current status of a graph with pipeline stage information - [get_graph_visualization](https://databridge-datetime-fix.mintlify.app/python-sdk/get_graph_visualization.md): Retrieve nodes and links for visualizing a knowledge graph - [get_recent_usage](https://databridge-datetime-fix.mintlify.app/python-sdk/get_recent_usage.md): Retrieve a log of recent usage entries with optional filters - [get_usage_stats](https://databridge-datetime-fix.mintlify.app/python-sdk/get_usage_stats.md): Retrieve cumulative token usage for the current user or application - [ingest_file](https://databridge-datetime-fix.mintlify.app/python-sdk/ingest_file.md): Ingest a file document into Morphik - [ingest_files](https://databridge-datetime-fix.mintlify.app/python-sdk/ingest_files.md): Batch ingest multiple files into Morphik - [ingest_text](https://databridge-datetime-fix.mintlify.app/python-sdk/ingest_text.md): Ingest a text document into Morphik - [list_chat_conversations](https://databridge-datetime-fix.mintlify.app/python-sdk/list_chat_conversations.md): List recent chat conversations for the authenticated user - [list_documents](https://databridge-datetime-fix.mintlify.app/python-sdk/list_documents.md): List accessible documents in Morphik - [list_folders](https://databridge-datetime-fix.mintlify.app/python-sdk/list_folders.md): List all folders available to the client - [list_graphs](https://databridge-datetime-fix.mintlify.app/python-sdk/list_graphs.md): List all graphs the user has access to - [Migration Guide: v0.x to v1.0](https://databridge-datetime-fix.mintlify.app/python-sdk/migration-v1.md): Guide for upgrading from Morphik SDK v0.x to v1.0 - [Morphik](https://databridge-datetime-fix.mintlify.app/python-sdk/morphik.md): Main client for document operations in Morphik - [ping](https://databridge-datetime-fix.mintlify.app/python-sdk/ping.md): Health-check endpoint – verify that your Morphik server is reachable - [query](https://databridge-datetime-fix.mintlify.app/python-sdk/query.md): Generate completion using relevant chunks as context - [query_document](https://databridge-datetime-fix.mintlify.app/python-sdk/query_document.md): Run a one-off Morphik On-the-Fly analysis with optional ingestion follow-up - [remove_document_from_folder](https://databridge-datetime-fix.mintlify.app/python-sdk/remove_document_from_folder.md): Remove a document from a folder - [retrieve_chunks](https://databridge-datetime-fix.mintlify.app/python-sdk/retrieve_chunks.md): Retrieve relevant chunks from Morphik - [retrieve_chunks_grouped](https://databridge-datetime-fix.mintlify.app/python-sdk/retrieve_chunks_grouped.md): Retrieve relevant chunks with grouping for UI display - [retrieve_docs](https://databridge-datetime-fix.mintlify.app/python-sdk/retrieve_docs.md): Retrieve relevant documents from Morphik - [search_documents](https://databridge-datetime-fix.mintlify.app/python-sdk/search_documents.md): Search for documents by name or filename - [update_document_by_filename_metadata](https://databridge-datetime-fix.mintlify.app/python-sdk/update_document_by_filename_metadata.md): Update a document's metadata using filename to identify the document - [update_document_by_filename_with_file](https://databridge-datetime-fix.mintlify.app/python-sdk/update_document_by_filename_with_file.md): Update a document identified by filename with content from a file - [update_document_by_filename_with_text](https://databridge-datetime-fix.mintlify.app/python-sdk/update_document_by_filename_with_text.md): Update a document identified by filename with new text content - [update_document_metadata](https://databridge-datetime-fix.mintlify.app/python-sdk/update_document_metadata.md): Update a document's metadata only - [update_document_with_file](https://databridge-datetime-fix.mintlify.app/python-sdk/update_document_with_file.md): Update a document with content from a file - [update_document_with_text](https://databridge-datetime-fix.mintlify.app/python-sdk/update_document_with_text.md): Update a document with new text content - [update_graph](https://databridge-datetime-fix.mintlify.app/python-sdk/update_graph.md): Update an existing knowledge graph with new documents - [User Management](https://databridge-datetime-fix.mintlify.app/python-sdk/users.md): Organize and isolate data by end user in Morphik - [wait_for_graph_completion](https://databridge-datetime-fix.mintlify.app/python-sdk/wait_for_graph_completion.md): Block until a graph finishes processing - [Installation](https://databridge-datetime-fix.mintlify.app/self-hosting.md): Install Morphik on your own infrastructure - [Special Thanks](https://databridge-datetime-fix.mintlify.app/special-thanks.md): Thanking our amazing users for pointing out bugs, requesting features, and being early adopters ❤️ - [Code](https://databridge-datetime-fix.mintlify.app/using-morphik/code.md): Learn how to use the Morphik Python SDK or REST API - [Model Context Protocol (MCP)](https://databridge-datetime-fix.mintlify.app/using-morphik/mcp.md): Enable Claude and other AI assistants to access your Morphik knowledge base - [Morphik UI](https://databridge-datetime-fix.mintlify.app/using-morphik/morphik-ui.md): Learn how to use the Morphik UI interface ## OpenAPI Specs - [openapi.documented](https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml)