# list_documents

> The Documents list exactly as the web app shows it: PDFs and Docs in one list, newest first, only the ones the caller may see. scope 'mine' (created by or sent to the caller; the default for a person) or 'workspace' (the default for an API key, which owns no documents); filter by status group (needs_you, drafts, waiting, completed, declined, expired, voided, expiring), sent_as (single, bulk, unsent), type, owner (a user id), client (a client id) and q (name or recipient).

Tool of the AppliFlo MCP server at `https://appliflo.com/api/mcp`. Kind: read: it only looks, so clients can run it without asking.

The Documents list exactly as the web app shows it: PDFs and Docs in one list, newest first, only the ones the caller may see. scope 'mine' (created by or sent to the caller; the default for a person) or 'workspace' (the default for an API key, which owns no documents); filter by status group (needs_you, drafts, waiting, completed, declined, expired, voided, expiring), sent_as (single, bulk, unsent), type, owner (a user id), client (a client id) and q (name or recipient). Paged with page (from 1) and limit (1 to 50, default 25). Returns documents[] (id, kind, name, status, owner, client, envelope_id, url), total and counts per status group. include_filters: true also returns filters {owners, clients}: everyone and every client the list could be filtered by (long in a big workspace; to find a client's id use search_clients instead). A kind 'doc' row is a Doc; for a sent Doc, pdf_document_id is the PDF id the other document tools take. in_trash: true lists the Trash instead (deleted PDFs and Docs, restorable for 30 days; kind tells them apart): restore_document and delete_document_forever take the PDF ones; a trashed Doc is restored in the web app. Use get_document for one document's detail, list_envelopes for raw envelope rows.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `scope` | string | no | One of: mine, workspace |
| `status` | string[] | no |  |
| `sent_as` | string[] | no |  |
| `type` | string | no | One of: all, docs, pdfs |
| `owner` | string | no | A user id (each row names its owner) |
| `client` | string | no | A client id: only that client's documents |
| `q` | string | no | Matches the name, or a recipient's name or email. Up to 200 characters |
| `sort` | string | no | One of: created, name, status, owner |
| `dir` | string | no | One of: asc, desc |
| `page` | integer | no | At least 1 |
| `limit` | integer | no | Rows per page, 1 to 50 (default 25). 1 to 50. Default: 25 |
| `in_trash` | boolean | no | true: the Trash (deleted PDFs and Docs) instead of the list; the other filters are ignored |
| `include_filters` | boolean | no | true: also return filters {owners, clients} for the owner and client filters (default false; search_clients finds a client) |
