Skip to content

Check a spreadsheet share link

POST
/v1/workspaces/{workspaceId}/sheet-links/inspect
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.

workspaceId
required
string

Workspace ID or slug.

Media typeapplication/json
object
link
required
string
<= 2000 characters

Example

https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit?usp=sharing

The file, its tabs and the first tab’s shape

Media typeapplication/json
object
kind

Sheets = a native Google Sheet; drive = a file uploaded to Drive

string
Allowed values: sheets drive
fileName
string
nullable
sheets
Array<string>
sheet

The first tab with cells (the default).

string
rowCount
integer
columns
Array<string>

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.

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

Example

{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}

Authentication required

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

Example

{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}

Access denied

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

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.

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

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.