This workspace's Google Drive share email
const url = 'https://shareout.site/v1/workspaces/example/file-imports/share/google_drive';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Workspace ID or slug.
Responses
Section titled “Responses”The share email
object
Example generated
{ "shareEmail": "example"}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_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.
