# externalFiles

```graphql
query ExternalFiles($input: ExternalStorageListInput!) {
  externalFiles(input: $input) {
    data {
      id
      provider
      name
      path
      mimeType
      sizeBytes
      kind
      parentId
      modifiedAt
      etag
      thumbnailUrl
      webUrl
    }
    pageInfo {
      self
      first
      next
      prev
    }
  }
}
```

List external files. Requires project.integrations.read.

## Arguments

| Name                     | Type                      | Required | Description                                                                                                                                                  |
| ------------------------ | ------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `input`                  | ExternalStorageListInput! | Yes      |                                                                                                                                                              |
| `input.provider`         | 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. |
| `input.projectReference` | String                    |          | Project ID or slug. Requires project.integrations.read through the caller's own personal provider connection.                                                |
| `input.folderId`         | String                    |          | Folder item ID; the provider root when omitted.                                                                                                              |
| `input.path`             | String                    |          |                                                                                                                                                              |
| `input.query`            | String                    |          | Search text; searches below folderId when both are set.                                                                                                      |
| `input.cursor`           | String                    |          |                                                                                                                                                              |
| `input.limit`            | Int                       |          |                                                                                                                                                              |

## Variables

```json
{
  "input": {
    "provider": "string"
  }
}
```

## Responses

| Status | Description                                         |
| ------ | --------------------------------------------------- |
| 200    | The ExternalStorageFileList! in data.externalFiles. |

## 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 ExternalFiles($input: ExternalStorageListInput!) {\n  externalFiles(input: $input) {\n    data {\n      id\n      provider\n      name\n      path\n      mimeType\n      sizeBytes\n      kind\n      parentId\n      modifiedAt\n      etag\n      thumbnailUrl\n      webUrl\n    }\n    pageInfo {\n      self\n      first\n      next\n      prev\n    }\n  }\n}",
  "variables": {
    "input": {
      "provider": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "externalFiles": {
      "data": [
        {
          "id": "string",
          "provider": "string",
          "name": "string",
          "path": "string",
          "mimeType": "string",
          "sizeBytes": 0,
          "kind": "string",
          "parentId": "string",
          "modifiedAt": "string",
          "etag": "string",
          "thumbnailUrl": "https://example.com",
          "webUrl": "https://example.com"
        }
      ],
      "pageInfo": {
        "self": "string",
        "first": "string",
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
