---
name: metabase_list_documents
kind: function
lang: py
domain: infra
version: "1.0.0"
purity: impure
signature: "def metabase_list_documents(client: MetabaseClient) -> list[dict]"
description: "Lista documents (texto ProseMirror tipo Notion, feature 0.57+). Endpoint: GET /api/document. Desenrolla {items: [...]}."
tags: [metabase, document, list, api, python]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: [httpx]
params:
  - name: client
    desc: "instancia autenticada de MetabaseClient"
output: "list[dict]: cada dict con id, name, collection_id, archived, created_at, updated_at, creator_id, content_type, entity_id"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/metabase/documents.py"
---

## Ejemplo

```python
docs = metabase_list_documents(client)
for d in docs:
    print(d["id"], d["name"])
```

## Notas

Metabase devuelve `{"items": [...]}`. Esta funcion desenrolla para retornar la lista directamente.
