/v1/drive/files/{fileId}/exportRead 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.
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Values: "csv" · "xlsx"
Responses
the action's answer
{
"data": {
"content": "string",
"format": "string",
"gid": "string"
}
}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.
{
"error": "string"
}