Organisations
Read the slides of a Google Slides deck
The deck's slides in order and its page size.
GET
/orgs/{org}/documents/slidesTL;DR
| Question | Answer |
|---|---|
| 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
| Field | Type | Required | Description |
|---|---|---|---|
org | string | yes | The organisation's id or its slug. |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
fileId | string | yes |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | The slides. | DocumentDeckPages |
| 401 | Not signed in. | ErrorResponse |
| 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. | ErrorResponse |
| 404 | No such organisation, diagram, placement or file, or the caller is not a member. | ErrorResponse |
| 409 | Google Drive is not connected (documents.no_drive). | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
| 502 | Google refused or could not be reached (documents.google_failed). | ErrorResponse |
| 503 | Placing diagrams in documents is not available on this server (documents.unavailable). | ErrorResponse |
Response body
A 200 answer has the type DocumentDeckPages.
| Field | Type | Required | Description |
|---|---|---|---|
slides | object[] | yes | |
slides[].id | string | yes | |
slides[].index | integer | yes | |
width | number | yes | The slide width, in points. |
height | number | yes | The slide height, in points. |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |