---
title: "List documents in a given library."
method: GET
path: "/v1/libraries/{library_id}/documents"
tags: ["beta.libraries.documents"]
---

# List documents in a given library.

`GET /v1/libraries/{library_id}/documents`

Given a library, lists the document that have been uploaded to that library.

## Path parameters

- `library_id` string, uuid, required

## Query parameters

- `search` string, nullable
- `page_size` integer
- `page` integer
- `filters_attributes` string, nullable — Deprecated: this parameter will be removed in a future version.
- `sort_by` string
- `sort_order` string

## Response `200`

Successful Response

- ListDocumentsResponse
  - `pagination` PaginationInfo, required
    - `total_items` integer, required
    - `total_pages` integer, required
    - `current_page` integer, required
    - `page_size` integer, required
    - `has_more` boolean, required
  - `data` Document[], required
    - `id` string, uuid, required
    - `library_id` string, uuid, required
    - `hash` string, nullable, required
    - `mime_type` string, nullable, required
    - `extension` string, nullable, required
    - `size` integer, nullable, required
    - `name` string, required
    - `summary` string, nullable
    - `created_at` string, date-time, required
    - `last_processed_at` string, date-time, nullable
    - `number_of_pages` integer, nullable
    - `process_status` 'self_managed' | 'missing_content' | 'noop' | 'done' | 'todo' | 'in_progress' | 'error' | 'waiting_for_capacity', required
    - `uploaded_by_id` string, uuid, nullable, required
    - `uploaded_by_type` string, required
    - `tokens_processing_main_content` integer, nullable
    - `tokens_processing_summary` integer, nullable
    - `url` string, nullable
    - `attributes` object, nullable
    - `expires_at` string, date-time, nullable — If set, the document will be automatically deleted after this date.
    - `processing_status` string, required
    - `tokens_processing_total` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.net/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mistral/mistral-ai-api/versions/933c4ebdcd72/schema)
