Skip to content

Pick a spreadsheet in the Google Picker (browser only)

GET
/v1/workspaces/{workspaceId}/file-imports/sheet-sync/pick
curl --request GET \
--url 'https://shareout.site/v1/workspaces/example/file-imports/sheet-sync/pick?return=assistant' \
--header 'Authorization: Bearer <token>'

Redirects (302) to Google’s consent for drive.file with the Google Picker inside it (trigger_onepick), spreadsheets only, one file. It returns to GET /v1/file-imports/oauth/google_drive/callback, which stores the consent, remembers the pick (picked in GET …/file-imports/sheet-sync) and posts shareout:drive-sheet:picked { ok, file: { id, name }, error } to the opener window, on the ShareOut origin that opened it only. Meant for the person’s own browser: opened signed out (no session, no Authorization header) it redirects to sign-in and back; a browser refused here gets a page saying why (in English or Spanish), API clients get JSON.

workspaceId
required
string

Workspace ID or slug.

file
string

A Drive file id (from a pasted link). The Picker then shows only that file.

return
string
Allowed values: assistant

assistant when an assistant hands this link to the person: the last page tells them to go back to the conversation, and offers the link again if nothing was picked.

Redirect to Google’s consent + Picker (or to sign-in first)

Invalid request

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"
]
}
}

Resource not found

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"
]
}
}