# Create Shareable Links to Query via API

**URL:** <https://discuss.elastic.co/t/create-shareable-links-to-query-via-api/370026>\
**Category:** Kibana\
**Created:** [November 4, 2024, 3:36pm UTC](https://discuss.elastic.co/t/create-shareable-links-to-query-via-api/370026 "2024-11-04T15:36:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seboz123](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@seboz123](https://discuss.elastic.co/u/seboz123)\
**Post date:** [November 4, 2024, 3:36pm UTC](https://discuss.elastic.co/t/create-shareable-links-to-query-via-api/370026/1 "2024-11-04T15:36:49Z")

</div>

Hi,  
I would like to generate a shareable link to a Query under Discover in Kibana via an API. Like filters/index/timeframe should be set via an automation. Is there any way to do that? In the documentation I can only find it via the Share button in the UI.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)\
**Post date:** [November 4, 2024, 6:28pm UTC](https://discuss.elastic.co/t/create-shareable-links-to-query-via-api/370026/2 "2024-11-04T18:28:18Z")

</div>

Hi @seboz123 , welcome to our community.

Have you tried [Create saved query API | Kibana Guide [8.15] | Elastic](https://www.elastic.co/guide/en/kibana/current/osquery-manager-saved-queries-api-create.html) ?

Regards,  
Alex

---

<div class="post-metadata">

**Author:** ![seboz123](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@seboz123](https://discuss.elastic.co/u/seboz123)\
**Post date:** [November 8, 2024, 12:55pm UTC](https://discuss.elastic.co/t/create-shareable-links-to-query-via-api/370026/3 "2024-11-08T12:55:12Z")

</div>

Hi @Alex_Salgado-Elastic ,  
thanks for your answer.  
I think this is not what I need - I do not use osquery/SQL but rather use KQL to filter the data of my index - once I have the data filtered, I click on share on the upper right border
