API to get encryptic url of embedded dashboard

Does Metabase have API for client to get encryptic url of embedded dashboard (something like below)? The client should be able to pass values for filters, expiry time, dashboard vs question (as well as id), METABASE_SITE_URL, METABASE_SECRET_KEY..

The URL retrun from the API should look like this: http://localhost:3000/embed/dashboard/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXNvdXJjZSI6eyJkYXNoYm9hcmQiOjIzfSwicGFyYW1zIjp7IiVFNiU4OCU5MCVFNiU5QyVBQyVFNCVCOCVBRCVFNSVCRiU4MyI6WyLllYbotoUiXSwiJUU1JThEJTk1JUU2JThEJUFFJUU0JUI4JTlBJUU1JThBJUExJUU3JUIxJUJCJUU1JTlFJThCIjpbIuWuouaIt-mUgOXUriIsIuWuouaIt-mAgOi0pyJdfSwiZXhwIjoxNjc0NDg3MzAyLCJpYXQiOjE2NzQ0ODY3MDJ9.fj1sKv2jqSgqxfb0Q_d3zfdkTOVFt7SEKQTc3vv5rVZ

Can anyone help confirm this?

Ignore this, as I make the API myself...

The cryptic part is JWT.

Please take a look at our embedding code samples. Metabase does all of this already: GitHub - metabase/embedding-reference-apps: Reference applications for common web frameworks showing how to embed Metabase charts