Kibana - iframe share dashboard - query?

Is there any example or doc that will help to build/modify the share iframe url so I can add those query/filters when doing the API calls?

The URL's are encoded in RISON. There are libraries in multiple languages to facilitate the RISON encoding/decoding. It should be obvious to decode and understand the format, just be aware this API is not finalized and can change from version to version.