---
title: "List Documents"
method: POST
path: "/documents"
tags: ["Documents"]
---

# List Documents

`POST /documents`

List accessible documents.

`request.document_filters` may include the following operators in addition to equality checks (which also match
scalars inside JSON arrays): `$and`, `$or`, `$nor`, `$not`, `$in`, `$nin`, `$exists`, `$regex`, and `$contains`.
Filters can be nested arbitrarily. Regex filters accept the optional `i` flag; `$contains` performs substring
matches with optional `case_sensitive` overrides.
Example:

```json
{
  "$and": [
    {"department": "sales"},
    {"$or": [{"status": "approved"}, {"priority": {"$in": ["high", "urgent"]}}]}
  ]
}
```

Args:
    request: Request body containing filters and pagination
    auth: Authentication context
    folder_name: Optional folder to scope the operation to
    end_user_id: Optional end-user ID to scope the operation to

Returns:
    List[Document]: List of accessible documents

## Query parameters

- `folder_name` union
  - string
  - string[]
- `end_user_id` string, nullable

## Headers

- `authorization` string

## Request body

- ListDocumentsRequest — Request model for listing documents
  - `document_filters` object, nullable — Metadata filters for documents
  - `skip` integer
  - `limit` integer

## Response `200`

Successful Response

- Document[]
  - `external_id` string
  - `content_type` string, required
  - `filename` string, nullable
  - `metadata` object
  - `storage_info` object
  - `storage_files` StorageFileInfo[]
    - `bucket` string, required
    - `key` string, required
    - `version` integer
    - `filename` string, nullable
    - `content_type` string, nullable
    - `timestamp` string, date-time
  - `system_metadata` object
  - `additional_metadata` object
  - `chunk_ids` string[]
  - `folder_name` string, nullable
  - `end_user_id` string, nullable
  - `app_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2025-11-05** `9ade02dd7b1d` — 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added

[Change history](https://skmtc.dev/morphik-org/apis/fastapi/changes/documents/post.md)

---

[API](https://skmtc.dev/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.dev/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morphik-org/fastapi/revisions/9ade02dd7b1d/schema)
