> For the complete documentation index, see [llms.txt](https://developers.felt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.felt.com/rest-api/api-reference/maps/print-exports.md).

# Print Exports

APIs to export map images

With these APIs, you can render a map to a PNG, JPG or PDF image.

## Export map as image

> Render the map to a PNG, JPG or PDF image at a chosen size and view — what the app's "Export as image" produces, without a browser.\
> \
> The request waits up to 55 seconds and returns \`200\` with a completed export. Follow \`download\_url\` to download the file before \`expires\_at\`. Invalid requests return \`4xx\`; rendering failures return \`503\`, and a render that exceeds the request deadline returns \`504\`. There is no polling endpoint.<br>

```json
{"openapi":"3.0.0","info":{"title":"Felt","version":"2.0"},"tags":[{"description":"With these APIs, you can render a map to a PNG, JPG or PDF image.\n","name":"Print Exports"}],"servers":[{"url":"https://felt.com","variables":{}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"bearerFormat":"YOUR_API_KEY","scheme":"bearer","type":"http"}},"schemas":{"MapImageExportParams":{"additionalProperties":false,"description":"Output settings, geographic view and legend options for a map image export.","properties":{"legend":{"additionalProperties":false,"description":"The legend card drawn over the map, placed automatically.","properties":{"show_components":{"default":true,"description":"Include the map's layer components (charts, statistics) in the legend card. Defaults to `true`.","type":"boolean"},"show_description":{"default":true,"description":"Include the map's description under the title. Defaults to `true`.","type":"boolean"},"show_title":{"default":true,"description":"Head the legend card with the map's title. Defaults to `true`.","type":"boolean"},"visible":{"default":true,"description":"Draw the legend card over the map. Ignored when the map has no legend. Defaults to `true`.","type":"boolean"}},"type":"object"},"output":{"$ref":"#/components/schemas/MapImageExportOutput"},"show_scale_bar":{"default":true,"description":"Draw the scale bar. Attribution is always drawn. Defaults to `true`.","type":"boolean"},"units":{"description":"Units for the scale bar. Defaults to the requesting user's saved unit preference, and to `us_standard` where none is set.\n","enum":["metric","us_standard"],"type":"string"},"view":{"$ref":"#/components/schemas/MapExportView"}},"required":["output"],"title":"MapImageExportParams","type":"object"},"MapImageExportOutput":{"additionalProperties":false,"properties":{"format":{"default":"png","description":"Output format. JPG is much smaller for satellite imagery. Defaults to `png`.","enum":["png","jpg","pdf"],"type":"string"},"height_px":{"description":"Height of the output image file, in pixels.","maximum":16384,"minimum":96,"type":"integer"},"jpg_quality":{"default":0.9,"description":"JPG quality, 0–1. Only used when `format` is `jpg`. Defaults to `0.9`.","exclusiveMinimum":true,"maximum":1,"minimum":0,"type":"number"},"pixel_ratio":{"default":2,"description":"Output pixels per CSS pixel of the map canvas (the app's Resolution setting). The canvas is `width_px / pixel_ratio` × `height_px / pixel_ratio`, so raising this at a fixed output size covers less ground. Defaults to `2`.\n","enum":[1,2,3,4],"type":"integer"},"width_px":{"description":"Width of the output image file, in pixels.","maximum":16384,"minimum":96,"type":"integer"}},"required":["width_px","height_px"],"title":"MapImageExportOutput","type":"object"},"MapExportView":{"description":"Choose exactly one of bounds or viewport. Omit view to use the map's default view.","oneOf":[{"additionalProperties":false,"properties":{"bounds":{"description":"`[west, south, east, north]` in degrees. The image is zoomed so the whole box is visible; the box is centered and the shorter axis is padded. The response's `rendered_bounds` reports the resulting frame. Latitudes must be within -85.051129..85.051129. A box that cannot fit at the supported zoom levels is rejected.\n","items":{"type":"number"},"maxItems":4,"minItems":4,"type":"array"}},"required":["bounds"],"type":"object"},{"additionalProperties":false,"properties":{"viewport":{"additionalProperties":false,"description":"An explicit center and zoom (Felt zoom levels, as in map URLs).","properties":{"latitude":{"maximum":85.051129,"minimum":-85.051129,"type":"number"},"longitude":{"maximum":180,"minimum":-180,"type":"number"},"zoom":{"maximum":23,"minimum":1,"type":"number"}},"required":["latitude","longitude","zoom"],"type":"object"}},"required":["viewport"],"type":"object"}],"title":"MapExportView"},"MapImageExport":{"additionalProperties":false,"properties":{"download_url":{"description":"A URL for the finished image; it redirects to the file, so follow redirects. Expires at `expires_at`.","nullable":false,"type":"string"},"expires_at":{"description":"When `download_url` stops working.","format":"date-time","nullable":false,"type":"string"},"filename":{"nullable":false,"type":"string"},"id":{"$ref":"#/components/schemas/FeltID"},"output":{"$ref":"#/components/schemas/MapImageExportOutput"},"rendered_bounds":{"description":"The `[west, south, east, north]` the image actually covers — the requested `view.bounds` fitted to the canvas's aspect ratio, or the viewport's frame. Adjust framing from this rather than by measuring pixels. An `east` west of `west` crosses the antimeridian.","items":{"type":"number"},"maxItems":4,"minItems":4,"type":"array"}},"required":["id","output","rendered_bounds","filename","download_url","expires_at"],"title":"MapImageExport","type":"object"},"FeltID":{"format":"felt_id","nullable":false,"title":"FeltID","type":"string"},"UnauthorizedError":{"properties":{"errors":{"items":{"properties":{"detail":{"type":"string"},"source":{"properties":{"header":{"enum":["authorization"],"type":"string"}},"type":"object"},"title":{"type":"string"}},"type":"object"},"type":"array"}},"title":"UnauthorizedError","type":"object"},"NotFoundError":{"properties":{"errors":{"items":{"properties":{"detail":{"type":"string"},"source":{"properties":{"parameter":{"type":"string"}},"type":"object"},"title":{"type":"string"}},"type":"object"},"type":"array"}},"title":"NotFoundError","type":"object"},"JsonErrorResponse":{"properties":{"errors":{"items":{"properties":{"detail":{"type":"string"},"source":{"properties":{"pointer":{"type":"string"}},"required":["pointer"],"type":"object"},"title":{"type":"string"}},"required":["title","source","detail"],"type":"object"},"type":"array"}},"required":["errors"],"title":"JsonErrorResponse","type":"object"},"InternalServerError":{"properties":{"errors":{"items":{"properties":{"detail":{"type":"string"},"source":{"properties":{"parameter":{"type":"string"}},"type":"object"},"title":{"type":"string"}},"type":"object"},"type":"array"}},"title":"InternalServerError","type":"object"},"ServiceUnavailableError":{"properties":{"errors":{"items":{"properties":{"detail":{"type":"string"},"source":{"properties":{"parameter":{"type":"string"}},"type":"object"},"title":{"type":"string"}},"type":"object"},"type":"array"}},"title":"ServiceUnavailableError","type":"object"},"GatewayTimeoutError":{"properties":{"errors":{"items":{"properties":{"code":{"type":"string"},"detail":{"type":"string"},"title":{"type":"string"}},"type":"object"},"type":"array"}},"title":"GatewayTimeoutError","type":"object"}}},"paths":{"/api/v2/maps/{map_id}/image_exports":{"post":{"callbacks":{},"description":"Render the map to a PNG, JPG or PDF image at a chosen size and view — what the app's \"Export as image\" produces, without a browser.\n\nThe request waits up to 55 seconds and returns `200` with a completed export. Follow `download_url` to download the file before `expires_at`. Invalid requests return `4xx`; rendering failures return `503`, and a render that exceeds the request deadline returns `504`. There is no polling endpoint.\n","operationId":"create_map_image_export","parameters":[{"description":"The ID of the map to export","in":"path","name":"map_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapImageExportParams"}}},"description":"Image export parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapImageExport"}}},"description":"Completed image export"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}},"description":"UnauthorizedError"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}},"description":"UnauthorizedError"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}},"description":"NotFoundError"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonErrorResponse"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonErrorResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerError"}}},"description":"InternalServerError"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableError"}}},"description":"ServiceUnavailableError"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayTimeoutError"}}},"description":"Gateway timeout"}},"summary":"Export map as image","tags":["Print Exports"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.felt.com/rest-api/api-reference/maps/print-exports.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
