# Morphik Documentation ## Docs - [Batch Get Chunks](https://morphik.ai/docs/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://morphik.ai/docs/api-reference/batch-get-documents.md): Retrieve multiple documents by their IDs in a single batch operation. - [Creating Apps](https://morphik.ai/docs/api-reference/creating-apps.md): Provision isolated Morphik apps and generate connection URIs. - [Delete Cloud App](https://morphik.ai/docs/api-reference/delete-cloud-app.md): Delete all resources associated with a given cloud application. - [Delete Document](https://morphik.ai/docs/api-reference/documents/delete-document.md): Delete a document and all associated data. - [Download Document File](https://morphik.ai/docs/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://morphik.ai/docs/api-reference/documents/extract-document-pages.md): Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs. When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible). - [Get Document](https://morphik.ai/docs/api-reference/documents/get-document.md): Retrieve a single document by its external identifier. - [Get Document By Filename](https://morphik.ai/docs/api-reference/documents/get-document-by-filename.md): Get document by filename. - [Get Document Download Url](https://morphik.ai/docs/api-reference/documents/get-document-download-url.md): Get a download URL for a specific document. - [Get Document Status](https://morphik.ai/docs/api-reference/documents/get-document-status.md): Get the processing status of a document. - [Get Document Summary](https://morphik.ai/docs/api-reference/documents/get-document-summary.md): Retrieve the latest summary for a document. - [List Docs](https://morphik.ai/docs/api-reference/documents/list-docs.md): Flexible document listing with aggregates, projections, and advanced pagination. - [List Docs](https://morphik.ai/docs/api-reference/documents/list-docs-1.md): Flexible document listing with aggregates, projections, and advanced pagination. - [Update Document File](https://morphik.ai/docs/api-reference/documents/update-document-file.md): Update a document by replacing its content with a new file and queueing re-ingestion. - [Update Document Metadata](https://morphik.ai/docs/api-reference/documents/update-document-metadata.md): Update only a document's metadata. - [Update Document Text](https://morphik.ai/docs/api-reference/documents/update-document-text.md): Update a document by replacing its text content and queueing re-ingestion. - [Upsert Document Summary](https://morphik.ai/docs/api-reference/documents/upsert-document-summary.md): Create or update a document summary with optional versioning. - [Connector Oauth Callback](https://morphik.ai/docs/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://morphik.ai/docs/api-reference/ee--connectors/disconnect.md): Disconnect from a connector and remove credentials. - [Finalize Auth](https://morphik.ai/docs/api-reference/ee--connectors/finalize-auth.md): Finalize the OAuth flow and exchange the code for a token. - [Finalize Manual Auth](https://morphik.ai/docs/api-reference/ee--connectors/finalize-manual-auth.md): Finalize authentication using manual credentials. - [Get Auth Status For Connector](https://morphik.ai/docs/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://morphik.ai/docs/api-reference/ee--connectors/get-initiate-auth-url.md): Return the provider's *authorization_url* for the given connector. - [Get Status](https://morphik.ai/docs/api-reference/ee--connectors/get-status.md): Get the authentication status for a connector. - [Ingest File](https://morphik.ai/docs/api-reference/ee--connectors/ingest-file.md): Ingest a single file from a connector. - [Ingest Repository](https://morphik.ai/docs/api-reference/ee--connectors/ingest-repository.md): Ingest an entire GitHub repository. - [Initiate Auth](https://morphik.ai/docs/api-reference/ee--connectors/initiate-auth.md): Initiate the OAuth flow for a connector. - [List Files](https://morphik.ai/docs/api-reference/ee--connectors/list-files.md): List files from a connector. - [List Files For Connector](https://morphik.ai/docs/api-reference/ee--connectors/list-files-for-connector.md): Lists files and folders from the specified connector. - [Add Document To Folder](https://morphik.ai/docs/api-reference/folders/add-document-to-folder.md): Add a document to a folder. - [Create Folder](https://morphik.ai/docs/api-reference/folders/create-folder.md): Create a new folder. - [Delete Folder](https://morphik.ai/docs/api-reference/folders/delete-folder.md): Delete a folder and all associated documents. - [Folder Details](https://morphik.ai/docs/api-reference/folders/folder-details.md): Retrieve folder metadata with optional document statistics and projections. - [Get Folder](https://morphik.ai/docs/api-reference/folders/get-folder.md): Get a folder by ID or name. - [Get Folder Summary](https://morphik.ai/docs/api-reference/folders/get-folder-summary.md): Retrieve the latest summary for a folder. - [List Folder Summaries](https://morphik.ai/docs/api-reference/folders/list-folder-summaries.md): Return compact folder list (id, name, doc_count, updated_at). - [List Folders](https://morphik.ai/docs/api-reference/folders/list-folders.md): List all folders the user has access to. - [Remove Document From Folder](https://morphik.ai/docs/api-reference/folders/remove-document-from-folder.md): Remove a document from a folder. - [Upsert Folder Summary](https://morphik.ai/docs/api-reference/folders/upsert-folder-summary.md): Create or update a folder summary with optional versioning. - [Generate Cloud Uri](https://morphik.ai/docs/api-reference/generate-cloud-uri.md): Generate an authenticated URI for a cloud-hosted Morphik application. - [Get Available Models](https://morphik.ai/docs/api-reference/get-available-models.md): Get list of available models from configuration. - [Get Available Models For Selection](https://morphik.ai/docs/api-reference/get-available-models-for-selection.md): Get list of available models for UI selection. - [Get Chat History](https://morphik.ai/docs/api-reference/get-chat-history.md): Retrieve the message history for a chat conversation. - [Getting Started with Morphik API](https://morphik.ai/docs/api-reference/getting-started.md): Quick guide to start using the Morphik API - [Health Check](https://morphik.ai/docs/api-reference/health/health-check.md): Comprehensive health check endpoint that queries all underlying services. - [Ping Health](https://morphik.ai/docs/api-reference/health/ping-health.md): Simple health check endpoint that returns 200 OK. - [Batch Ingest Files](https://morphik.ai/docs/api-reference/ingestion/batch-ingest-files.md): Batch ingest **multiple files** (async). - [Ingest File](https://morphik.ai/docs/api-reference/ingestion/ingest-file.md): Ingest a **file** asynchronously. - [Ingest Text](https://morphik.ai/docs/api-reference/ingestion/ingest-text.md): Ingest a **text** document asynchronously (queued like /ingest/file). - [Query Document](https://morphik.ai/docs/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://morphik.ai/docs/api-reference/ingestion/requeue-ingest-jobs.md): Requeue ingestion jobs for documents stuck in processing or marked as failed. - [List Chat Conversations](https://morphik.ai/docs/api-reference/list-chat-conversations.md): List chat conversations available to the current user. - [List Cloud Apps](https://morphik.ai/docs/api-reference/list-cloud-apps.md): List provisioned apps for the specified organization/user. - [Get Logs](https://morphik.ai/docs/api-reference/logs/get-logs.md): Return recent logs for the authenticated user (scoped by app_id). - [Delete Model](https://morphik.ai/docs/api-reference/models/delete-model.md): Delete a custom model. - [List Api Keys](https://morphik.ai/docs/api-reference/models/list-api-keys.md): List all configured API keys (sanitized). - [List Custom Models](https://morphik.ai/docs/api-reference/models/list-custom-models.md): List all custom models for the authenticated user. - [Save Api Key](https://morphik.ai/docs/api-reference/models/save-api-key.md): Save API key for a provider. - [Save Model](https://morphik.ai/docs/api-reference/models/save-model.md): Save a custom model configuration. - [Query Completion](https://morphik.ai/docs/api-reference/query-completion.md): Generate completion using relevant chunks as context. - [Rename Cloud App](https://morphik.ai/docs/api-reference/rename-cloud-app.md): Rename an existing cloud application. - [Retrieve Chunks](https://morphik.ai/docs/api-reference/retrieve-chunks.md): Retrieve relevant chunks. - [Retrieve Chunks Grouped](https://morphik.ai/docs/api-reference/retrieve-chunks-grouped.md): Retrieve relevant chunks with grouped response format. - [Retrieve Documents](https://morphik.ai/docs/api-reference/retrieve-documents.md): Retrieve relevant documents. - [Rotate App Token](https://morphik.ai/docs/api-reference/rotate-app-token.md): Rotate the token for an existing application. - [Search Documents By Name](https://morphik.ai/docs/api-reference/search-documents-by-name.md): Search documents by filename using full-text search. - [Update Chat Title](https://morphik.ai/docs/api-reference/update-chat-title.md): Update the title of a chat conversation. - [Get App Storage Usage](https://morphik.ai/docs/api-reference/usage/get-app-storage-usage.md) - [Cloud Architecture](https://morphik.ai/docs/concepts/cloud-architecture.md): How Morphik Cloud UI and Morphik Core interact in production deployments. - [Retrieving Images](https://morphik.ai/docs/concepts/colpali.md): Using Late-interaction and Contrastive learning to achieve state-of-the-art performance in visual retrieval - [Metadata Filtering](https://morphik.ai/docs/concepts/metadata-filtering.md): Canonical reference for Morphik’s metadata filter DSL and typed comparisons. - [Introduction to RAG](https://morphik.ai/docs/concepts/naive-rag.md): An overview of Retrieval Augmented Generation with Vector Similarity Search - [User and Folder Scoping](https://morphik.ai/docs/concepts/user-folder-scoping.md): Organizing data with user and folder scoping in Morphik - [Configure Morphik](https://morphik.ai/docs/configuration.md): Exploring the tunable knobs via `morphik.toml` - [Agent Workflows](https://morphik.ai/docs/cookbooks/agent-workflows.md): Practical examples of using the Morphik Agent for complex analysis tasks - [API Basic Operations](https://morphik.ai/docs/cookbooks/api-basic-operations.md): End-to-end walkthrough of ingestion, retrieval, and LLM integration using the Morphik REST API. - [Complex Metadata Filtering](https://morphik.ai/docs/cookbooks/complex-metadata-filtering.md): Advanced document filtering using dates, arrays, decimals, and multiple operators for precise retrieval. - [Generating Completions with Retrieved Chunks](https://morphik.ai/docs/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://morphik.ai/docs/cookbooks/python-basic-operations.md): End-to-end walkthrough of ingestion, retrieval, and LLM integration using the Morphik Python SDK. - [TypeScript Basic Operations](https://morphik.ai/docs/cookbooks/typescript-basic-operations.md): End-to-end walkthrough of ingestion, retrieval, and LLM handoff with the Morphik TypeScript SDK. - [Batch Get Chunks](https://morphik.ai/docs/core-functions/batch-get-chunks.md): Retrieve specific chunks by document ID and chunk number - [Delete Document](https://morphik.ai/docs/core-functions/delete-document.md): Remove a document and all its associated data - [Ingest File](https://morphik.ai/docs/core-functions/ingest-file.md): Upload and process a file into Morphik - [List Documents](https://morphik.ai/docs/core-functions/list-documents.md): List and filter documents in your Morphik database - [Retrieve Chunks](https://morphik.ai/docs/core-functions/retrieve-chunks.md): Search and retrieve relevant chunks from your documents - [Getting Started](https://morphik.ai/docs/getting-started.md): Get up and running with Morphik - [What is Morphik?](https://morphik.ai/docs/introduction.md): An overview of Morphik - [How do I set up RAG?](https://morphik.ai/docs/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://morphik.ai/docs/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://morphik.ai/docs/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://morphik.ai/docs/knowledge-base/how-to-manage-document-chunking.md): Guidance on splitting data for optimal retrieval - [How do I perform search over documents?](https://morphik.ai/docs/knowledge-base/how-to-perform-search-over-documents.md): Techniques for searching document collections efficiently - [Local Inference](https://morphik.ai/docs/local-inference.md): Run Morphik completely offline with local embedding and completion models - [add_document_to_folder](https://morphik.ai/docs/python-sdk/add_document_to_folder.md): Add an existing document to a folder - [batch_get_chunks](https://morphik.ai/docs/python-sdk/batch_get_chunks.md): Retrieve specific chunks by their document ID and chunk number - [batch_get_documents](https://morphik.ai/docs/python-sdk/batch_get_documents.md): Retrieve multiple documents by their IDs in a single batch operation - [close](https://morphik.ai/docs/python-sdk/close.md): Close the HTTP session or client - [create_app](https://morphik.ai/docs/python-sdk/create_app.md): Create a cloud app and return its authenticated URI - [create_folder](https://morphik.ai/docs/python-sdk/create_folder.md): Create a new folder for organizing documents - [delete_app](https://morphik.ai/docs/python-sdk/delete_app.md): Delete a cloud app by name - [delete_document](https://morphik.ai/docs/python-sdk/delete_document.md): Delete a document and all its associated data - [delete_document_by_filename](https://morphik.ai/docs/python-sdk/delete_document_by_filename.md): Delete a document by its filename - [delete_folder](https://morphik.ai/docs/python-sdk/delete_folder.md): Delete a folder and its documents - [extract_document_pages](https://morphik.ai/docs/python-sdk/extract_document_pages.md): Extract specific pages from a document - [Folder Management](https://morphik.ai/docs/python-sdk/folders.md): Organize and isolate data into logical folder groups in Morphik - [generate_cloud_uri](https://morphik.ai/docs/python-sdk/generate_cloud_uri.md): Deprecated alias for create_app - [get_app_storage_usage](https://morphik.ai/docs/python-sdk/get_app_storage_usage.md): Return storage usage metrics for the authenticated app - [get_chat_history](https://morphik.ai/docs/python-sdk/get_chat_history.md): Fetch the full message history for a specific chat conversation - [get_document](https://morphik.ai/docs/python-sdk/get_document.md): Get document metadata by ID - [get_document_by_filename](https://morphik.ai/docs/python-sdk/get_document_by_filename.md): Get document metadata by filename - [get_document_download_url](https://morphik.ai/docs/python-sdk/get_document_download_url.md): Generate a presigned URL to download a document's raw file content - [get_document_file](https://morphik.ai/docs/python-sdk/get_document_file.md): Download the raw file content of a document - [get_document_status](https://morphik.ai/docs/python-sdk/get_document_status.md): Get the current processing status of a document - [get_document_summary](https://morphik.ai/docs/python-sdk/get_document_summary.md): Fetch the stored summary for a document - [get_folder](https://morphik.ai/docs/python-sdk/get_folder.md): Retrieve a folder by name, canonical path, or UUID - [get_folder_by_name](https://morphik.ai/docs/python-sdk/get_folder_by_name.md): Create a folder scope from a name or path - [get_folder_summary](https://morphik.ai/docs/python-sdk/get_folder_summary.md): Fetch the stored summary for a folder - [get_folders_details](https://morphik.ai/docs/python-sdk/get_folders_details.md): Get detailed information about folders with optional document statistics - [get_folders_summary](https://morphik.ai/docs/python-sdk/get_folders_summary.md): Get summary information for all accessible folders - [get_health](https://morphik.ai/docs/python-sdk/get_health.md): Return detailed health status for the API - [get_info](https://morphik.ai/docs/python-sdk/get_info.md): Fetch the latest folder metadata from the API - [get_logs](https://morphik.ai/docs/python-sdk/get_logs.md): Fetch recent API log events for the authenticated app - [get_summary](https://morphik.ai/docs/python-sdk/get_summary.md): Fetch the latest summary for a folder scope - [ingest_directory](https://morphik.ai/docs/python-sdk/ingest_directory.md): Ingest all files in a directory - [ingest_file](https://morphik.ai/docs/python-sdk/ingest_file.md): Ingest a file document into Morphik - [ingest_files](https://morphik.ai/docs/python-sdk/ingest_files.md): Batch ingest multiple files into Morphik - [ingest_text](https://morphik.ai/docs/python-sdk/ingest_text.md): Ingest a text document into Morphik - [list_apps](https://morphik.ai/docs/python-sdk/list_apps.md): List cloud apps accessible to the current credentials - [list_chat_conversations](https://morphik.ai/docs/python-sdk/list_chat_conversations.md): List recent chat conversations for the authenticated user - [list_documents](https://morphik.ai/docs/python-sdk/list_documents.md): List accessible documents in Morphik - [list_folders](https://morphik.ai/docs/python-sdk/list_folders.md): List all folders available to the client - [Morphik](https://morphik.ai/docs/python-sdk/morphik.md): Main client for document operations in Morphik - [ping](https://morphik.ai/docs/python-sdk/ping.md): Health-check endpoint – verify that your Morphik server is reachable - [query](https://morphik.ai/docs/python-sdk/query.md): Generate completion using relevant chunks as context - [query_document](https://morphik.ai/docs/python-sdk/query_document.md): Run a one-off Morphik On-the-Fly analysis with optional ingestion follow-up - [remove_document_from_folder](https://morphik.ai/docs/python-sdk/remove_document_from_folder.md): Remove a document from a folder - [rename_app](https://morphik.ai/docs/python-sdk/rename_app.md): Rename a cloud app by ID or current name - [requeue_ingestion_jobs](https://morphik.ai/docs/python-sdk/requeue_ingestion_jobs.md): Requeue ingestion jobs for failed or stuck documents - [retrieve_chunks](https://morphik.ai/docs/python-sdk/retrieve_chunks.md): Retrieve relevant chunks from Morphik - [retrieve_chunks_grouped](https://morphik.ai/docs/python-sdk/retrieve_chunks_grouped.md): Retrieve relevant chunks with grouping for UI display - [retrieve_docs](https://morphik.ai/docs/python-sdk/retrieve_docs.md): Retrieve relevant documents from Morphik - [rotate_app_token](https://morphik.ai/docs/python-sdk/rotate_app_token.md): Rotate an app token by ID or name - [search_documents](https://morphik.ai/docs/python-sdk/search_documents.md): Search for documents by name or filename - [signin](https://morphik.ai/docs/python-sdk/signin.md): Create a user scope for end-user isolation - [update_document_by_filename_metadata](https://morphik.ai/docs/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://morphik.ai/docs/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://morphik.ai/docs/python-sdk/update_document_by_filename_with_text.md): Update a document identified by filename with new text content - [update_document_metadata](https://morphik.ai/docs/python-sdk/update_document_metadata.md): Update a document's metadata only - [update_document_with_file](https://morphik.ai/docs/python-sdk/update_document_with_file.md): Update a document with content from a file - [update_document_with_text](https://morphik.ai/docs/python-sdk/update_document_with_text.md): Update a document with new text content - [upsert_document_summary](https://morphik.ai/docs/python-sdk/upsert_document_summary.md): Create or update a document summary - [upsert_folder_summary](https://morphik.ai/docs/python-sdk/upsert_folder_summary.md): Create or update a folder summary - [upsert_summary](https://morphik.ai/docs/python-sdk/upsert_summary.md): Create or update a folder summary - [User Management](https://morphik.ai/docs/python-sdk/users.md): Organize and isolate data by end user in Morphik - [wait_for_document_completion](https://morphik.ai/docs/python-sdk/wait_for_document_completion.md): Block until a document finishes processing - [Installation](https://morphik.ai/docs/self-hosting.md): Install Morphik on your own infrastructure - [Special Thanks](https://morphik.ai/docs/special-thanks.md): Thanking our amazing users for pointing out bugs, requesting features, and being early adopters ❤️ - [Code](https://morphik.ai/docs/using-morphik/code.md): Learn how to use the Morphik Python SDK or REST API - [Model Context Protocol (MCP)](https://morphik.ai/docs/using-morphik/mcp.md): Enable Claude and other AI assistants to access your Morphik knowledge base - [Morphik UI](https://morphik.ai/docs/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)