# Want to use shorten URL functionality of Kibana to generate id of dashboard

**URL:** <https://discuss.elastic.co/t/want-to-use-shorten-url-functionality-of-kibana-to-generate-id-of-dashboard/330648>\
**Category:** Kibana\
**Created:** [April 24, 2023, 12:11pm UTC](https://discuss.elastic.co/t/want-to-use-shorten-url-functionality-of-kibana-to-generate-id-of-dashboard/330648 "2023-04-24T12:11:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aman\_giri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aman_giri/32/110330_2.png) [@aman\_giri](https://discuss.elastic.co/u/aman_giri)\
**Post date:** [April 24, 2023, 12:11pm UTC](https://discuss.elastic.co/t/want-to-use-shorten-url-functionality-of-kibana-to-generate-id-of-dashboard/330648/1 "2023-04-24T12:11:54Z")

</div>

Hello, everyone  
I have this public URL that I want to show publicly but it has multiple parameters that can be seen in the URL so I wanted to be short .  
I was going through [Shorten URL | Kibana User Guide [6.7] | Elastic](https://www.elastic.co/guide/en/kibana/6.7/url-shortening-api-api-shorten-url.html) but can't do it for myself.

[http://xx.xxx.xx.xxx:5601/s/adv\_public/app/dashboards#/view/bc58c7d6-9073-4a25-9767-60f0ce81623f?\_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1y%2Fd,to:now)](http://xx.xxx.xx.xxx:5601/s/adv_public/app/dashboards#/view/bc58c7d6-9073-4a25-9767-60f0ce81623f?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1y%2Fd,to:now)))

i am running command:

curl -u xxxxx:xxxxx -X POST "[http://xx.xxx.xx.xxx:5601/api/shorten\_url](http://xx.xxx.xx.xxx:5601/api/shorten_url)"  
-H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'  
{  
"url": "[http://xx.xxx.xx.xxx:5601/s/adv\_public/app/dashboards#/view/bc58c7d6-9073-4a25-9767-60f0ce81623f?\_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1y%2Fd,to:now)](http://xx.xxx.xx.xxx:5601/s/adv_public/app/dashboards#/view/bc58c7d6-9073-4a25-9767-60f0ce81623f?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1y%2Fd,to:now)))"  
}' -k

getting response:  
{"statusCode":404,"error":"Not Found","message":"Not Found"}

Anyone please help?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 25, 2023, 11:02pm UTC](https://discuss.elastic.co/t/want-to-use-shorten-url-functionality-of-kibana-to-generate-id-of-dashboard/330648/2 "2023-04-25T23:02:33Z")

</div>

Please note that 6.7 is [EOL](https://www.elastic.co/support/eol) and no longer supported, you should be looking to upgrade as a matter of urgency.

Per that doc page, did you try it without the domain in the `url` parameter?

---

<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:** [May 23, 2023, 11:03pm UTC](https://discuss.elastic.co/t/want-to-use-shorten-url-functionality-of-kibana-to-generate-id-of-dashboard/330648/3 "2023-05-23T23:03:26Z")

</div>

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