# Rest API Issues with downloading visualisation/dashboard as png

**URL:** <https://discuss.elastic.co/t/rest-api-issues-with-downloading-visualisation-dashboard-as-png/280165>\
**Category:** Kibana\
**Created:** [August 1, 2021, 10:49pm UTC](https://discuss.elastic.co/t/rest-api-issues-with-downloading-visualisation-dashboard-as-png/280165 "2021-08-01T22:49:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vajb12](https://avatars.discourse-cdn.com/v4/letter/v/bbe5ce/32.png) [@Vajb12](https://discuss.elastic.co/u/Vajb12)\
**Post date:** [August 1, 2021, 10:49pm UTC](https://discuss.elastic.co/t/rest-api-issues-with-downloading-visualisation-dashboard-as-png/280165/1 "2021-08-01T22:49:23Z")

</div>

HI Team,

We are trying to download a kibana dashboard using the RESTAPI.

[http://localhost:5601/app/kibana#/dashboard/export?dashboard=7adfa750-4c81-11e8-b3d7-01146121b73d](http://localhost:5601/app/kibana#/dashboard/export?dashboard=7adfa750-4c81-11e8-b3d7-01146121b73d)

By specifying the dashboard id, Im able to download the dashboard content in html format. But I wanted to know how to download the content in png format.

Any help on this is much appreciated

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [August 2, 2021, 8:13am UTC](https://discuss.elastic.co/t/rest-api-issues-with-downloading-visualisation-dashboard-as-png/280165/2 "2021-08-02T08:13:32Z")

</div>

Hi,  
png report generating requires using POST request, did you try to use it? (it will be in your clipboard after you click `Copy POST URL`):

 ![Screenshot 2021-08-02 at 10.12.21](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9d46c22b2a94096e70355e8ff6f8f745fad3848c.png)

Here's a detailed tutorial about analogical PDF report generations: [Automating report generation | Kibana Guide [7.13] | Elastic](https://www.elastic.co/guide/en/kibana/current/automating-report-generation.html#_use_a_script)

Basically you have to hit a POST request:  
`curl -XPOST -u username:password -H 'kbn-xsrf: true' 'GENERATED_URL'`  
and then the response will contain a path to the generated report that you can just read with GET request.

 ![Screenshot 2021-08-02 at 10.28.53](https://us1.discourse-cdn.com/elastic/original/3X/6/6/66d9e411848ed54ca8dc603bda3184b9513a14d2.png)

---

<div class="post-metadata">

**Author:** ![Vajb12](https://avatars.discourse-cdn.com/v4/letter/v/bbe5ce/32.png) [@Vajb12](https://discuss.elastic.co/u/Vajb12)\
**Post date:** [August 2, 2021, 8:18pm UTC](https://discuss.elastic.co/t/rest-api-issues-with-downloading-visualisation-dashboard-as-png/280165/3 "2021-08-02T20:18:28Z")

</div>

Hi Tanya,

Thanks for your resposne. Im currently using kibana 7.7.1 and when I try to click on the share option in the dashboard. I do not get t a snapshot for PNG reports. Snapshot below

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2d5d2c455e57b7a61398eff8f4c4c93bc30ba9fd.png)

Can you please specify in this case, how can I get the post url to download the dashboard as png .

Also im able to get the json content of the dashboard. But I want the image of the dashboard in png or other format

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [August 3, 2021, 7:17am UTC](https://discuss.elastic.co/t/rest-api-issues-with-downloading-visualisation-dashboard-as-png/280165/4 "2021-08-03T07:17:31Z")

</div>

Hi @Vajb12,

Unfortunately, PNG reports are available in a licences higher than basic. You can test it out by going to Stack management and starting 30 days trial licence upgrade.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 31, 2021, 7:18am UTC](https://discuss.elastic.co/t/rest-api-issues-with-downloading-visualisation-dashboard-as-png/280165/5 "2021-08-31T07:18:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
