> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pawa-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Documents

> Parse documents with the Pawa AI Python SDK.

`client.documents.parse(...)` uploads files to [`POST /documents/parse`](/api-reference/endpoint/documents/parse) and returns extracted text and structure.

## Parse a document

```python theme={null}
from pawa_ai import PawaAI

client = PawaAI()

response = client.documents.parse(
    documents=["invoice.pdf"],
    model="pawa-v1-parser-20250809",
)

print(response)
```

## Multiple files

```python theme={null}
response = client.documents.parse(
    documents=["report.pdf", "notes.docx"],
    model="pawa-v1-parser-20250809",
)

print(response)
```

You can also pass raw bytes or `(filename, bytes, content_type)` tuples when files are already in memory.
