> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/012_documents/006__list_paginated_user_documents.md).

# List User Documents

GraphQL endpoint: `/user`

Lists the calling user's documents, most recent first, cursor-paginated. Supports filtering by status (defaults to accepted documents), folder, file-name search and tag ids. Pass paginationInfo.nextCursor back as the cursor argument to fetch the next page.

## Query

```graphql
query ($search: String, $limit: Int, $cursor: String) {
  documents(search: $search, limit: $limit, cursor: $cursor) {
    paginationInfo {
      limit
      nextCursor
    }
    records {
      id
      fileName
    }
  }
}

```

## Variables

```json
{
  "limit": 2
}
```

## Response

```json
{
  "data": {
    "documents": {
      "paginationInfo": {
        "limit": 2,
        "nextCursor": "MjAyNi0wOS0wOFQwOTowNDo1M3x8ZDZkNTk2MWYtNWFiMy00NGE1LTk3NzItNzUzYmVmMGMzOWMw"
      },
      "records": [
        {
          "fileName": "document-1.pdf",
          "id": "00000000-0000-4000-8000-000000000001"
        },
        {
          "fileName": "document-2.pdf",
          "id": "00000000-0000-4000-8000-000000000002"
        }
      ]
    }
  }
}
```
