Skip to main content

Prerequisites

Before you begin, make sure you have:
  • A Meibel account (sign up at console.meibel.ai if you don’t have one)
  • An API key (generated from the Dashboard under Settings > API Keys)

Step 1: Set Up Authentication

All requests to the Meibel API require authentication using your API key in the Meibel-API-Key header.
# Store your API key in an environment variable (recommended)
export MEIBEL_API_KEY="your-api-key"

# Make a test request to list datasources
curl -X GET "https://api.meibel.ai/v2/datasources" \
  -H "Meibel-API-Key: $MEIBEL_API_KEY" \
  -H "Content-Type: application/json"

Step 2: Parse a Document

Upload and parse a document to extract structured content:
curl -X POST "https://api.meibel.ai/v2/documents/parse" \
  -H "Meibel-API-Key: $MEIBEL_API_KEY" \
  -F "file=@document.pdf"

Step 3: Process a Document (Synchronous)

For convenience, you can parse and wait for the result in a single call:
with open("document.pdf", "rb") as f:
    result = client.documents.process_document(file=f)
    print(result)  # Parsed markdown content

Next Steps

SDK Guides

Learn more about our SDKs for Python, TypeScript, Go, and CLI

Browse the API Reference

Explore all available endpoints and parameters
Remember to secure your API keys and follow best practices for rate limiting and error handling in your production applications.