# Read a Google Sheet as a file

One Google Sheet from the caller's own connected account, rendered as ?format=xlsx (base64, the whole workbook) or ?format=csv (plain text). ?gid= names one TAB, which only csv can honour - an xlsx export already carries every tab. Reach for it once a sheet has been chosen and its rows are what you need; the import routes take it from there. Refuses over 64 MB rather than truncating, because a cut spreadsheet still imports and silently loses rows.

Access class: `workspace`.

## Endpoint

`GET /v1/drive/files/{fileId}/export`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| fileId | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "content": "string",
    "format": "string",
    "gid": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
