Generating short URL to hide filters

Hello

We need to transform URL like this

kibanaUrl/app/dashboards?auth_provider_hint=anonymous1#/view/7adfa750-4c81-11e8-b3d7-01146121b73d?embed=true&_g=(filters:!(),refreshInterval:(pause:!f,value:0),time:(from:'${selectedStartDate}',to:'${selectedEndDate}'))&hide-time-filter=true

to url like this (this url is generated when you use the Short url option when sharing a dashboard)

kibanaUrl/goto/972bcea0-d54e-11ee-9900-c76d34c864a8

It's for iframe url because we don't want that specific filters appears if someone inspects the code of the iframe.

How is it possible to do that ? Is it with the Kibana short URL api ?
In that case, what is this locator id. I saw many questions regarding this and I still can't figure how to find it easily :frowning:

Thanks for your help !

Hello

I finally found my answer. The locator ID is just a simple string with this value : "LEGACY_SHORT_URL_LOCATOR"

with this, I am able to generate short kibana URLs, using the short_url API, for my iframe, where filters are hidden (not present in the iframe URL)