# Types.ProcessDocumentPayload

Input payload describing a single document to process with AI.

> Kind: Apex type · Updated: 2026-07-01

Types.ProcessDocumentPayload represents the input for the Client.processDocument() method. Pass a List<Types.ProcessDocumentPayload&gt;, one entry per document to process.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| fileId | String | required | Identifier of the file to process. |
| driveId | String | required | Identifier of the drive the file lives in. |
| library | String | required | Storage library the document belongs to. |
| context | String | required | JSON context passed to the processing operation. |
| instructions | String | optional | Optional instructions guiding how the document is processed. |
| pagesToProcess | String | optional | Optional specification of which pages of the document to process. |
| agents | List&lt;String&gt; | optional | Optional list of agents to run against the document. |

## Constructors

```apex
global ProcessDocumentPayload(
  String fileId,
  String driveId,
  String library,
  String context
)
```

```apex
global ProcessDocumentPayload(
  String fileId,
  String driveId,
  String library,
  String context,
  List<String> agents
)
```

```apex
global ProcessDocumentPayload(
  String fileId,
  String driveId,
  String library,
  String context,
  String instructions,
  String pagesToProcess,
  List<String> agents
)
```
