AiinakDocs

Command Palette

Search for a command to run...

Sheets for Agents (API)

New

Let AI agents read and write your spreadsheets cell-by-cell with personal API keys — over REST or the aiinak MCP server.

Spreadsheets your agents can use

AI Sheets exposes a public REST API so agents and scripts can work with your spreadsheets the way you do: list and search them, read any range as structured rows, create new sheets seeded with data, write values and formulas, and append rows. Everything an agent writes appears in your Sheets app, complete with version history you can restore from.

Authentication and scopes

The base URL is https://sheets.aiinak.com/api/v1. Send your key as a Bearer token; sheets:read covers listing and reading, sheets:write covers creating and editing.

Read a spreadsheetbash
# Everything in use, as JSON rows
curl "https://sheets.aiinak.com/api/v1/spreadsheets/SHEET_ID" \
  -H "Authorization: Bearer $KEY"

# A specific range, as CSV
curl "https://sheets.aiinak.com/api/v1/spreadsheets/SHEET_ID?range=A1:C10&format=csv" \
  -H "Authorization: Bearer $KEY"

Endpoints

EndpointScopeDescription
GET /spreadsheetssheets:readList your spreadsheets (?query= filters by name)
GET /spreadsheets/{id}sheets:readRead a range (?range=, ?sheetName=, ?format=csv); omit range for the used region
POST /spreadsheetssheets:writeCreate, optionally seeded with rows (first row as headers works well)
POST /spreadsheets/{id}/valuessheets:writeWrite values into a range; strings starting with = become formulas
POST /spreadsheets/{id}/appendsheets:writeAdd rows after the last used row — no range math needed

MCP tools

The @aiinak/workspace-mcp server (npm) includes the Sheets tools sheets_list, sheets_read, sheets_create, sheets_write_range and sheets_append_rows alongside the Drive and Docs tools — one server for the whole workspace.