# A library picture as a PNG, for Google Slides and Docs

> Page: https://docs.plotwork.dev/api/get-raster-file. Index of every page: https://docs.plotwork.dev/llms.txt

The address a placed diagram is fetched from by Google, with a token Plotwork signed that works for five minutes.

`GET /raster/{file}`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | A library picture as a PNG, for Google Slides and Docs. |
| What does it take? | `file` in the path. |
| What does it return? | Status 200 with no body. |
| What can go wrong? | `404` the link is not good, or the diagram may not be shown (raster.not_found); `429` too many requests; `503` painting pictures is not available on this server (raster.unavailable). Every failure uses the one error envelope. |

## What it does

The address a placed diagram is fetched from by Google, with a token Plotwork signed that works for five minutes.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `file` | `string` | yes |  |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The picture. | none |
| 404 | The link is not good, or the diagram may not be shown (raster.not_found). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | Painting pictures is not available on this server (raster.unavailable). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
