---
title: "List documents with pagination and filters"
method: GET
path: "/api/v1/documents"
tags: ["documents"]
---

# List documents with pagination and filters

`GET /api/v1/documents`

## Query parameters

- `page` integer
- `limit` integer
- `searchString` string
- `documentRole` 'attachment' | 'consent'
- `createdAfter` string, date-time
- `createdBefore` string, date-time

## Response `201`

- DocumentsListResponseDTO
  - `data` object[], required
    - `contentSize` integer, required — The size of the document content in bytes
    - `createdAt` string, date-time, required — The date and time the document was created
    - `documentRole` 'attachment' | 'consent', required — Whether the document is an attachment or a consent document
    - `fileName` string, required — The name of the document file
    - `fileType` 'pdf' | 'pptx' | 'txt', required — The type of the document file
    - `id` string, uuid, required — The unique identifier of the document
    - `lastUpdatedAt` string, date-time, required — The date and time the document was last updated
    - `organizationId` string, uuid, required — The unique identifier of the organization that owns the document
    - `uploadedBy` string, uuid, required — The user ID who uploaded the document
    - `version` integer, nullable — Monotonic version number; only set for consent documents
  - `meta` object, required
    - `hasNext` boolean, required
    - `limit` number, required
    - `page` number, required
    - `total` number, required

---

[API](https://skmtc.net/wejam/apis/jam.md) · [All operations](https://skmtc.net/wejam/apis/jam/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wejam/jam/revisions/bd5a5f406bca/schema)
