> 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/002_company/011_documents/006__list_paginated_company_documents.md).

# List Company Documents

GraphQL endpoint: `/company`

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

## Query

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

```

## Variables

```json
{}
```

## Response

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