Skip to main content
POST
/
api
/
gsheet
/
proxy
Google Sheets Proxy
curl --request POST \
  --url https://dash.empirical.run/api/gsheet/proxy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "read",
  "spreadsheet_id": "<string>",
  "range": "<string>",
  "values": [
    [
      "<string>"
    ]
  ]
}
'
{
  "data": null,
  "error": {
    "message": "<string>",
    "code": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key from the Empirical dashboard.

Body

application/json

Google Sheets action to perform.

action
enum<string>
required

The action to perform on the spreadsheet.

Available options:
read,
write,
append
spreadsheet_id
string
required

The ID of the Google Sheets spreadsheet.

range
string
required

The A1 notation range, e.g. "Sheet1!A1:D10".

values
string[][]

2D array of string values. Required for write and append actions.

Response

Response varies by action. Read returns values, write/append returns updated_cells.