# Create File Requests

Create one or more File Requests from Apex to receive files from customers.

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

## Signature

```apex
global static List<FileRequest> createFileRequests(
  List<Types.CreateFileRequestInput> fileRequestInputs,
  String runAs
)
```

### Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| fileRequestInputs | List&lt;<a href="#/apex-type-create-file-request-input">Types.CreateFileRequestInput</a>&gt; | required | One entry per File Request. See Types.CreateFileRequestInput. |
| runAs | String | optional | Email Id of the user on whose behalf the function should run. To run the action as the automation user, supply integrationUser. |

## Return Type

List<FileRequest&gt; — the created File Request objects.

## Example

```apex
List<cldfs.Types.CreateFileRequestInput> fileRequestInputs = new List<cldfs.Types.CreateFileRequestInput>{
	new cldfs.Types.CreateFileRequestInput('File Request -01', 'File Request Test', '10bj6bAjlx9iUfzKXef1skTCXBCLVjaZN', 'google', 'mydrive')
};
cldfs.Client.createFileRequests(fileRequestInputs, 'integrationUser');
```
