Documentation
Everything you need to use Sheetwire as a REST API for your Google Sheets.
Quick start
- Put your column names in row 1 of a Google Sheet tab.
- Click Share in Google Sheets and add the Sheetwire robot email (shown on the Create page) as Editor.
- In the dashboard, paste the sheet URL and pick the tab.
Excel Online? In Excel / OneDrive click Share → Anyone with the link can view → Copy link, and paste that link instead (read-only — see Limitations).
You get an API URL like the one below. Replace YOUR_API_ID in these docs with your own ID — or open the API Docs tab of your API for copy-paste examples with your real URL.
https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_IDList rows — GET
Returns a JSON array of objects keyed by your header row. Empty rows are skipped. Numbers and booleans keep their type; dates are returned as formatted in the sheet.
curl 'https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID'
[
{ "Name": "Asha Rao", "Email": "asha@example.com", "Age": 31 },
{ "Name": "Dev Mehta", "Email": "dev@example.com", "Age": 28 }
]Filter, search, sort & paginate
All query parameters can be combined. Column filters are exact, case-sensitive matches. The response header X-Total-Count holds the number of matching rows before pagination.
| ?Column=value | Rows where Column equals value |
| _search=text | Case-insensitive search across all columns |
| _sort=Column | Sort by a column (numbers sort numerically) |
| _order=desc | asc (default) or desc |
| _limit=10 | Maximum rows to return |
| _offset=20 | Skip the first N rows |
| _fields=Name,Email | Only return these columns |
| _format=csv | Return CSV instead of JSON |
| _fresh=1 | Skip the cache and read the sheet now |
GET https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID?Status=Active&_sort=Date&_order=desc&_limit=10
GET https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID?_search=pune&_fields=Name,City
GET https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID?_format=csvGet a single row
Append the row index (0 = first data row). Filters and sorting are applied first, so /0 with ?_sort=Date&_order=desc returns the newest row.
curl 'https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID/0'API keys & private APIs
Generate an API key in your API's Settings tab. Send it in the X-Api-Key header (or Authorization: Bearer sw_…).
- Writes (POST, PATCH, DELETE) always require the key. Without a key the API is read-only.
- Reads are public by default so embeds and list snippets work. Turn Public reads off to require the key for reads too.
- Never put your key in public website code — use it from your server, serverless functions or automation tools.
curl 'https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID' -H 'X-Api-Key: sw_your_key'Append rows — POST
Send a JSON object (one row) or an array of objects (up to 500 rows). Keys map to header names (case-insensitive). Keys that don't exist yet are added as new columns.
curl -X POST 'https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID' \
-H 'X-Api-Key: sw_your_key' \
-H 'Content-Type: application/json' \
-d '[{"Name":"Jane","Email":"jane@example.com"},{"Name":"Ravi","Email":"ravi@example.com"}]'
→ 201 { "created": 2 }Update rows — PATCH
Target a row by index, or every row matching column filters. Only the cells you send are changed — formulas in other cells stay intact.
# One row
curl -X PATCH 'https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID/3' -H 'X-Api-Key: sw_your_key' \
-H 'Content-Type: application/json' -d '{"Status":"Paid"}'
# Every row where Email = jane@example.com
curl -X PATCH 'https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID?Email=jane@example.com' -H 'X-Api-Key: sw_your_key' \
-H 'Content-Type: application/json' -d '{"Status":"Paid"}'
→ 200 { "updated": 1 }Delete rows — DELETE
Same targeting as PATCH. A row index or at least one filter is required, so you can't wipe a sheet by accident.
curl -X DELETE 'https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID/3' -H 'X-Api-Key: sw_your_key'
curl -X DELETE 'https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID?Status=Spam' -H 'X-Api-Key: sw_your_key'
→ 200 { "deleted": 1 }Form to Sheet
Each API has a unique form token (see the Form to Sheet tab). Post JSON, URL-encoded or multipart data — no API key needed. Every submission is saved to your sheet, backed up in your dashboard and sent to your webhooks.
_redirect— send visitors to your own thank-you page after submitting._hp— honeypot field; keep it hidden. If a bot fills it in, the submission is silently dropped.- Plain HTML forms without a redirect get a simple "Thank you" page.
<form action="https://sheetwire.forgesparse.com/api/form-submit/YOUR_FORM_TOKEN" method="POST">
<input name="Name" required />
<input name="Email" type="email" required />
<input type="text" name="_hp" style="display:none" tabindex="-1" autocomplete="off" />
<input type="hidden" name="_redirect" value="https://yoursite.com/thanks" />
<button>Submit</button>
</form>HTML snippets (template.js)
Render rows or submit forms without writing JavaScript. Use {{Column}} placeholders inside the element; it's repeated once per row.
<div data-spreadsheet-api="https://sheetwire.forgesparse.com/api/sheet-api/YOUR_API_ID"
data-limit="10" data-sort="Date" data-order="desc" data-empty="Nothing yet">
<h3>{{Title}}</h3>
<p>{{Description}}</p>
</div>
<script src="https://sheetwire.forgesparse.com/template.js"></script>Webhooks
Add webhook URLs in your API's Webhooks tab and choose events: form.submitted, row.created, row.updated, row.deleted. Each delivery is signed — compute an HMAC-SHA256 of the raw body with your webhook's signing secret and compare it to X-Sheetwire-Signature.
POST https://your-server.com/hook
X-Sheetwire-Event: row.created
X-Sheetwire-Signature: sha256=5d41402abc4b2a76b9719d911017c592...
{
"event": "row.created",
"spreadsheet_id": "…",
"timestamp": "2026-11-12T10:00:00.000Z",
"data": { "rows": [ { "Name": "Jane" } ] }
}Caching & limits
- Reads are cached for your API's cache TTL (default 30 seconds, 0 disables it). Writes through Sheetwire clear the cache immediately; edits made directly in Google Sheets appear once the TTL expires — or right away with
?_fresh=1. - Each API has a rate limit (requests per minute, configurable). Extra requests get
429withRetry-After: 60. - Your plan's monthly quota counts every API request and form submission across your APIs. Over quota, requests get
429until the next month.
Response codes
Errors are JSON with an error message, a machine-readable code and usually a hint.
200 OK 201 Created (POST)
400 bad_body / bad_index / no_target / tab_not_found
401 invalid_key / key_required / private
403 paused / writes_disabled / sheet_unreachable
404 not_found / row_not_found
413 too_large
429 quota_exceeded / rate_limited
502 google_error
{ "error": "Sheetwire can't access this sheet", "code": "sheet_unreachable",
"hint": "Share your Google Sheet with the Sheetwire robot email (Editor access)…" }Current limitations
Google Sheets support reads and writes. Excel Online / OneDrive / SharePoint files are read-only: share the file as "Anyone with the link can view" and paste that link — POST / PATCH / DELETE return 405 read_only_source, and form submissions are kept in your Sheetwire dashboard instead of the workbook. Each API reads one tab — create another API for another tab. Very large sheets (tens of thousands of rows) are best paginated with _limit and _offset.