Skip to content
Connect an agent

Organisations

Start connecting Google Drive

Answers Google’s consent page for drive.file only, with offline access and PKCE, and sets the flow’s cookie for the callback.

POST/orgs/{org}/storage/google/start

TL;DR

QuestionAnswer
What does it do?Start connecting Google Drive.
What does it take?org in the path.
What does it return?Status 200 with a body of type StorageGoogleStart.
What can go wrong?401 not signed in; 403 not the owner or an admin, or the plan does not include it (plan.storage_not_included); 404 no such organisation, or the caller is not a member; 429 too many requests; 503 this server has no Google client (storage.google_unavailable). Every failure uses the one error envelope.

What it does

Answers Google’s consent page for drive.file only, with offline access and PKCE, and sets the flow’s cookie for the callback.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200Where the browser goes next.StorageGoogleStart
401Not signed in.ErrorResponse
403Not the owner or an admin, or the plan does not include it (plan.storage_not_included).ErrorResponse
404No such organisation, or the caller is not a member.ErrorResponse
429Too many requests.ErrorResponse
503This server has no Google client (storage.google_unavailable).ErrorResponse

Response body

A 200 answer has the type StorageGoogleStart.

FieldTypeRequiredDescription
urlstringyesGoogle’s consent page. The browser goes there next.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools