> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List external files

> List external files.

`externalFiles(input: ExternalStorageListInput!): ExternalStorageFileList!`

Requires project.integrations.read.

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`ExternalStorageListInput!`](https://veryfront.com/docs/cloud/graphql/types/externalstoragelistinput) | Yes |

## Input fields

### input

[`ExternalStorageListInput`](https://veryfront.com/docs/cloud/graphql/types/externalstoragelistinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `provider` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Storage provider accessed through the caller's own personal connection. A human caller is required; agent, run, and service-account credentials are refused. |
| `projectReference` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Project ID or slug. Requires project.integrations.read through the caller's own personal provider connection. |
| `folderId` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Folder item ID; the provider root when omitted. |
| `path` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |
| `query` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Search text; searches below folderId when both are set. |
| `cursor` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |
| `limit` | [`Int`](https://veryfront.com/docs/cloud/graphql/types/int) | No | |

## Response

Returns [`ExternalStorageFileList!`](https://veryfront.com/docs/cloud/graphql/types/externalstoragefilelist). Open the type for its fields and nested types.

| Field | Type |
| - | - |
| `data` | [`[ExternalStorageFile!]!`](https://veryfront.com/docs/cloud/graphql/types/externalstoragefile) |
| `pageInfo` | [`ExternalStoragePageInfo!`](https://veryfront.com/docs/cloud/graphql/types/externalstoragepageinfo) |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
query ExternalFiles($input: ExternalStorageListInput!) {
  externalFiles(input: $input) {
    data {
      id
      name
      etag
      kind
      mimeType
    }
    pageInfo {
      first
      next
      prev
      self
    }
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {
    "provider": "drive",
    "projectReference": "example-project"
  }
}
```

<details>
  <summary>Try this query</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.