Skip to content
Connect an agent

Organisations

Read the slides of a Google Slides deck

The deck's slides in order and its page size.

GET/orgs/{org}/documents/slides

TL;DR

QuestionAnswer
What does it do?Read the slides of a Google Slides deck.
What does it take?org in the path, and fileId in the query string.
What does it return?Status 200 with a body of type DocumentDeckPages.
What can go wrong?401 not signed in; 403 not the owner or an admin (orgs.forbidden), the plan does not include it (plan.documents_not_included), or the origin may not make changes; 404 no such organisation, diagram, placement or file, or the caller is not a member; 409 google Drive is not connected (documents.no_drive); 429 too many requests; 502 google refused or could not be reached (documents.google_failed); 503 placing diagrams in documents is not available on this server (documents.unavailable). Every failure uses the one error envelope.

What it does

The deck's slides in order and its page size. The deck must be one picked with the Google Picker.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Query parameters

FieldTypeRequiredDescription
fileIdstringyes

Responses

StatusMeaningBody
200The slides.DocumentDeckPages
401Not signed in.ErrorResponse
403Not the owner or an admin (orgs.forbidden), the plan does not include it (plan.documents_not_included), or the origin may not make changes.ErrorResponse
404No such organisation, diagram, placement or file, or the caller is not a member.ErrorResponse
409Google Drive is not connected (documents.no_drive).ErrorResponse
429Too many requests.ErrorResponse
502Google refused or could not be reached (documents.google_failed).ErrorResponse
503Placing diagrams in documents is not available on this server (documents.unavailable).ErrorResponse

Response body

A 200 answer has the type DocumentDeckPages.

FieldTypeRequiredDescription
slidesobject[]yes
slides[].idstringyes
slides[].indexintegeryes
widthnumberyesThe slide width, in points.
heightnumberyesThe slide height, in points.

See also

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