Skip to main content
POST
/
documents
/
transform
/
submit
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.submit_transform(file=f, filename="document.pdf")
    print(result)
{
  "execution_id": "<string>"
}

Authorizations

Meibel-API-Key
string
header
required

Body

multipart/form-data
file
file
required

Document file to transform

artifact_schema
string
required

JSON Schema dict (as JSON string) or schema name/ID

model
string

LLM model override

prompt
string

Extraction instructions override

prompt_id
string

Prompt template reference

timeout_seconds
integer
default:600

Max wait time in seconds (sync only)

Response

Successful Response

execution_id
string
required

Poll via client.sessions.get(execution_id)