Skip to content

This workspace's Google Drive share email

POST
/v1/workspaces/{workspaceId}/file-imports/share/google_drive
curl --request POST \
--url https://shareout.site/v1/workspaces/example/file-imports/share/google_drive \
--header 'Authorization: Bearer <token>'

Returns the workspace’s own Google service account, created on first use. People share a Drive folder with this email as Viewer; ShareOut reads it as this account only, so a folder shared with another workspace is invisible here. When the instance has reached Google’s service-account limit the answer is 503 SHARE_EMAIL_LIMIT — never another workspace’s or a shared account.

workspaceId
required
string

Workspace ID or slug.

The share email

Media typeapplication/json
object
shareEmail
string

Example generated

{
"shareEmail": "example"
}

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_CONFIGURED — the instance has no GOOGLE_DRIVE_SA_KEY.

SHARE_EMAIL_FAILED — Google did not create the account; try again.

SHARE_EMAIL_LIMIT — the instance reached Google’s service-account limit.