Skip to main content
POST
/
documents
/
process
Python
from meibel import MeibelClient

client = MeibelClient(api_key="your-api-key")

# Upload a file
with open("document.pdf", "rb") as f:
    result = client.documents.process(file=f, filename="document.pdf")
    print(result)
{
  "job_id": "<string>",
  "status": "<string>",
  "result": {
    "elements": [
      {
        "type": "<string>",
        "text": "<string>",
        "level": 123,
        "table": {
          "cells": [
            {
              "text": "<string>",
              "row": 123,
              "col": 123,
              "row_span": 1,
              "col_span": 1,
              "bbox": {
                "x": 123,
                "y": 123,
                "width": 123,
                "height": 123,
                "page": 123
              }
            }
          ],
          "rows": 123,
          "cols": 123,
          "bbox": {
            "x": 123,
            "y": 123,
            "width": 123,
            "height": 123,
            "page": 123
          }
        },
        "bbox": {
          "x": 123,
          "y": 123,
          "width": 123,
          "height": 123,
          "page": 123
        },
        "confidence": 123,
        "page": 123
      }
    ],
    "pages": 123,
    "tables": 123,
    "metadata": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.meibel.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Meibel-API-Key
string
header
required

Query Parameters

format
string
default:markdown

Result format: markdown, annotated, docling, json

Body

multipart/form-data
file
file
required

The document file to process

Response

Successful Response

Returned from POST /documents/process (sync).

job_id
string
required
status
string
required

'completed'

result
required

Full structured parse result (meibel format).