# Meibel - [Meibel](https://docs.meibel.ai/index.md): Parse, transform, ingest, and put agents on your data. Powerful primitives, one API. - [Installation](https://docs.meibel.ai/installation.md): Install Meibel SDKs in your development environment - [Getting Started](https://docs.meibel.ai/quickstart.md): Parse a document, build a knowledge base, chat with an agent, and extract structured data one document at a time and across a whole datasource - [Ask a Million-Row CSV Precise Questions](https://docs.meibel.ai/tutorials/datasource-csv-tutorial.md): Load a public dataset of almost two million records as a datasource and ask an agent precise questions about it in plain language - [Parse your first document](https://docs.meibel.ai/document-parsing/tutorials/parse-your-first-document.md): Submit a PDF, wait for the job to finish, and read the structured result, all through the Meibel API - [Agents](https://docs.meibel.ai/concepts/agents.md): How Meibel agents use your context to reason, generate artifacts, and chat with users - [Integrations](https://docs.meibel.ai/concepts/integrations.md): How Meibel connects to external systems, and how agents use those connections as tools - [Datasources](https://docs.meibel.ai/concepts/datasources.md): How a datasource turns your structured and unstructured data into knowledge that agents search and query while they reason - [Batch Jobs](https://docs.meibel.ai/concepts/batch-jobs.md): How Meibel runs an agent across many inputs in parallel, using the same configuration developed on a single input - [Execution Policies](https://docs.meibel.ai/concepts/execution-policies.md): How Meibel controls what data and tools an agent session can access at runtime through platform-enforced constraints - [Confidence Scoring](https://docs.meibel.ai/concepts/confidence-scoring.md): How Meibel evaluates the quality of an agent's work at each step using configurable judged and statistical modules - [Tool Evaluation](https://docs.meibel.ai/confidence-scoring/concepts/tool-evaluation.md): How the Tool Usage and Tractability modules evaluate whether an agent used its tools well and whether those tools fit the task - [How parsing works](https://docs.meibel.ai/document-parsing/concepts/how-parsing-works.md): What Meibel recovers from a document, and the stages a file moves through from raw bytes to ordered structural elements - [The parsed document](https://docs.meibel.ai/document-parsing/concepts/the-parsed-document.md): The element model behind every output format: typed content, table grids, chart data, recognized labels, positions, and confidence - [Charts, formulas, and vision models](https://docs.meibel.ai/document-parsing/concepts/charts-and-vision.md): How Meibel recognizes charts, formulas, seals, and pictures with vision models, and digitizes charts back into data series - [Managing Agents](https://docs.meibel.ai/guides/agents.md): Create, configure, publish, version, and delete agents - [Sessions & Chat](https://docs.meibel.ai/guides/sessions-and-chat.md): Create sessions, send messages, and stream responses - [Prompts & Artifact Schemas](https://docs.meibel.ai/guides/prompts-and-schemas.md): Create reusable prompts and define structured output schemas for agents - [Managing Datasources](https://docs.meibel.ai/guides/datasources.md): Create datasources, upload files, trigger ingestion, and manage the data pipeline - [Managing Datasource Metadata](https://docs.meibel.ai/guides/datasource-metadata.md): Apply a metadata shape, define custom fields, annotate data elements, and index the fields you want to search and scope by - [Data Elements](https://docs.meibel.ai/guides/data-elements.md): List, search, inspect, and update extracted data elements - [Deep Transform](https://docs.meibel.ai/guides/deep-transform.md): Extract schema-conformant JSON from a document, with per-value provenance - [Document Processing](https://docs.meibel.ai/guides/documents.md): Parse documents asynchronously or synchronously, poll for results, and stream trace events - [Choosing an output format](https://docs.meibel.ai/document-parsing/guides/choosing-an-output-format.md): Pick between Markdown, the structured result, and annotated output based on what your application does with the result - [Extracting tables](https://docs.meibel.ai/document-parsing/guides/extracting-tables.md): Read table cells by row and column from the structured result, including tables with merged and spanning cells - [Extracting chart data](https://docs.meibel.ai/document-parsing/guides/extracting-chart-data.md): Read a chart's digitized series, values, and recognized labels from the structured result - [Parsing scanned documents](https://docs.meibel.ai/document-parsing/guides/parsing-scanned-documents.md): Parse scans and image-only PDFs, where OCR and orientation correction run automatically, and read the result with confidence in mind - [Preparing parsed content for RAG](https://docs.meibel.ai/document-parsing/guides/structure-for-rag.md): Use headings, elements, and provenance from a parse to build well-structured chunks for retrieval-augmented generation - [Managing Execution Policies](https://docs.meibel.ai/guides/execution-policies.md): Write execution policies inline on agent definitions, sessions, and batch definitions to control what data and tools each execution can access - [Output schema](https://docs.meibel.ai/document-parsing/reference/output-schema.md): Field-by-field detail of the strongly-typed structured result: the document, pages, elements, tables, cells, bounding boxes, and chart data - [Element types](https://docs.meibel.ai/document-parsing/reference/element-types.md): The content roles an element can take, what each represents, and how it renders - [Formats and capabilities](https://docs.meibel.ai/document-parsing/reference/formats-and-capabilities.md): Supported inputs, output formats, the capability matrix, container documents, and the parsing endpoints - [Troubleshooting](https://docs.meibel.ai/troubleshooting.md): Diagnose and fix common Meibel issues: authentication errors, ingestion failures, rate limits, agent errors, and SDK setup problems. - [API Reference](https://docs.meibel.ai/api-reference/introduction.md): Introduction to the Meibel REST API for parsing documents, managing datasources, running agents, and extracting structured data. - [Authentication](https://docs.meibel.ai/api-reference/authentication.md): Authenticate requests to the Meibel API with an API key passed in the Meibel-API-Key header, and manage keys securely in production. - [Errors](https://docs.meibel.ai/api-reference/errors.md): Understand Meibel API error codes: HTTP status ranges, structured error payloads, common failure modes, and how to recover from them. - [Rate Limits](https://docs.meibel.ai/api-reference/rate-limits.md): Meibel API rate limits: per-key thresholds, rate-limit response headers, error codes for throttling, and backoff strategies for clients. - [Python SDK](https://docs.meibel.ai/sdk/python.md): Install and use the official Meibel Python SDK: async client, typed models, streaming responses, and idiomatic examples for every endpoint. - [TypeScript SDK](https://docs.meibel.ai/sdk/nodejs.md): Install and use the official Meibel TypeScript SDK: a fully typed client with promises, streaming, and generated types for every endpoint. - [Go SDK](https://docs.meibel.ai/sdk/go.md): Install and use the official Meibel Go SDK: idiomatic Go client with typed request and response structs and examples for every endpoint. - [CLI](https://docs.meibel.ai/sdk/cli.md): Install and use the Meibel CLI to parse documents, manage datasources, run agents, and script pipelines from the command line. - [Pagination](https://docs.meibel.ai/api-ref-guides/pagination.md): Work with cursor-based pagination in the Meibel API: read next_cursor values, request additional pages, and iterate over long result sets. - [Streaming](https://docs.meibel.ai/api-ref-guides/streaming.md): Consume Server-Sent Events from the Meibel API to stream agent responses, job progress, and long-running results in real time. - [File Uploads](https://docs.meibel.ai/api-ref-guides/file-uploads.md): Upload files to the Meibel API with streamed 64 KB chunks, resumable transfers, and endpoints for progress tracking. - [Error Handling](https://docs.meibel.ai/api-ref-guides/error-handling.md): Handle Meibel API errors: interpret HTTP status codes, parse error responses, and implement retry and recovery patterns. - [List Agents](https://docs.meibel.ai/api-reference/v2/endpoints/agents/list-agents.md) - [Create Agent](https://docs.meibel.ai/api-reference/v2/endpoints/agents/create-agent.md) - [Get Agent](https://docs.meibel.ai/api-reference/v2/endpoints/agents/get-agent.md) - [Update Agent](https://docs.meibel.ai/api-reference/v2/endpoints/agents/update-agent.md) - [Delete Agent](https://docs.meibel.ai/api-reference/v2/endpoints/agents/delete-agent.md) - [Publish Agent](https://docs.meibel.ai/api-reference/v2/endpoints/agents/publish-agent.md) - [List Agent Versions](https://docs.meibel.ai/api-reference/v2/endpoints/agents/list-agent-versions.md) - [Create Session By Name](https://docs.meibel.ai/api-reference/v2/endpoints/agents/create-session-by-name.md): Start a session against the latest published version of an agent by name. - [List Sessions](https://docs.meibel.ai/api-reference/v2/endpoints/agents/list-sessions.md) - [Create Session](https://docs.meibel.ai/api-reference/v2/endpoints/agents/create-session.md) - [Send Chat Message](https://docs.meibel.ai/api-reference/v2/endpoints/sessions/send-chat-message.md) - [Send a chat message with file attachments and stream the response via SSE](https://docs.meibel.ai/api-reference/v2/endpoints/sessions/send-a-chat-message-with-file-attachments-and-stream-the-response-via-sse.md) - [Get Session](https://docs.meibel.ai/api-reference/v2/endpoints/sessions/get-session.md) - [Get Session Messages](https://docs.meibel.ai/api-reference/v2/endpoints/sessions/get-session-messages.md) - [List Artifact Schemas](https://docs.meibel.ai/api-reference/v2/endpoints/artifact-schemas/list-artifact-schemas.md) - [Create Artifact Schema](https://docs.meibel.ai/api-reference/v2/endpoints/artifact-schemas/create-artifact-schema.md) - [Get Artifact Schema](https://docs.meibel.ai/api-reference/v2/endpoints/artifact-schemas/get-artifact-schema.md) - [Update Artifact Schema](https://docs.meibel.ai/api-reference/v2/endpoints/artifact-schemas/update-artifact-schema.md) - [Delete Artifact Schema](https://docs.meibel.ai/api-reference/v2/endpoints/artifact-schemas/delete-artifact-schema.md) - [List Datasources](https://docs.meibel.ai/api-reference/v2/endpoints/datasources/list-datasources.md) - [Create Datasource](https://docs.meibel.ai/api-reference/v2/endpoints/datasources/create-datasource.md) - [Get Datasource](https://docs.meibel.ai/api-reference/v2/endpoints/datasources/get-datasource.md) - [Update Datasource](https://docs.meibel.ai/api-reference/v2/endpoints/datasources/update-datasource.md) - [Delete Datasource](https://docs.meibel.ai/api-reference/v2/endpoints/datasources/delete-datasource.md) - [List Tables](https://docs.meibel.ai/api-reference/v2/endpoints/table-descriptions/list-tables.md) - [Update Table Descriptions](https://docs.meibel.ai/api-reference/v2/endpoints/table-descriptions/update-table-descriptions.md) - [List Columns](https://docs.meibel.ai/api-reference/v2/endpoints/table-descriptions/list-columns.md) - [Update Column Descriptions](https://docs.meibel.ai/api-reference/v2/endpoints/table-descriptions/update-column-descriptions.md) - [List Data Elements](https://docs.meibel.ai/api-reference/v2/endpoints/data-elements/list-data-elements.md) - [Get Data Element](https://docs.meibel.ai/api-reference/v2/endpoints/data-elements/get-data-element.md) - [Update Data Element](https://docs.meibel.ai/api-reference/v2/endpoints/data-elements/update-data-element.md) - [Search Data Elements](https://docs.meibel.ai/api-reference/v2/endpoints/data-elements/search-data-elements.md) - [List Content](https://docs.meibel.ai/api-reference/v2/endpoints/file-upload/list-content.md) - [Upload Content (async)](https://docs.meibel.ai/api-reference/v2/endpoints/file-upload/upload-content-async.md) - [Upload Content (sync)](https://docs.meibel.ai/api-reference/v2/endpoints/file-upload/upload-content-sync.md) - [Stream Upload Progress](https://docs.meibel.ai/api-reference/v2/endpoints/file-upload/stream-upload-progress.md) - [Create Download Job (async)](https://docs.meibel.ai/api-reference/v2/endpoints/datasource-downloads/create-download-job-async.md) - [Process Download (sync)](https://docs.meibel.ai/api-reference/v2/endpoints/datasource-downloads/process-download-sync.md) - [Stream Download Progress](https://docs.meibel.ai/api-reference/v2/endpoints/datasource-downloads/stream-download-progress.md) - [Download File](https://docs.meibel.ai/api-reference/v2/endpoints/datasource-downloads/download-file.md) - [Trigger Ingest](https://docs.meibel.ai/api-reference/v2/endpoints/ingest/trigger-ingest.md) - [Get Ingest Status](https://docs.meibel.ai/api-reference/v2/endpoints/ingest/get-ingest-status.md) - [Parse a document (async)](https://docs.meibel.ai/api-reference/v2/endpoints/documents/parse-a-document-async.md): Upload a document for asynchronous parsing. Returns a job ID to track progress. - [Parse a document (sync)](https://docs.meibel.ai/api-reference/v2/endpoints/documents/parse-a-document-sync.md): Upload a document and block until parsing is complete. Returns the full parsed result. - [Get document parsing status](https://docs.meibel.ai/api-reference/v2/endpoints/documents/get-document-parsing-status.md): Check the status of a document parsing job, including progress statistics. - [Get parsed document result](https://docs.meibel.ai/api-reference/v2/endpoints/documents/get-parsed-document-result.md): Download the parsed result of a completed document parsing job. - [Get structured parse result](https://docs.meibel.ai/api-reference/v2/endpoints/documents/get-structured-parse-result.md): Download the fully structured parse result (the json format): pages, typed elements, tables, chart data, chart OCR text, and bounding boxes. The response schema (StructuredDocument) is defined by the parsing engine and hoisted into this spec by the OpenAPI generator. - [List child documents](https://docs.meibel.ai/api-reference/v2/endpoints/documents/list-child-documents.md): For container files (ZIP, TAR, EML), list the child documents extracted from the container. - [Stream document parsing trace](https://docs.meibel.ai/api-reference/v2/endpoints/documents/stream-document-parsing-trace.md): Subscribe to real-time parsing progress via Server-Sent Events. - [Move documents into a datasource (async)](https://docs.meibel.ai/api-reference/v2/endpoints/documents/move-documents-into-a-datasource-async.md): Move documents (identified by their parse job IDs, e.g. the job_id returned by parseDocument) into an existing datasource or a newly created one. Returns a workflow_id to poll for completion. - [Transform a document using AI extraction (sync)](https://docs.meibel.ai/api-reference/v2/endpoints/documents/transform-a-document-using-ai-extraction-sync.md): Upload a document for AI-powered structured extraction and block until complete. The file is uploaded to cloud storage and processed by a system agent. - [Submit a document transform (async)](https://docs.meibel.ai/api-reference/v2/endpoints/documents/submit-a-document-transform-async.md): Upload a document for AI-powered extraction and return immediately. Poll for completion via client.sessions.get(execution_id). - [List deep-transform jobs](https://docs.meibel.ai/api-reference/v2/endpoints/documents/list-deep-transform-jobs.md): List the calling customer's deep-transform jobs, newest first. Scoped to the customer (and project, when a project header is set). Paginated via `offset`/`limit`. - [Submit a deep-transform extraction from a file upload (async)](https://docs.meibel.ai/api-reference/v2/endpoints/documents/submit-a-deep-transform-extraction-from-a-file-upload-async.md): Upload a document and submit an extraction against a JSON schema, returning immediately with a job id. To reuse an already-parsed document instead of uploading, use POST /documents/deep-transform/from-document. Poll status via GET /documents/deep-transform/{job_id} and download artifacts once it suc… - [Get deep-transform job status](https://docs.meibel.ai/api-reference/v2/endpoints/documents/get-deep-transform-job-status.md): Check status and, once succeeded, the list of downloadable artifacts. - [Download a deep-transform artifact](https://docs.meibel.ai/api-reference/v2/endpoints/documents/download-a-deep-transform-artifact.md): Download a named artifact (e.g. output.json) produced by a succeeded job. Ownership is verified against the customer header before any bytes are returned. - [Submit a deep-transform extraction reusing a parsed document (async)](https://docs.meibel.ai/api-reference/v2/endpoints/documents/submit-a-deep-transform-extraction-reusing-a-parsed-document-async.md): Submit an extraction that reuses an already-parsed document (by `document_job_id` from POST /documents) instead of re-parsing an upload. Returns immediately with a job id. Poll status via GET /documents/deep-transform/{job_id} and download artifacts once it succeeds. Submission is idempotent on the… - [List Batch Definitions](https://docs.meibel.ai/api-reference/v2/endpoints/batch-definitions/list-batch-definitions.md) - [Create Batch Definition](https://docs.meibel.ai/api-reference/v2/endpoints/batch-definitions/create-batch-definition.md) - [Get Batch Definition By Catalog Urn](https://docs.meibel.ai/api-reference/v2/endpoints/batch-definitions/get-batch-definition-by-catalog-urn.md) - [Get Batch Definition By Id](https://docs.meibel.ai/api-reference/v2/endpoints/batch-definitions/get-batch-definition-by-id.md) - [Update Batch Definition By Id](https://docs.meibel.ai/api-reference/v2/endpoints/batch-definitions/update-batch-definition-by-id.md) - [Delete Batch Definition By Id](https://docs.meibel.ai/api-reference/v2/endpoints/batch-definitions/delete-batch-definition-by-id.md) - [List Batch Definition Versions](https://docs.meibel.ai/api-reference/v2/endpoints/batch-definitions/list-batch-definition-versions.md) - [Execute Batch Definition](https://docs.meibel.ai/api-reference/v2/endpoints/batch-definitions/execute-batch-definition.md) - [List Batch Executions](https://docs.meibel.ai/api-reference/v2/endpoints/batch-executions/list-batch-executions.md) - [Create Batch Execution](https://docs.meibel.ai/api-reference/v2/endpoints/batch-executions/create-batch-execution.md) - [Get Batch Execution By Id](https://docs.meibel.ai/api-reference/v2/endpoints/batch-executions/get-batch-execution-by-id.md) - [Update Batch Execution By Id](https://docs.meibel.ai/api-reference/v2/endpoints/batch-executions/update-batch-execution-by-id.md) - [Get Batch Realtime Progress](https://docs.meibel.ai/api-reference/v2/endpoints/batch-executions/get-batch-realtime-progress.md) - [Retry Failed Items](https://docs.meibel.ai/api-reference/v2/endpoints/batch-executions/retry-failed-items.md) - [Cancel Batch Execution](https://docs.meibel.ai/api-reference/v2/endpoints/batch-executions/cancel-batch-execution.md) - [List Execution Policies](https://docs.meibel.ai/api-reference/v2/endpoints/execution-policies/list-execution-policies.md) - [Create Execution Policy](https://docs.meibel.ai/api-reference/v2/endpoints/execution-policies/create-execution-policy.md) - [Get Execution Policy](https://docs.meibel.ai/api-reference/v2/endpoints/execution-policies/get-execution-policy.md) - [Update Execution Policy](https://docs.meibel.ai/api-reference/v2/endpoints/execution-policies/update-execution-policy.md) - [Delete Execution Policy](https://docs.meibel.ai/api-reference/v2/endpoints/execution-policies/delete-execution-policy.md) - [List scoring jobs](https://docs.meibel.ai/api-reference/v2/endpoints/confidence-scoring/list-scoring-jobs.md): List confidence scoring jobs, optionally filtered by identity context fields. All filters are combined with AND logic. - [Get a scoring job](https://docs.meibel.ai/api-reference/v2/endpoints/confidence-scoring/get-a-scoring-job.md): Retrieve a single confidence scoring job by its ID, including its current status and score if completed. - [Get agent scoring summary](https://docs.meibel.ai/api-reference/v2/endpoints/confidence-scoring/get-agent-scoring-summary.md): Get an aggregated summary of confidence scores for a specific agent. - [Get agent session scoring summary](https://docs.meibel.ai/api-reference/v2/endpoints/confidence-scoring/get-agent-session-scoring-summary.md): Get an aggregated summary of confidence scores for a specific agent session. - [List Metadata Model Catalog](https://docs.meibel.ai/api-reference/v2/endpoints/metadata-model-catalog/list-metadata-model-catalog.md) - [Get Metadata Model Catalog Entry](https://docs.meibel.ai/api-reference/v2/endpoints/metadata-model-catalog/get-metadata-model-catalog-entry.md) ## OpenAPI Specs - [api-v2](/api-v2.json) ## Optional - [App](https://app.meibel.ai) - [Blog](https://www.meibel.ai/feed) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.