Check a spreadsheet share link
const url = 'https://shareout.site/v1/workspaces/example/sheet-links/inspect';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"link":"https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit?usp=sharing"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shareout.site/v1/workspaces/example/sheet-links/inspect \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "link": "https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit?usp=sharing" }'Checks a Google Sheets or Google Drive (Excel) share link before a public_sheet_sync job is saved: is it shared as “Anyone with the link can view”, what is the file called, which tabs does it have, and the first tab’s row count and columns (up to 50). Saves nothing. Workspace members only, 60 checks per person per hour. Fetches only from Google’s hosts, never the pasted URL. A link-shared file is readable by anyone who has the link: not for personal or confidential data.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Workspace ID or slug.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit?usp=sharingResponses
Section titled “Responses”The file, its tabs and the first tab’s shape
object
Sheets = a native Google Sheet; drive = a file uploaded to Drive
The first tab with cells (the default).
Example
{ "kind": "sheets"}BAD_LINK — not a Google spreadsheet link (a folder, a document, a “Publish to the web” link, another site); VALIDATION_ERROR — no link in the body.
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Authentication required
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Access denied
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}NOT_PUBLIC — not shared with “Anyone with the link” (the message names the three clicks in Google: Share → General access → Anyone with the link → Viewer); NOT_FOUND — deleted, or an incomplete link; NOT_SPREADSHEET; TOO_LARGE; SHEET_* — the file could not be read as a spreadsheet.
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}RATE_LIMITED — too many links checked in the last hour.
UPSTREAM / BLOCKED — Google answered unexpectedly.
TIMEOUT — Google took too long.
