# retrievalDocuments

```graphql
query RetrievalDocuments($projectReference: ID!) {
  retrievalDocuments(projectReference: $projectReference) {
    data {
      id
      revision
      title
      source
      type
      metadata
      createdAt
      updatedAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List retrieval documents. Requires project.knowledge.read.

## Arguments

| Name               | Type   | Required | Description                                                                                                                                                                                                 |
| ------------------ | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectReference` | ID!    | Yes      | Project ID or slug. A project you cannot read is not\_found. The MCP tool requires a signed-in user (a user session or user API key); service and agent-run credentials without a user are unauthenticated. |
| `limit`            | Int    |          | Records per page, 1 to 100; default 20.                                                                                                                                                                     |
| `cursor`           | String |          | The previous page's pageInfo.endCursor.                                                                                                                                                                     |

## Variables

```json
{
  "projectReference": "string"
}
```

## Responses

| Status | Description                                            |
| ------ | ------------------------------------------------------ |
| 200    | The RetrievalDocumentList! in data.retrievalDocuments. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query RetrievalDocuments($projectReference: ID!) {\n  retrievalDocuments(projectReference: $projectReference) {\n    data {\n      id\n      revision\n      title\n      source\n      type\n      metadata\n      createdAt\n      updatedAt\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}",
  "variables": {
    "projectReference": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "retrievalDocuments": {
      "data": [
        {
          "id": "string",
          "revision": "string",
          "title": "string",
          "source": "string",
          "type": "string",
          "metadata": {},
          "createdAt": "2026-01-01T00:00:00Z",
          "updatedAt": "2026-01-01T00:00:00Z"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
